From 5b64d23d4952d4a3755abd616a5dda64308d1355 Mon Sep 17 00:00:00 2001 From: jtblack Date: Mon, 4 Mar 2024 14:41:27 -0700 Subject: [PATCH 1/2] fix: updating copyright --- .github/copyright.yaml | 5 +++ .pre-commit-config.yaml | 34 +++++++++++++++++++ Dockerfile | 2 ++ bin/oversightml-mr-entry-point.py | 2 +- environment-py311.yml | 2 ++ environment.yml | 2 ++ scripts/describe_image.py | 2 +- scripts/image_converter.py | 2 ++ scripts/requirements-scripts.txt | 2 ++ scripts/run_container.sh | 2 +- scripts/summarize_image.py | 2 +- scripts/tile_read_timer.py | 2 +- src/aws/osml/model_runner/__init__.py | 2 +- src/aws/osml/model_runner/api/__init__.py | 2 +- src/aws/osml/model_runner/api/exceptions.py | 2 +- .../osml/model_runner/api/image_request.py | 2 +- src/aws/osml/model_runner/api/inference.py | 2 +- .../osml/model_runner/api/region_request.py | 2 +- .../osml/model_runner/api/request_utils.py | 2 +- src/aws/osml/model_runner/api/sink.py | 2 +- src/aws/osml/model_runner/app.py | 2 +- src/aws/osml/model_runner/app_config.py | 2 +- src/aws/osml/model_runner/common/__init__.py | 2 +- .../model_runner/common/auto_string_enum.py | 2 +- .../model_runner/common/credentials_utils.py | 2 +- .../model_runner/common/endpoint_utils.py | 2 +- .../osml/model_runner/common/exceptions.py | 2 +- .../osml/model_runner/common/feature_utils.py | 2 ++ .../osml/model_runner/common/log_context.py | 2 ++ .../osml/model_runner/common/metrics_utils.py | 2 +- .../model_runner/common/mr_post_processing.py | 2 +- .../common/security_classification.py | 2 +- src/aws/osml/model_runner/common/timer.py | 2 +- src/aws/osml/model_runner/common/typing.py | 2 +- .../osml/model_runner/database/__init__.py | 2 +- .../osml/model_runner/database/ddb_helper.py | 2 +- .../database/endpoint_statistics_table.py | 2 +- .../osml/model_runner/database/exceptions.py | 2 +- .../model_runner/database/feature_table.py | 2 +- .../osml/model_runner/database/job_table.py | 2 +- .../database/region_request_table.py | 2 +- src/aws/osml/model_runner/exceptions.py | 2 +- .../osml/model_runner/inference/__init__.py | 2 +- .../osml/model_runner/inference/detector.py | 2 +- .../inference/endpoint_builder.py | 2 ++ .../inference/endpoint_factory.py | 2 ++ .../osml/model_runner/inference/exceptions.py | 2 +- .../inference/feature_selection.py | 2 +- .../model_runner/inference/feature_utils.py | 2 +- .../model_runner/inference/http_detector.py | 2 ++ .../model_runner/inference/sm_detector.py | 4 +-- src/aws/osml/model_runner/queue/__init__.py | 2 +- .../osml/model_runner/queue/request_queue.py | 2 +- src/aws/osml/model_runner/sink/__init__.py | 2 +- src/aws/osml/model_runner/sink/exceptions.py | 2 +- .../osml/model_runner/sink/kinesis_sink.py | 2 +- src/aws/osml/model_runner/sink/s3_sink.py | 2 +- src/aws/osml/model_runner/sink/sink.py | 2 +- .../osml/model_runner/sink/sink_factory.py | 2 +- src/aws/osml/model_runner/status/__init__.py | 2 +- .../osml/model_runner/status/exceptions.py | 2 +- .../status/image_request_status.py | 2 +- .../osml/model_runner/status/sns_helper.py | 2 +- .../model_runner/status/status_monitor.py | 2 +- .../osml/model_runner/tile_worker/__init__.py | 2 +- .../model_runner/tile_worker/exceptions.py | 2 +- .../model_runner/tile_worker/tile_worker.py | 2 +- .../tile_worker/tile_worker_utils.py | 2 +- test/__init__.py | 2 +- .../model_runner/api/test_image_request.py | 2 +- .../common/test_credentials_utils.py | 2 +- .../model_runner/common/test_log_context.py | 2 ++ .../common/test_mr_post_processing.py | 2 +- .../common/test_security_classification.py | 2 +- .../osml/model_runner/common/test_timer.py | 2 +- .../model_runner/database/test_ddb_helper.py | 3 +- .../test_endpoint_statistics_table.py | 3 +- .../database/test_feature_table.py | 3 +- .../model_runner/database/test_job_table.py | 3 +- .../database/test_region_request_table.py | 3 +- .../inference/test_endpoint_factory.py | 2 ++ .../inference/test_feature_selection.py | 2 +- .../inference/test_feature_utils.py | 2 +- .../inference/test_http_detector.py | 2 ++ .../inference/test_sm_detector.py | 2 +- .../model_runner/queue/test_request_queue.py | 2 +- .../model_runner/sink/test_kinesis_sink.py | 2 +- .../osml/model_runner/sink/test_s3_sink.py | 3 +- .../status/test_image_request_status.py | 2 +- .../model_runner/status/test_sns_helper.py | 2 +- .../status/test_status_monitor.py | 2 +- .../tile_worker/test_tile_worker_utils.py | 2 +- test/test_api.py | 2 +- 93 files changed, 149 insertions(+), 80 deletions(-) create mode 100644 .github/copyright.yaml diff --git a/.github/copyright.yaml b/.github/copyright.yaml new file mode 100644 index 00000000..6b2513d2 --- /dev/null +++ b/.github/copyright.yaml @@ -0,0 +1,5 @@ +one_date_re: ' Copyright (?P[0-9]{4})' +two_date_re: ' Copyright (?P[0-9]{4})-(?P[0-9]{4})' +one_date_format: ' Copyright {year}' +two_date_format: ' Copyright {from}-{to}' +license_file: LICENSE diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 05b63310..31ff7ac5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,3 +40,37 @@ repos: stages: [ manual ] # uncomment the line below if using "finch" on MacOS # args: [ "-f" ] + + - repo: https://github.com/sbrunner/pre-commit-copyright + rev: 0.7.0 + hooks: + - id: copyright + name: update copyright + exclude: | + (?x)^( + doc/.*| + ^\..+| + .+\.md| + test/data/.*| + LICENSE| + tox.ini| + pyproject.toml| + setup.cfg| + setup.py| + py.typed + )$ + - id: copyright-required + name: require copyright + exclude: | + (?x)^( + doc/.*| + ^\..+| + .+\.md| + test/data/.*| + LICENSE| + tox.ini| + pyproject.toml| + setup.cfg| + setup.py| + py.typed + )$ diff --git a/Dockerfile b/Dockerfile index b3e15319..740a3c16 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,5 @@ +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + # Stage 1: Build environment FROM public.ecr.aws/amazonlinux/amazonlinux:2023-minimal as build diff --git a/bin/oversightml-mr-entry-point.py b/bin/oversightml-mr-entry-point.py index 659658f1..3f924c7f 100644 --- a/bin/oversightml-mr-entry-point.py +++ b/bin/oversightml-mr-entry-point.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import argparse import logging diff --git a/environment-py311.yml b/environment-py311.yml index 4cbe0965..1f222408 100644 --- a/environment-py311.yml +++ b/environment-py311.yml @@ -1,3 +1,5 @@ +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + name: osml_model_runner channels: - conda-forge diff --git a/environment.yml b/environment.yml index ecab725e..c505be12 100644 --- a/environment.yml +++ b/environment.yml @@ -1,3 +1,5 @@ +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + name: osml_model_runner channels: - conda-forge diff --git a/scripts/describe_image.py b/scripts/describe_image.py index 8b73661e..6484b1dd 100755 --- a/scripts/describe_image.py +++ b/scripts/describe_image.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import re import sys diff --git a/scripts/image_converter.py b/scripts/image_converter.py index 4dde8537..7a1419a1 100755 --- a/scripts/image_converter.py +++ b/scripts/image_converter.py @@ -1,3 +1,5 @@ +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + import logging import os from argparse import ArgumentParser diff --git a/scripts/requirements-scripts.txt b/scripts/requirements-scripts.txt index 9cdb88bc..5c8a94d3 100644 --- a/scripts/requirements-scripts.txt +++ b/scripts/requirements-scripts.txt @@ -1,3 +1,5 @@ +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + # Added to support the KML visualization script lxml==4.9.1 defusedxml==0.7.1 diff --git a/scripts/run_container.sh b/scripts/run_container.sh index 98f8f6d7..4c302e00 100644 --- a/scripts/run_container.sh +++ b/scripts/run_container.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # # This is a utility to run a local model runner container with an ENV imported from ECS. diff --git a/scripts/summarize_image.py b/scripts/summarize_image.py index f71165b3..0b74688d 100755 --- a/scripts/summarize_image.py +++ b/scripts/summarize_image.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import pathlib import re diff --git a/scripts/tile_read_timer.py b/scripts/tile_read_timer.py index fd69900e..5dd7bfaf 100755 --- a/scripts/tile_read_timer.py +++ b/scripts/tile_read_timer.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import argparse import time diff --git a/src/aws/osml/model_runner/__init__.py b/src/aws/osml/model_runner/__init__.py index 281fa430..588610ec 100755 --- a/src/aws/osml/model_runner/__init__.py +++ b/src/aws/osml/model_runner/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # Telling flake8 to not flag errors in this file. It is normal that these classes are imported but not used in an # __init__.py file. diff --git a/src/aws/osml/model_runner/api/__init__.py b/src/aws/osml/model_runner/api/__init__.py index 8963ce10..2f871f87 100755 --- a/src/aws/osml/model_runner/api/__init__.py +++ b/src/aws/osml/model_runner/api/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # Telling flake8 to not flag errors in this file. It is normal that these classes are imported but not used in an # __init__.py file. diff --git a/src/aws/osml/model_runner/api/exceptions.py b/src/aws/osml/model_runner/api/exceptions.py index a219e62a..30c06a16 100755 --- a/src/aws/osml/model_runner/api/exceptions.py +++ b/src/aws/osml/model_runner/api/exceptions.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # API Exceptions diff --git a/src/aws/osml/model_runner/api/image_request.py b/src/aws/osml/model_runner/api/image_request.py index 14e31e31..50c520c3 100755 --- a/src/aws/osml/model_runner/api/image_request.py +++ b/src/aws/osml/model_runner/api/image_request.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import logging from json import dumps, loads diff --git a/src/aws/osml/model_runner/api/inference.py b/src/aws/osml/model_runner/api/inference.py index d5caf780..3c2bce5b 100755 --- a/src/aws/osml/model_runner/api/inference.py +++ b/src/aws/osml/model_runner/api/inference.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. from enum import auto diff --git a/src/aws/osml/model_runner/api/region_request.py b/src/aws/osml/model_runner/api/region_request.py index 32bff9fd..149db915 100755 --- a/src/aws/osml/model_runner/api/region_request.py +++ b/src/aws/osml/model_runner/api/region_request.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. from typing import Any, Dict diff --git a/src/aws/osml/model_runner/api/request_utils.py b/src/aws/osml/model_runner/api/request_utils.py index f46835bb..fa13b5b3 100755 --- a/src/aws/osml/model_runner/api/request_utils.py +++ b/src/aws/osml/model_runner/api/request_utils.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. from aws.osml.model_runner.common import VALID_IMAGE_COMPRESSION, VALID_IMAGE_FORMATS diff --git a/src/aws/osml/model_runner/api/sink.py b/src/aws/osml/model_runner/api/sink.py index 40f9c970..3a72545c 100755 --- a/src/aws/osml/model_runner/api/sink.py +++ b/src/aws/osml/model_runner/api/sink.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. from enum import auto diff --git a/src/aws/osml/model_runner/app.py b/src/aws/osml/model_runner/app.py index 4f37501e..7ffe6a2e 100755 --- a/src/aws/osml/model_runner/app.py +++ b/src/aws/osml/model_runner/app.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import ast import functools diff --git a/src/aws/osml/model_runner/app_config.py b/src/aws/osml/model_runner/app_config.py index 10a9323b..f1b50806 100755 --- a/src/aws/osml/model_runner/app_config.py +++ b/src/aws/osml/model_runner/app_config.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import os from dataclasses import dataclass diff --git a/src/aws/osml/model_runner/common/__init__.py b/src/aws/osml/model_runner/common/__init__.py index c7d3f6fb..d9a549c4 100755 --- a/src/aws/osml/model_runner/common/__init__.py +++ b/src/aws/osml/model_runner/common/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # Telling flake8 to not flag errors in this file. It is normal that these classes are imported but not used in an # __init__.py file. diff --git a/src/aws/osml/model_runner/common/auto_string_enum.py b/src/aws/osml/model_runner/common/auto_string_enum.py index 60124746..a1c65468 100755 --- a/src/aws/osml/model_runner/common/auto_string_enum.py +++ b/src/aws/osml/model_runner/common/auto_string_enum.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. from enum import Enum diff --git a/src/aws/osml/model_runner/common/credentials_utils.py b/src/aws/osml/model_runner/common/credentials_utils.py index aa14dfc8..f7e09c07 100755 --- a/src/aws/osml/model_runner/common/credentials_utils.py +++ b/src/aws/osml/model_runner/common/credentials_utils.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. from typing import Dict diff --git a/src/aws/osml/model_runner/common/endpoint_utils.py b/src/aws/osml/model_runner/common/endpoint_utils.py index 0a2b12bf..7bfc2cac 100755 --- a/src/aws/osml/model_runner/common/endpoint_utils.py +++ b/src/aws/osml/model_runner/common/endpoint_utils.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import logging import math diff --git a/src/aws/osml/model_runner/common/exceptions.py b/src/aws/osml/model_runner/common/exceptions.py index ca45630b..50618ed3 100755 --- a/src/aws/osml/model_runner/common/exceptions.py +++ b/src/aws/osml/model_runner/common/exceptions.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # Common Exceptions diff --git a/src/aws/osml/model_runner/common/feature_utils.py b/src/aws/osml/model_runner/common/feature_utils.py index 124de83e..c62f6f4e 100644 --- a/src/aws/osml/model_runner/common/feature_utils.py +++ b/src/aws/osml/model_runner/common/feature_utils.py @@ -1,3 +1,5 @@ +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + from typing import Optional, Tuple import geojson diff --git a/src/aws/osml/model_runner/common/log_context.py b/src/aws/osml/model_runner/common/log_context.py index f40ec691..d5e5e640 100644 --- a/src/aws/osml/model_runner/common/log_context.py +++ b/src/aws/osml/model_runner/common/log_context.py @@ -1,3 +1,5 @@ +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + import logging import threading from typing import List, Optional diff --git a/src/aws/osml/model_runner/common/metrics_utils.py b/src/aws/osml/model_runner/common/metrics_utils.py index a4c4342b..58545052 100755 --- a/src/aws/osml/model_runner/common/metrics_utils.py +++ b/src/aws/osml/model_runner/common/metrics_utils.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. from aws_embedded_metrics.config import get_config diff --git a/src/aws/osml/model_runner/common/mr_post_processing.py b/src/aws/osml/model_runner/common/mr_post_processing.py index 87cc2366..08dc70e7 100755 --- a/src/aws/osml/model_runner/common/mr_post_processing.py +++ b/src/aws/osml/model_runner/common/mr_post_processing.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. from abc import ABC, ABCMeta, abstractmethod from dataclasses import dataclass, field diff --git a/src/aws/osml/model_runner/common/security_classification.py b/src/aws/osml/model_runner/common/security_classification.py index 9c476df6..098638f7 100755 --- a/src/aws/osml/model_runner/common/security_classification.py +++ b/src/aws/osml/model_runner/common/security_classification.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. from dataclasses import dataclass, field from enum import auto diff --git a/src/aws/osml/model_runner/common/timer.py b/src/aws/osml/model_runner/common/timer.py index 6783c207..cd18eda7 100755 --- a/src/aws/osml/model_runner/common/timer.py +++ b/src/aws/osml/model_runner/common/timer.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import logging import time diff --git a/src/aws/osml/model_runner/common/typing.py b/src/aws/osml/model_runner/common/typing.py index 906a06e7..0d68a904 100755 --- a/src/aws/osml/model_runner/common/typing.py +++ b/src/aws/osml/model_runner/common/typing.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. from enum import Enum, auto from typing import Tuple diff --git a/src/aws/osml/model_runner/database/__init__.py b/src/aws/osml/model_runner/database/__init__.py index 04bb58ac..eeb494e2 100755 --- a/src/aws/osml/model_runner/database/__init__.py +++ b/src/aws/osml/model_runner/database/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # Telling flake8 to not flag errors in this file. It is normal that these classes are imported but not used in an # __init__.py file. diff --git a/src/aws/osml/model_runner/database/ddb_helper.py b/src/aws/osml/model_runner/database/ddb_helper.py index eafee45d..d9b6b0cf 100755 --- a/src/aws/osml/model_runner/database/ddb_helper.py +++ b/src/aws/osml/model_runner/database/ddb_helper.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import logging import random diff --git a/src/aws/osml/model_runner/database/endpoint_statistics_table.py b/src/aws/osml/model_runner/database/endpoint_statistics_table.py index acae9f3e..5f67518c 100755 --- a/src/aws/osml/model_runner/database/endpoint_statistics_table.py +++ b/src/aws/osml/model_runner/database/endpoint_statistics_table.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import logging from dataclasses import dataclass diff --git a/src/aws/osml/model_runner/database/exceptions.py b/src/aws/osml/model_runner/database/exceptions.py index 550c9a41..7bac3799 100755 --- a/src/aws/osml/model_runner/database/exceptions.py +++ b/src/aws/osml/model_runner/database/exceptions.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # Database Exceptions diff --git a/src/aws/osml/model_runner/database/feature_table.py b/src/aws/osml/model_runner/database/feature_table.py index a303119b..a92d44cf 100755 --- a/src/aws/osml/model_runner/database/feature_table.py +++ b/src/aws/osml/model_runner/database/feature_table.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import logging import random diff --git a/src/aws/osml/model_runner/database/job_table.py b/src/aws/osml/model_runner/database/job_table.py index 0e1e2921..dc2091cc 100755 --- a/src/aws/osml/model_runner/database/job_table.py +++ b/src/aws/osml/model_runner/database/job_table.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import time from dataclasses import dataclass diff --git a/src/aws/osml/model_runner/database/region_request_table.py b/src/aws/osml/model_runner/database/region_request_table.py index 3491a176..d7d6061d 100755 --- a/src/aws/osml/model_runner/database/region_request_table.py +++ b/src/aws/osml/model_runner/database/region_request_table.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import logging import time diff --git a/src/aws/osml/model_runner/exceptions.py b/src/aws/osml/model_runner/exceptions.py index 78d9790e..1c10cd20 100755 --- a/src/aws/osml/model_runner/exceptions.py +++ b/src/aws/osml/model_runner/exceptions.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # ModelRunner Exceptions diff --git a/src/aws/osml/model_runner/inference/__init__.py b/src/aws/osml/model_runner/inference/__init__.py index 40403d1a..b683b024 100755 --- a/src/aws/osml/model_runner/inference/__init__.py +++ b/src/aws/osml/model_runner/inference/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # Telling flake8 to not flag errors in this file. It is normal that these classes are imported but not used in an # __init__.py file. diff --git a/src/aws/osml/model_runner/inference/detector.py b/src/aws/osml/model_runner/inference/detector.py index 0d391bb6..fa614015 100755 --- a/src/aws/osml/model_runner/inference/detector.py +++ b/src/aws/osml/model_runner/inference/detector.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import abc from io import BufferedReader diff --git a/src/aws/osml/model_runner/inference/endpoint_builder.py b/src/aws/osml/model_runner/inference/endpoint_builder.py index f5146ec1..b4afa2d4 100644 --- a/src/aws/osml/model_runner/inference/endpoint_builder.py +++ b/src/aws/osml/model_runner/inference/endpoint_builder.py @@ -1,3 +1,5 @@ +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + from abc import ABC, abstractmethod from typing import Optional diff --git a/src/aws/osml/model_runner/inference/endpoint_factory.py b/src/aws/osml/model_runner/inference/endpoint_factory.py index 1bad4df4..f0d1c05f 100644 --- a/src/aws/osml/model_runner/inference/endpoint_factory.py +++ b/src/aws/osml/model_runner/inference/endpoint_factory.py @@ -1,3 +1,5 @@ +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + from typing import Dict, Optional from aws.osml.model_runner.api import ModelInvokeMode diff --git a/src/aws/osml/model_runner/inference/exceptions.py b/src/aws/osml/model_runner/inference/exceptions.py index e561b694..94bb6510 100755 --- a/src/aws/osml/model_runner/inference/exceptions.py +++ b/src/aws/osml/model_runner/inference/exceptions.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # Telling flake8 to not flag errors in this file. It is normal that these classes are imported but not used in an # __init__.py file. diff --git a/src/aws/osml/model_runner/inference/feature_selection.py b/src/aws/osml/model_runner/inference/feature_selection.py index ea8b2895..3c9c5b3f 100755 --- a/src/aws/osml/model_runner/inference/feature_selection.py +++ b/src/aws/osml/model_runner/inference/feature_selection.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. from collections import OrderedDict from typing import List, Tuple diff --git a/src/aws/osml/model_runner/inference/feature_utils.py b/src/aws/osml/model_runner/inference/feature_utils.py index 166b5050..220accab 100755 --- a/src/aws/osml/model_runner/inference/feature_utils.py +++ b/src/aws/osml/model_runner/inference/feature_utils.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import logging from datetime import datetime diff --git a/src/aws/osml/model_runner/inference/http_detector.py b/src/aws/osml/model_runner/inference/http_detector.py index 3fd648a5..ed5de225 100644 --- a/src/aws/osml/model_runner/inference/http_detector.py +++ b/src/aws/osml/model_runner/inference/http_detector.py @@ -1,3 +1,5 @@ +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + import logging from io import BufferedReader from json import JSONDecodeError diff --git a/src/aws/osml/model_runner/inference/sm_detector.py b/src/aws/osml/model_runner/inference/sm_detector.py index e0480a3b..93621c1e 100644 --- a/src/aws/osml/model_runner/inference/sm_detector.py +++ b/src/aws/osml/model_runner/inference/sm_detector.py @@ -1,6 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. - -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import logging from io import BufferedReader diff --git a/src/aws/osml/model_runner/queue/__init__.py b/src/aws/osml/model_runner/queue/__init__.py index 818d7d35..6924afae 100755 --- a/src/aws/osml/model_runner/queue/__init__.py +++ b/src/aws/osml/model_runner/queue/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # Telling flake8 to not flag errors in this file. It is normal that these classes are imported but not used in an # __init__.py file. diff --git a/src/aws/osml/model_runner/queue/request_queue.py b/src/aws/osml/model_runner/queue/request_queue.py index b0ee14fe..b5797cd3 100755 --- a/src/aws/osml/model_runner/queue/request_queue.py +++ b/src/aws/osml/model_runner/queue/request_queue.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import json import logging diff --git a/src/aws/osml/model_runner/sink/__init__.py b/src/aws/osml/model_runner/sink/__init__.py index f3312eb0..8a7e2f4e 100755 --- a/src/aws/osml/model_runner/sink/__init__.py +++ b/src/aws/osml/model_runner/sink/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # Telling flake8 to not flag errors in this file. It is normal that these classes are imported but not used in an # __init__.py file. diff --git a/src/aws/osml/model_runner/sink/exceptions.py b/src/aws/osml/model_runner/sink/exceptions.py index 51e16b21..dbb9150a 100755 --- a/src/aws/osml/model_runner/sink/exceptions.py +++ b/src/aws/osml/model_runner/sink/exceptions.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # SINK Exceptions diff --git a/src/aws/osml/model_runner/sink/kinesis_sink.py b/src/aws/osml/model_runner/sink/kinesis_sink.py index cd1c01a8..381b5e66 100755 --- a/src/aws/osml/model_runner/sink/kinesis_sink.py +++ b/src/aws/osml/model_runner/sink/kinesis_sink.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import logging import sys diff --git a/src/aws/osml/model_runner/sink/s3_sink.py b/src/aws/osml/model_runner/sink/s3_sink.py index 01e02f38..c732012d 100755 --- a/src/aws/osml/model_runner/sink/s3_sink.py +++ b/src/aws/osml/model_runner/sink/s3_sink.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import logging import os diff --git a/src/aws/osml/model_runner/sink/sink.py b/src/aws/osml/model_runner/sink/sink.py index df54df8a..cfbfe7d5 100755 --- a/src/aws/osml/model_runner/sink/sink.py +++ b/src/aws/osml/model_runner/sink/sink.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import abc from typing import List diff --git a/src/aws/osml/model_runner/sink/sink_factory.py b/src/aws/osml/model_runner/sink/sink_factory.py index d2c508e8..9d8df31c 100755 --- a/src/aws/osml/model_runner/sink/sink_factory.py +++ b/src/aws/osml/model_runner/sink/sink_factory.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import logging from typing import Any, Dict, List diff --git a/src/aws/osml/model_runner/status/__init__.py b/src/aws/osml/model_runner/status/__init__.py index 9edb686f..3ed4b49a 100755 --- a/src/aws/osml/model_runner/status/__init__.py +++ b/src/aws/osml/model_runner/status/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # Telling flake8 to not flag errors in this file. It is normal that these classes are imported but not used in an # __init__.py file. diff --git a/src/aws/osml/model_runner/status/exceptions.py b/src/aws/osml/model_runner/status/exceptions.py index a8cbdaed..76f9d70b 100755 --- a/src/aws/osml/model_runner/status/exceptions.py +++ b/src/aws/osml/model_runner/status/exceptions.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # Status Exceptions diff --git a/src/aws/osml/model_runner/status/image_request_status.py b/src/aws/osml/model_runner/status/image_request_status.py index 3a32963a..36c22ccc 100755 --- a/src/aws/osml/model_runner/status/image_request_status.py +++ b/src/aws/osml/model_runner/status/image_request_status.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. from dataclasses import dataclass, field, fields from decimal import Decimal diff --git a/src/aws/osml/model_runner/status/sns_helper.py b/src/aws/osml/model_runner/status/sns_helper.py index 16d066e9..8bbcc3dc 100755 --- a/src/aws/osml/model_runner/status/sns_helper.py +++ b/src/aws/osml/model_runner/status/sns_helper.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import logging from typing import Any, Dict, Optional, Union diff --git a/src/aws/osml/model_runner/status/status_monitor.py b/src/aws/osml/model_runner/status/status_monitor.py index 16a63f88..99d56010 100755 --- a/src/aws/osml/model_runner/status/status_monitor.py +++ b/src/aws/osml/model_runner/status/status_monitor.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import logging diff --git a/src/aws/osml/model_runner/tile_worker/__init__.py b/src/aws/osml/model_runner/tile_worker/__init__.py index 2935f3be..035bccdd 100755 --- a/src/aws/osml/model_runner/tile_worker/__init__.py +++ b/src/aws/osml/model_runner/tile_worker/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # Telling flake8 to not flag errors in this file. It is normal that these classes are imported but not used in an # __init__.py file. diff --git a/src/aws/osml/model_runner/tile_worker/exceptions.py b/src/aws/osml/model_runner/tile_worker/exceptions.py index 2eefd880..5bc15590 100755 --- a/src/aws/osml/model_runner/tile_worker/exceptions.py +++ b/src/aws/osml/model_runner/tile_worker/exceptions.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # TileWorker Exceptions diff --git a/src/aws/osml/model_runner/tile_worker/tile_worker.py b/src/aws/osml/model_runner/tile_worker/tile_worker.py index 58b68ad3..3ca37e90 100755 --- a/src/aws/osml/model_runner/tile_worker/tile_worker.py +++ b/src/aws/osml/model_runner/tile_worker/tile_worker.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import asyncio import logging diff --git a/src/aws/osml/model_runner/tile_worker/tile_worker_utils.py b/src/aws/osml/model_runner/tile_worker/tile_worker_utils.py index b37ba02b..b83df68c 100755 --- a/src/aws/osml/model_runner/tile_worker/tile_worker_utils.py +++ b/src/aws/osml/model_runner/tile_worker/tile_worker_utils.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import logging import tempfile diff --git a/test/__init__.py b/test/__init__.py index 281fa430..588610ec 100755 --- a/test/__init__.py +++ b/test/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # Telling flake8 to not flag errors in this file. It is normal that these classes are imported but not used in an # __init__.py file. diff --git a/test/aws/osml/model_runner/api/test_image_request.py b/test/aws/osml/model_runner/api/test_image_request.py index 226ac996..355467b4 100755 --- a/test/aws/osml/model_runner/api/test_image_request.py +++ b/test/aws/osml/model_runner/api/test_image_request.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import unittest diff --git a/test/aws/osml/model_runner/common/test_credentials_utils.py b/test/aws/osml/model_runner/common/test_credentials_utils.py index b71ce0dc..171dd2f4 100755 --- a/test/aws/osml/model_runner/common/test_credentials_utils.py +++ b/test/aws/osml/model_runner/common/test_credentials_utils.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import unittest diff --git a/test/aws/osml/model_runner/common/test_log_context.py b/test/aws/osml/model_runner/common/test_log_context.py index 546a08db..53c08cb6 100644 --- a/test/aws/osml/model_runner/common/test_log_context.py +++ b/test/aws/osml/model_runner/common/test_log_context.py @@ -1,3 +1,5 @@ +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + import logging from threading import Thread from unittest import TestCase, main diff --git a/test/aws/osml/model_runner/common/test_mr_post_processing.py b/test/aws/osml/model_runner/common/test_mr_post_processing.py index a678c72b..04bb681b 100755 --- a/test/aws/osml/model_runner/common/test_mr_post_processing.py +++ b/test/aws/osml/model_runner/common/test_mr_post_processing.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. from dataclasses import asdict from json import dumps, loads diff --git a/test/aws/osml/model_runner/common/test_security_classification.py b/test/aws/osml/model_runner/common/test_security_classification.py index 57e6f9e0..a8318ef2 100755 --- a/test/aws/osml/model_runner/common/test_security_classification.py +++ b/test/aws/osml/model_runner/common/test_security_classification.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import json from dataclasses import asdict diff --git a/test/aws/osml/model_runner/common/test_timer.py b/test/aws/osml/model_runner/common/test_timer.py index 4ca13927..f69617b8 100755 --- a/test/aws/osml/model_runner/common/test_timer.py +++ b/test/aws/osml/model_runner/common/test_timer.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import time from unittest import TestCase, main diff --git a/test/aws/osml/model_runner/database/test_ddb_helper.py b/test/aws/osml/model_runner/database/test_ddb_helper.py index ddeb8401..a0516dde 100755 --- a/test/aws/osml/model_runner/database/test_ddb_helper.py +++ b/test/aws/osml/model_runner/database/test_ddb_helper.py @@ -1,4 +1,5 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + import os from unittest import TestCase diff --git a/test/aws/osml/model_runner/database/test_endpoint_statistics_table.py b/test/aws/osml/model_runner/database/test_endpoint_statistics_table.py index 2f1fd6eb..22e8498a 100755 --- a/test/aws/osml/model_runner/database/test_endpoint_statistics_table.py +++ b/test/aws/osml/model_runner/database/test_endpoint_statistics_table.py @@ -1,4 +1,5 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + import os import unittest from unittest.mock import Mock diff --git a/test/aws/osml/model_runner/database/test_feature_table.py b/test/aws/osml/model_runner/database/test_feature_table.py index 8e5509c8..e0aca72b 100755 --- a/test/aws/osml/model_runner/database/test_feature_table.py +++ b/test/aws/osml/model_runner/database/test_feature_table.py @@ -1,4 +1,5 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + import os import unittest from typing import List diff --git a/test/aws/osml/model_runner/database/test_job_table.py b/test/aws/osml/model_runner/database/test_job_table.py index 3c103fc2..9e2665b6 100755 --- a/test/aws/osml/model_runner/database/test_job_table.py +++ b/test/aws/osml/model_runner/database/test_job_table.py @@ -1,4 +1,5 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + import os import unittest from decimal import Decimal diff --git a/test/aws/osml/model_runner/database/test_region_request_table.py b/test/aws/osml/model_runner/database/test_region_request_table.py index a967b713..d5f0fb5e 100755 --- a/test/aws/osml/model_runner/database/test_region_request_table.py +++ b/test/aws/osml/model_runner/database/test_region_request_table.py @@ -1,4 +1,5 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + import os import unittest from unittest.mock import Mock diff --git a/test/aws/osml/model_runner/inference/test_endpoint_factory.py b/test/aws/osml/model_runner/inference/test_endpoint_factory.py index 56e40f3d..6657f0d2 100644 --- a/test/aws/osml/model_runner/inference/test_endpoint_factory.py +++ b/test/aws/osml/model_runner/inference/test_endpoint_factory.py @@ -1,3 +1,5 @@ +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + import unittest diff --git a/test/aws/osml/model_runner/inference/test_feature_selection.py b/test/aws/osml/model_runner/inference/test_feature_selection.py index b6cef183..8cd3c155 100755 --- a/test/aws/osml/model_runner/inference/test_feature_selection.py +++ b/test/aws/osml/model_runner/inference/test_feature_selection.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. from unittest import TestCase diff --git a/test/aws/osml/model_runner/inference/test_feature_utils.py b/test/aws/osml/model_runner/inference/test_feature_utils.py index e0a9b72a..0c4ee670 100755 --- a/test/aws/osml/model_runner/inference/test_feature_utils.py +++ b/test/aws/osml/model_runner/inference/test_feature_utils.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import unittest from math import degrees diff --git a/test/aws/osml/model_runner/inference/test_http_detector.py b/test/aws/osml/model_runner/inference/test_http_detector.py index a5595f08..0384fe00 100644 --- a/test/aws/osml/model_runner/inference/test_http_detector.py +++ b/test/aws/osml/model_runner/inference/test_http_detector.py @@ -1,3 +1,5 @@ +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + import json from unittest import TestCase from unittest.mock import patch diff --git a/test/aws/osml/model_runner/inference/test_sm_detector.py b/test/aws/osml/model_runner/inference/test_sm_detector.py index 4f3c673c..9ed4320f 100755 --- a/test/aws/osml/model_runner/inference/test_sm_detector.py +++ b/test/aws/osml/model_runner/inference/test_sm_detector.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import datetime import io diff --git a/test/aws/osml/model_runner/queue/test_request_queue.py b/test/aws/osml/model_runner/queue/test_request_queue.py index d533d124..9237b84d 100755 --- a/test/aws/osml/model_runner/queue/test_request_queue.py +++ b/test/aws/osml/model_runner/queue/test_request_queue.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import unittest from unittest.mock import Mock diff --git a/test/aws/osml/model_runner/sink/test_kinesis_sink.py b/test/aws/osml/model_runner/sink/test_kinesis_sink.py index 0577d8f4..1e828366 100755 --- a/test/aws/osml/model_runner/sink/test_kinesis_sink.py +++ b/test/aws/osml/model_runner/sink/test_kinesis_sink.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import datetime import unittest diff --git a/test/aws/osml/model_runner/sink/test_s3_sink.py b/test/aws/osml/model_runner/sink/test_s3_sink.py index 42bc972a..d509ae6a 100755 --- a/test/aws/osml/model_runner/sink/test_s3_sink.py +++ b/test/aws/osml/model_runner/sink/test_s3_sink.py @@ -1,4 +1,5 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. + import unittest from typing import List from unittest import mock diff --git a/test/aws/osml/model_runner/status/test_image_request_status.py b/test/aws/osml/model_runner/status/test_image_request_status.py index cb846e42..db52686b 100755 --- a/test/aws/osml/model_runner/status/test_image_request_status.py +++ b/test/aws/osml/model_runner/status/test_image_request_status.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. from decimal import Decimal from unittest import TestCase diff --git a/test/aws/osml/model_runner/status/test_sns_helper.py b/test/aws/osml/model_runner/status/test_sns_helper.py index b2699f1b..6fd4b759 100755 --- a/test/aws/osml/model_runner/status/test_sns_helper.py +++ b/test/aws/osml/model_runner/status/test_sns_helper.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import json import os diff --git a/test/aws/osml/model_runner/status/test_status_monitor.py b/test/aws/osml/model_runner/status/test_status_monitor.py index 901c483e..c91d337d 100755 --- a/test/aws/osml/model_runner/status/test_status_monitor.py +++ b/test/aws/osml/model_runner/status/test_status_monitor.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. import json import os diff --git a/test/aws/osml/model_runner/tile_worker/test_tile_worker_utils.py b/test/aws/osml/model_runner/tile_worker/test_tile_worker_utils.py index 53f62e0d..198c8837 100755 --- a/test/aws/osml/model_runner/tile_worker/test_tile_worker_utils.py +++ b/test/aws/osml/model_runner/tile_worker/test_tile_worker_utils.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. from unittest import TestCase, main from unittest.mock import Mock, patch diff --git a/test/test_api.py b/test/test_api.py index 417fb7b7..168bd0eb 100755 --- a/test/test_api.py +++ b/test/test_api.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. from typing import Any, Dict from unittest import TestCase, main From 3e482c71d0fb811f1dcd0600d88f67ef6c497a4e Mon Sep 17 00:00:00 2001 From: jtblack Date: Mon, 4 Mar 2024 15:00:43 -0700 Subject: [PATCH 2/2] fix: updating copyright --- test/configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/configuration.py b/test/configuration.py index a4323d74..dc49ae50 100755 --- a/test/configuration.py +++ b/test/configuration.py @@ -1,4 +1,4 @@ -# Copyright 2023 Amazon.com, Inc. or its affiliates. +# Copyright 2023-2024 Amazon.com, Inc. or its affiliates. # Environment Variable Configuration TEST_ENV_CONFIG = {