From 4fa5a991bd51e71690eced57aac0f8cac8633f46 Mon Sep 17 00:00:00 2001 From: "Dr. Kashif Rasul" Date: Thu, 30 Apr 2020 11:04:18 +0200 Subject: [PATCH] added missing license files for issue #11 --- pts/core/_base.py | 14 ++++++++++++++ pts/core/component.py | 14 ++++++++++++++ pts/core/serde.py | 14 ++++++++++++++ pts/dataset/artificial.py | 14 ++++++++++++++ pts/dataset/common.py | 14 ++++++++++++++ pts/dataset/file_dataset.py | 14 ++++++++++++++ pts/dataset/list_dataset.py | 14 ++++++++++++++ pts/dataset/loader.py | 14 ++++++++++++++ pts/dataset/process.py | 14 ++++++++++++++ pts/dataset/stat.py | 14 ++++++++++++++ pts/dataset/utils.py | 14 ++++++++++++++ pts/evaluation/backtest.py | 14 ++++++++++++++ pts/evaluation/evaluator.py | 14 ++++++++++++++ pts/feature/time_feature.py | 14 ++++++++++++++ pts/feature/utils.py | 14 ++++++++++++++ pts/model/estimator.py | 14 ++++++++++++++ pts/model/forecast.py | 14 ++++++++++++++ pts/model/forecast_generator.py | 14 ++++++++++++++ pts/model/predictor.py | 14 ++++++++++++++ pts/model/quantile.py | 14 ++++++++++++++ pts/transform/dataset.py | 14 ++++++++++++++ pts/transform/transform.py | 14 ++++++++++++++ 22 files changed, 308 insertions(+) diff --git a/pts/core/_base.py b/pts/core/_base.py index bca69cc..93ed653 100644 --- a/pts/core/_base.py +++ b/pts/core/_base.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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. + + def fqname_for(cls: type) -> str: """ Returns the fully qualified name of ``cls``. diff --git a/pts/core/component.py b/pts/core/component.py index 95ee54d..5dc2611 100644 --- a/pts/core/component.py +++ b/pts/core/component.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 functools import inspect from collections import OrderedDict diff --git a/pts/core/serde.py b/pts/core/serde.py index 83d7b0c..18531ca 100644 --- a/pts/core/serde.py +++ b/pts/core/serde.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 itertools import json import math diff --git a/pts/dataset/artificial.py b/pts/dataset/artificial.py index a7f7783..5d016d8 100644 --- a/pts/dataset/artificial.py +++ b/pts/dataset/artificial.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 math import os import random diff --git a/pts/dataset/common.py b/pts/dataset/common.py index 1221e4d..25b876e 100644 --- a/pts/dataset/common.py +++ b/pts/dataset/common.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 Any, Dict, Iterable, NamedTuple, List, Optional import pandas as pd diff --git a/pts/dataset/file_dataset.py b/pts/dataset/file_dataset.py index 9d298cb..e48d8bf 100644 --- a/pts/dataset/file_dataset.py +++ b/pts/dataset/file_dataset.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 functools import glob import random diff --git a/pts/dataset/list_dataset.py b/pts/dataset/list_dataset.py index 3648f05..eae2b00 100644 --- a/pts/dataset/list_dataset.py +++ b/pts/dataset/list_dataset.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 random from typing import Iterable diff --git a/pts/dataset/loader.py b/pts/dataset/loader.py index fa33585..bcc520f 100644 --- a/pts/dataset/loader.py +++ b/pts/dataset/loader.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 itertools from collections import defaultdict from typing import Any, Dict, Iterable, Iterator, List, Optional # noqa: F401 diff --git a/pts/dataset/process.py b/pts/dataset/process.py index 65fffcd..08c97d6 100644 --- a/pts/dataset/process.py +++ b/pts/dataset/process.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 functools import lru_cache from typing import Callable, List, cast diff --git a/pts/dataset/stat.py b/pts/dataset/stat.py index 5568710..552e1a1 100644 --- a/pts/dataset/stat.py +++ b/pts/dataset/stat.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 math from collections import defaultdict from typing import Any, List, NamedTuple, Optional, Set diff --git a/pts/dataset/utils.py b/pts/dataset/utils.py index 4bd3002..5178a1d 100644 --- a/pts/dataset/utils.py +++ b/pts/dataset/utils.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 shutil from pathlib import Path diff --git a/pts/evaluation/backtest.py b/pts/evaluation/backtest.py index 04210cf..35a8a7a 100644 --- a/pts/evaluation/backtest.py +++ b/pts/evaluation/backtest.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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. + + # Standard library imports import logging from typing import Dict, Iterator, NamedTuple, Optional, Tuple, Union diff --git a/pts/evaluation/evaluator.py b/pts/evaluation/evaluator.py index 766c7af..e916b2a 100644 --- a/pts/evaluation/evaluator.py +++ b/pts/evaluation/evaluator.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 itertools import chain, tee from typing import ( Any, diff --git a/pts/feature/time_feature.py b/pts/feature/time_feature.py index 30d22dd..386fabf 100644 --- a/pts/feature/time_feature.py +++ b/pts/feature/time_feature.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 abc import ABC, abstractmethod from typing import List diff --git a/pts/feature/utils.py b/pts/feature/utils.py index c0e23d0..d30fdf2 100644 --- a/pts/feature/utils.py +++ b/pts/feature/utils.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 re from functools import lru_cache from typing import Tuple diff --git a/pts/model/estimator.py b/pts/model/estimator.py index 2e47b8c..a2d40f1 100644 --- a/pts/model/estimator.py +++ b/pts/model/estimator.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 abc import ABC, abstractmethod from typing import NamedTuple diff --git a/pts/model/forecast.py b/pts/model/forecast.py index 54d602f..847a7e5 100644 --- a/pts/model/forecast.py +++ b/pts/model/forecast.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 abc import ABC, abstractmethod from enum import Enum from typing import Dict, List, Optional, Set, Union, Callable diff --git a/pts/model/forecast_generator.py b/pts/model/forecast_generator.py index 5323eb6..b842615 100644 --- a/pts/model/forecast_generator.py +++ b/pts/model/forecast_generator.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 abc import ABC, abstractmethod from typing import Any, Callable, Iterator, List, Optional diff --git a/pts/model/predictor.py b/pts/model/predictor.py index d1099f8..a232705 100644 --- a/pts/model/predictor.py +++ b/pts/model/predictor.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 json from abc import ABC, abstractmethod from pathlib import Path diff --git a/pts/model/quantile.py b/pts/model/quantile.py index aa98f84..62265cf 100644 --- a/pts/model/quantile.py +++ b/pts/model/quantile.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 re from typing import NamedTuple, Union diff --git a/pts/transform/dataset.py b/pts/transform/dataset.py index 98d0e9e..6b73ead 100644 --- a/pts/transform/dataset.py +++ b/pts/transform/dataset.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 Iterator, List from pts.dataset import DataEntry, Dataset diff --git a/pts/transform/transform.py b/pts/transform/transform.py index 5826c91..4a52c40 100644 --- a/pts/transform/transform.py +++ b/pts/transform/transform.py @@ -1,3 +1,17 @@ +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# or in the "license" file accompanying this file. This file 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 abc import ABC, abstractmethod from functools import reduce from typing import Callable, Iterator, Iterable, List