From cab7e106b3ec9cc0e4d9c884232a7261d8f1723d Mon Sep 17 00:00:00 2001 From: Richard Eckart de Castilho Date: Sun, 7 Jan 2024 14:11:09 +0100 Subject: [PATCH] No issue: Added license headers --- ariadne/__init__.py | 15 +++++++++++++++ ariadne/__version__.py | 15 +++++++++++++++ ariadne/classifier.py | 15 +++++++++++++++ ariadne/contrib/__init__.py | 15 +++++++++++++++ ariadne/contrib/adapters.py | 15 +++++++++++++++ ariadne/contrib/inception_util.py | 15 +++++++++++++++ ariadne/contrib/jieba.py | 16 +++++++++++++++- ariadne/contrib/nltk.py | 15 +++++++++++++++ ariadne/contrib/sbert.py | 15 +++++++++++++++ ariadne/contrib/simalign.py | 18 ++++++++++++++++-- ariadne/contrib/sklearn.py | 15 +++++++++++++++ ariadne/contrib/spacy.py | 15 +++++++++++++++ ariadne/contrib/stringmatcher.py | 15 +++++++++++++++ ariadne/protocol.py | 15 +++++++++++++++ ariadne/server.py | 15 +++++++++++++++ ariadne/util.py | 17 ++++++++++++++++- setup.py | 16 ++++++++++++++++ tests/__init__.py | 15 +++++++++++++++ tests/resources/__init__.py | 15 +++++++++++++++ tests/test_adapter_recommender.py | 15 +++++++++++++++ tests/test_inception_util.py | 15 +++++++++++++++ tests/test_jieba_segmenter.py | 15 +++++++++++++++ tests/test_sbert_sentence_classifier.py | 15 +++++++++++++++ tests/test_sklearn_sentence_classifier.py | 15 +++++++++++++++ tests/test_spacy_recommender.py | 15 +++++++++++++++ tests/util.py | 15 +++++++++++++++ wsgi.py | 16 ++++++++++++++++ 27 files changed, 409 insertions(+), 4 deletions(-) diff --git a/ariadne/__init__.py b/ariadne/__init__.py index 6c65957..ed6221f 100644 --- a/ariadne/__init__.py +++ b/ariadne/__init__.py @@ -1,3 +1,18 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from pathlib import Path model_directory: Path = Path(__file__).resolve().parents[1] / "models" diff --git a/ariadne/__version__.py b/ariadne/__version__.py index 607f7a4..3363065 100644 --- a/ariadne/__version__.py +++ b/ariadne/__version__.py @@ -1 +1,16 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. __version__ = "0.1.0-dev" diff --git a/ariadne/classifier.py b/ariadne/classifier.py index 00767e2..dc1f3e1 100644 --- a/ariadne/classifier.py +++ b/ariadne/classifier.py @@ -1,3 +1,18 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import logging import os from pathlib import Path diff --git a/ariadne/contrib/__init__.py b/ariadne/contrib/__init__.py index e69de29..0f0cb8b 100644 --- a/ariadne/contrib/__init__.py +++ b/ariadne/contrib/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/ariadne/contrib/adapters.py b/ariadne/contrib/adapters.py index 7167f57..e5800ca 100644 --- a/ariadne/contrib/adapters.py +++ b/ariadne/contrib/adapters.py @@ -1,3 +1,18 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from collections import Counter from pathlib import Path from typing import List, Optional diff --git a/ariadne/contrib/inception_util.py b/ariadne/contrib/inception_util.py index aa48c59..9c93fe7 100644 --- a/ariadne/contrib/inception_util.py +++ b/ariadne/contrib/inception_util.py @@ -1,3 +1,18 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Optional from cassis import Cas diff --git a/ariadne/contrib/jieba.py b/ariadne/contrib/jieba.py index c8c7161..41c9eee 100644 --- a/ariadne/contrib/jieba.py +++ b/ariadne/contrib/jieba.py @@ -1,8 +1,22 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from cassis import Cas import jieba - from ariadne.classifier import Classifier from ariadne.contrib.inception_util import create_prediction diff --git a/ariadne/contrib/nltk.py b/ariadne/contrib/nltk.py index c7d0be4..d4f5c53 100644 --- a/ariadne/contrib/nltk.py +++ b/ariadne/contrib/nltk.py @@ -1,3 +1,18 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from cassis import Cas import nltk diff --git a/ariadne/contrib/sbert.py b/ariadne/contrib/sbert.py index 640bf53..0e48580 100644 --- a/ariadne/contrib/sbert.py +++ b/ariadne/contrib/sbert.py @@ -1,3 +1,18 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import logging from typing import List diff --git a/ariadne/contrib/simalign.py b/ariadne/contrib/simalign.py index 5c3ee23..5bb6e75 100644 --- a/ariadne/contrib/simalign.py +++ b/ariadne/contrib/simalign.py @@ -1,11 +1,25 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from cassis import Cas import jieba from simalign import SentenceAligner from ariadne.classifier import Classifier -from ariadne.contrib.inception_util import create_prediction, SENTENCE_TYPE, TOKEN_TYPE - +from ariadne.contrib.inception_util import create_prediction, SENTENCE_TYPE class SimAligner(Classifier): def __init__(self): diff --git a/ariadne/contrib/sklearn.py b/ariadne/contrib/sklearn.py index 4d3c633..8b0a932 100644 --- a/ariadne/contrib/sklearn.py +++ b/ariadne/contrib/sklearn.py @@ -1,3 +1,18 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import logging from typing import List, Optional diff --git a/ariadne/contrib/spacy.py b/ariadne/contrib/spacy.py index 11aa747..e60a204 100644 --- a/ariadne/contrib/spacy.py +++ b/ariadne/contrib/spacy.py @@ -1,3 +1,18 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from pathlib import Path from cassis import Cas diff --git a/ariadne/contrib/stringmatcher.py b/ariadne/contrib/stringmatcher.py index 1e7f644..31b9db5 100644 --- a/ariadne/contrib/stringmatcher.py +++ b/ariadne/contrib/stringmatcher.py @@ -1,3 +1,18 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import logging from collections import defaultdict from itertools import chain diff --git a/ariadne/protocol.py b/ariadne/protocol.py index 83e6639..960c5ff 100644 --- a/ariadne/protocol.py +++ b/ariadne/protocol.py @@ -1,3 +1,18 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import Dict, Any, List import attr diff --git a/ariadne/server.py b/ariadne/server.py index a5acf56..e661023 100644 --- a/ariadne/server.py +++ b/ariadne/server.py @@ -1,3 +1,18 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import logging import tempfile from http import HTTPStatus diff --git a/ariadne/util.py b/ariadne/util.py index 82fd838..fd6a729 100644 --- a/ariadne/util.py +++ b/ariadne/util.py @@ -1,5 +1,20 @@ -import logging +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +import logging def setup_logging(level=logging.DEBUG): log_fmt = "%(process)d-%(thread)d %(asctime)s - %(name)s - %(levelname)s - %(message)s" diff --git a/setup.py b/setup.py index 39fb4fd..b895a0b 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,22 @@ # !/usr/bin/env python # -*- coding: utf-8 -*- +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import io import os diff --git a/tests/__init__.py b/tests/__init__.py index e69de29..0f0cb8b 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/resources/__init__.py b/tests/resources/__init__.py index e69de29..0f0cb8b 100644 --- a/tests/resources/__init__.py +++ b/tests/resources/__init__.py @@ -0,0 +1,15 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/test_adapter_recommender.py b/tests/test_adapter_recommender.py index 0f29125..893cd20 100644 --- a/tests/test_adapter_recommender.py +++ b/tests/test_adapter_recommender.py @@ -1,3 +1,18 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pytest pytest.importorskip("transformers.AuthModelWithHeads") diff --git a/tests/test_inception_util.py b/tests/test_inception_util.py index 77b3c6a..4e07dbb 100644 --- a/tests/test_inception_util.py +++ b/tests/test_inception_util.py @@ -1,3 +1,18 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from ariadne.contrib.inception_util import * from cassis import Cas, TypeSystem diff --git a/tests/test_jieba_segmenter.py b/tests/test_jieba_segmenter.py index a3c0253..08d003f 100644 --- a/tests/test_jieba_segmenter.py +++ b/tests/test_jieba_segmenter.py @@ -1,3 +1,18 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pytest pytest.importorskip("jieba") diff --git a/tests/test_sbert_sentence_classifier.py b/tests/test_sbert_sentence_classifier.py index abfe115..2800a33 100644 --- a/tests/test_sbert_sentence_classifier.py +++ b/tests/test_sbert_sentence_classifier.py @@ -1,3 +1,18 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from pathlib import Path import pytest diff --git a/tests/test_sklearn_sentence_classifier.py b/tests/test_sklearn_sentence_classifier.py index 63121e8..2b6518d 100644 --- a/tests/test_sklearn_sentence_classifier.py +++ b/tests/test_sklearn_sentence_classifier.py @@ -1,3 +1,18 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pytest pytest.importorskip("sklearn_crfsuite") diff --git a/tests/test_spacy_recommender.py b/tests/test_spacy_recommender.py index 3174498..a475146 100644 --- a/tests/test_spacy_recommender.py +++ b/tests/test_spacy_recommender.py @@ -1,3 +1,18 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pytest pytest.importorskip("spacy") diff --git a/tests/util.py b/tests/util.py index 0c19a3e..59938ed 100644 --- a/tests/util.py +++ b/tests/util.py @@ -1,3 +1,18 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import List from cassis import * diff --git a/wsgi.py b/wsgi.py index 02647ef..9f1a6a0 100644 --- a/wsgi.py +++ b/wsgi.py @@ -1,3 +1,19 @@ +# Licensed to the Technische Universität Darmstadt under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The Technische Universität Darmstadt +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +from ariadne.contrib.test import TestRecommender from ariadne.server import Server from ariadne.util import setup_logging from ariadne.contrib.spacy import SpacyNerClassifier