From bff1705d663462abfaf47bb05b528b229805dc57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Ple=C5=A1a?= Date: Fri, 9 Jan 2026 11:36:04 +0100 Subject: [PATCH] Add copyright headers to all py files --- mapillary_tools/__init__.py | 5 +++++ mapillary_tools/api_v4.py | 5 +++++ mapillary_tools/authenticate.py | 5 +++++ mapillary_tools/blackvue_parser.py | 5 +++++ mapillary_tools/camm/camm_builder.py | 5 +++++ mapillary_tools/camm/camm_parser.py | 5 +++++ mapillary_tools/commands/__init__.py | 5 +++++ mapillary_tools/commands/__main__.py | 5 +++++ mapillary_tools/commands/authenticate.py | 5 +++++ mapillary_tools/commands/process.py | 5 +++++ mapillary_tools/commands/process_and_upload.py | 5 +++++ mapillary_tools/commands/sample_video.py | 5 +++++ mapillary_tools/commands/upload.py | 5 +++++ mapillary_tools/commands/video_process.py | 5 +++++ mapillary_tools/commands/video_process_and_upload.py | 5 +++++ mapillary_tools/commands/zip.py | 5 +++++ mapillary_tools/config.py | 5 +++++ mapillary_tools/constants.py | 5 +++++ mapillary_tools/exceptions.py | 5 +++++ mapillary_tools/exif_read.py | 5 +++++ mapillary_tools/exif_write.py | 5 +++++ mapillary_tools/exiftool_read.py | 5 +++++ mapillary_tools/exiftool_read_video.py | 5 +++++ mapillary_tools/exiftool_runner.py | 5 +++++ mapillary_tools/ffmpeg.py | 5 +++++ mapillary_tools/geo.py | 5 +++++ mapillary_tools/geotag/__init__.py | 5 +++++ mapillary_tools/geotag/base.py | 5 +++++ mapillary_tools/geotag/factory.py | 5 +++++ mapillary_tools/geotag/geotag_images_from_exif.py | 5 +++++ mapillary_tools/geotag/geotag_images_from_exiftool.py | 5 +++++ mapillary_tools/geotag/geotag_images_from_gpx.py | 5 +++++ mapillary_tools/geotag/geotag_images_from_gpx_file.py | 5 +++++ mapillary_tools/geotag/geotag_images_from_nmea_file.py | 5 +++++ mapillary_tools/geotag/geotag_images_from_video.py | 5 +++++ mapillary_tools/geotag/geotag_videos_from_exiftool.py | 5 +++++ mapillary_tools/geotag/geotag_videos_from_gpx.py | 5 +++++ mapillary_tools/geotag/geotag_videos_from_video.py | 5 +++++ mapillary_tools/geotag/image_extractors/base.py | 5 +++++ mapillary_tools/geotag/image_extractors/exif.py | 5 +++++ mapillary_tools/geotag/image_extractors/exiftool.py | 5 +++++ mapillary_tools/geotag/options.py | 5 +++++ mapillary_tools/geotag/utils.py | 5 +++++ mapillary_tools/geotag/video_extractors/base.py | 5 +++++ mapillary_tools/geotag/video_extractors/exiftool.py | 5 +++++ mapillary_tools/geotag/video_extractors/gpx.py | 5 +++++ mapillary_tools/geotag/video_extractors/native.py | 5 +++++ mapillary_tools/gpmf/gpmf_gps_filter.py | 5 +++++ mapillary_tools/gpmf/gpmf_parser.py | 5 +++++ mapillary_tools/gpmf/gps_filter.py | 5 +++++ mapillary_tools/history.py | 5 +++++ mapillary_tools/http.py | 5 +++++ mapillary_tools/ipc.py | 5 +++++ mapillary_tools/mp4/__init__.py | 5 +++++ mapillary_tools/mp4/construct_mp4_parser.py | 5 +++++ mapillary_tools/mp4/io_utils.py | 5 +++++ mapillary_tools/mp4/mp4_sample_parser.py | 5 +++++ mapillary_tools/mp4/simple_mp4_builder.py | 5 +++++ mapillary_tools/mp4/simple_mp4_parser.py | 5 +++++ mapillary_tools/process_geotag_properties.py | 5 +++++ mapillary_tools/process_sequence_properties.py | 5 +++++ mapillary_tools/sample_video.py | 5 +++++ mapillary_tools/serializer/description.py | 5 +++++ mapillary_tools/serializer/gpx.py | 5 +++++ mapillary_tools/store.py | 5 +++++ mapillary_tools/telemetry.py | 5 +++++ mapillary_tools/types.py | 5 +++++ mapillary_tools/upload.py | 5 +++++ mapillary_tools/upload_api_v4.py | 5 +++++ mapillary_tools/uploader.py | 5 +++++ mapillary_tools/utils.py | 5 +++++ pyinstaller/main.py | 5 +++++ tests/__init__.py | 5 +++++ tests/cli/__init__.py | 5 +++++ tests/cli/blackvue_parser.py | 5 +++++ tests/cli/camm_parser.py | 5 +++++ tests/cli/exif_read.py | 5 +++++ tests/cli/exif_write.py | 5 +++++ tests/cli/exiftool_runner.py | 5 +++++ tests/cli/gpmf_parser.py | 5 +++++ tests/cli/gps_filter.py | 5 +++++ tests/cli/process_sequence_properties.py | 5 +++++ tests/cli/simple_mp4_builder.py | 5 +++++ tests/cli/simple_mp4_parser.py | 5 +++++ tests/cli/upload_api_v4.py | 5 +++++ tests/integration/__init__.py | 5 +++++ tests/integration/fixtures.py | 5 +++++ tests/integration/test_gopro.py | 5 +++++ tests/integration/test_history.py | 5 +++++ tests/integration/test_process.py | 5 +++++ tests/integration/test_process_and_upload.py | 5 +++++ tests/integration/test_upload.py | 5 +++++ tests/integration/test_video_process.py | 5 +++++ tests/unit/__init__.py | 5 +++++ tests/unit/generate_test_image.py | 5 +++++ tests/unit/test_blackvue_parser.py | 5 +++++ tests/unit/test_camm_parser.py | 5 +++++ tests/unit/test_config.py | 5 +++++ tests/unit/test_description.py | 5 +++++ tests/unit/test_exceptions.py | 5 +++++ tests/unit/test_exifedit.py | 5 +++++ tests/unit/test_exifread.py | 5 +++++ tests/unit/test_ffmpeg.py | 5 +++++ tests/unit/test_geo.py | 5 +++++ tests/unit/test_gpmf_parser.py | 5 +++++ tests/unit/test_gps_filter.py | 5 +++++ tests/unit/test_io_utils.py | 5 +++++ tests/unit/test_mp4_sample_parser.py | 5 +++++ tests/unit/test_persistent_cache.py | 5 +++++ tests/unit/test_sample_video.py | 5 +++++ tests/unit/test_sequence_processing.py | 5 +++++ tests/unit/test_simple_mp4_builder.py | 5 +++++ tests/unit/test_simple_mp4_parser.py | 5 +++++ tests/unit/test_store.py | 5 +++++ tests/unit/test_types.py | 5 +++++ tests/unit/test_upload_api_v4.py | 5 +++++ tests/unit/test_uploader.py | 5 +++++ tests/unit/test_utils.py | 5 +++++ 118 files changed, 590 insertions(+) diff --git a/mapillary_tools/__init__.py b/mapillary_tools/__init__.py index 4c4150493..ba3a8534c 100644 --- a/mapillary_tools/__init__.py +++ b/mapillary_tools/__init__.py @@ -1 +1,6 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + VERSION = "0.14.5" diff --git a/mapillary_tools/api_v4.py b/mapillary_tools/api_v4.py index 22204e1d6..89aa91a4d 100644 --- a/mapillary_tools/api_v4.py +++ b/mapillary_tools/api_v4.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import enum diff --git a/mapillary_tools/authenticate.py b/mapillary_tools/authenticate.py index bdbfb602e..d00c737c7 100644 --- a/mapillary_tools/authenticate.py +++ b/mapillary_tools/authenticate.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import getpass diff --git a/mapillary_tools/blackvue_parser.py b/mapillary_tools/blackvue_parser.py index 0bafd860f..d80a2f258 100644 --- a/mapillary_tools/blackvue_parser.py +++ b/mapillary_tools/blackvue_parser.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import dataclasses diff --git a/mapillary_tools/camm/camm_builder.py b/mapillary_tools/camm/camm_builder.py index af80900c5..c7bb963ad 100644 --- a/mapillary_tools/camm/camm_builder.py +++ b/mapillary_tools/camm/camm_builder.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import io diff --git a/mapillary_tools/camm/camm_parser.py b/mapillary_tools/camm/camm_parser.py index 3cb372b54..1cd59211a 100644 --- a/mapillary_tools/camm/camm_parser.py +++ b/mapillary_tools/camm/camm_parser.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + # pyre-ignore-all-errors[5, 11, 16, 21, 24, 58] from __future__ import annotations diff --git a/mapillary_tools/commands/__init__.py b/mapillary_tools/commands/__init__.py index 2a4fe2596..82f347937 100644 --- a/mapillary_tools/commands/__init__.py +++ b/mapillary_tools/commands/__init__.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + # ruff: noqa: F401 from . import ( authenticate, diff --git a/mapillary_tools/commands/__main__.py b/mapillary_tools/commands/__main__.py index e0466cd22..904c49c83 100644 --- a/mapillary_tools/commands/__main__.py +++ b/mapillary_tools/commands/__main__.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import argparse import enum import logging diff --git a/mapillary_tools/commands/authenticate.py b/mapillary_tools/commands/authenticate.py index e30c92014..4ade8001c 100644 --- a/mapillary_tools/commands/authenticate.py +++ b/mapillary_tools/commands/authenticate.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import argparse import inspect diff --git a/mapillary_tools/commands/process.py b/mapillary_tools/commands/process.py index 2513e7b1b..fc297ad7e 100644 --- a/mapillary_tools/commands/process.py +++ b/mapillary_tools/commands/process.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import argparse diff --git a/mapillary_tools/commands/process_and_upload.py b/mapillary_tools/commands/process_and_upload.py index 3db511cdc..ab25d6934 100644 --- a/mapillary_tools/commands/process_and_upload.py +++ b/mapillary_tools/commands/process_and_upload.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import inspect from ..authenticate import fetch_user_items diff --git a/mapillary_tools/commands/sample_video.py b/mapillary_tools/commands/sample_video.py index 1d4e58bf4..9b78cad2b 100644 --- a/mapillary_tools/commands/sample_video.py +++ b/mapillary_tools/commands/sample_video.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import argparse import inspect from pathlib import Path diff --git a/mapillary_tools/commands/upload.py b/mapillary_tools/commands/upload.py index b4cbe1b24..dd1c7a673 100644 --- a/mapillary_tools/commands/upload.py +++ b/mapillary_tools/commands/upload.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import inspect from .. import constants diff --git a/mapillary_tools/commands/video_process.py b/mapillary_tools/commands/video_process.py index 150a26b6b..faa5364c8 100644 --- a/mapillary_tools/commands/video_process.py +++ b/mapillary_tools/commands/video_process.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import logging from ..types import FileType diff --git a/mapillary_tools/commands/video_process_and_upload.py b/mapillary_tools/commands/video_process_and_upload.py index dfe34e0d2..491eec3cd 100644 --- a/mapillary_tools/commands/video_process_and_upload.py +++ b/mapillary_tools/commands/video_process_and_upload.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import inspect from ..authenticate import fetch_user_items diff --git a/mapillary_tools/commands/zip.py b/mapillary_tools/commands/zip.py index 86b53e682..15018e839 100644 --- a/mapillary_tools/commands/zip.py +++ b/mapillary_tools/commands/zip.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import argparse import inspect from pathlib import Path diff --git a/mapillary_tools/config.py b/mapillary_tools/config.py index d08b8a7fe..7ff06bfa7 100644 --- a/mapillary_tools/config.py +++ b/mapillary_tools/config.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import configparser diff --git a/mapillary_tools/constants.py b/mapillary_tools/constants.py index 15372d754..52afa5142 100644 --- a/mapillary_tools/constants.py +++ b/mapillary_tools/constants.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import functools diff --git a/mapillary_tools/exceptions.py b/mapillary_tools/exceptions.py index bc3ccf94f..0d9aaa659 100644 --- a/mapillary_tools/exceptions.py +++ b/mapillary_tools/exceptions.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import typing as T diff --git a/mapillary_tools/exif_read.py b/mapillary_tools/exif_read.py index 67536ab7a..83278f4d1 100644 --- a/mapillary_tools/exif_read.py +++ b/mapillary_tools/exif_read.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import abc diff --git a/mapillary_tools/exif_write.py b/mapillary_tools/exif_write.py index b7732f1f8..82e4dfcb9 100644 --- a/mapillary_tools/exif_write.py +++ b/mapillary_tools/exif_write.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + # pyre-ignore-all-errors[5, 21, 24] from __future__ import annotations diff --git a/mapillary_tools/exiftool_read.py b/mapillary_tools/exiftool_read.py index e10da07cb..0e8f664b2 100644 --- a/mapillary_tools/exiftool_read.py +++ b/mapillary_tools/exiftool_read.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import datetime diff --git a/mapillary_tools/exiftool_read_video.py b/mapillary_tools/exiftool_read_video.py index 8c9338b24..0f4f6b736 100644 --- a/mapillary_tools/exiftool_read_video.py +++ b/mapillary_tools/exiftool_read_video.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import dataclasses diff --git a/mapillary_tools/exiftool_runner.py b/mapillary_tools/exiftool_runner.py index 4987409c0..1ebb7e0e7 100644 --- a/mapillary_tools/exiftool_runner.py +++ b/mapillary_tools/exiftool_runner.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import subprocess diff --git a/mapillary_tools/ffmpeg.py b/mapillary_tools/ffmpeg.py index 3efad87ee..b2b2b835d 100644 --- a/mapillary_tools/ffmpeg.py +++ b/mapillary_tools/ffmpeg.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + # pyre-ignore-all-errors[5, 24] from __future__ import annotations diff --git a/mapillary_tools/geo.py b/mapillary_tools/geo.py index 1e5fa3893..0ca6ed92c 100644 --- a/mapillary_tools/geo.py +++ b/mapillary_tools/geo.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + # pyre-ignore-all-errors[4] from __future__ import annotations diff --git a/mapillary_tools/geotag/__init__.py b/mapillary_tools/geotag/__init__.py index e69de29bb..d5cf26e02 100644 --- a/mapillary_tools/geotag/__init__.py +++ b/mapillary_tools/geotag/__init__.py @@ -0,0 +1,5 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + diff --git a/mapillary_tools/geotag/base.py b/mapillary_tools/geotag/base.py index 0a43995c3..09d6c8f4d 100644 --- a/mapillary_tools/geotag/base.py +++ b/mapillary_tools/geotag/base.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import abc diff --git a/mapillary_tools/geotag/factory.py b/mapillary_tools/geotag/factory.py index 44647c104..c69229c92 100644 --- a/mapillary_tools/geotag/factory.py +++ b/mapillary_tools/geotag/factory.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import json diff --git a/mapillary_tools/geotag/geotag_images_from_exif.py b/mapillary_tools/geotag/geotag_images_from_exif.py index 7a5ec1698..56a1a0d89 100644 --- a/mapillary_tools/geotag/geotag_images_from_exif.py +++ b/mapillary_tools/geotag/geotag_images_from_exif.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import logging diff --git a/mapillary_tools/geotag/geotag_images_from_exiftool.py b/mapillary_tools/geotag/geotag_images_from_exiftool.py index 452bfecd9..b74df2a66 100644 --- a/mapillary_tools/geotag/geotag_images_from_exiftool.py +++ b/mapillary_tools/geotag/geotag_images_from_exiftool.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import logging diff --git a/mapillary_tools/geotag/geotag_images_from_gpx.py b/mapillary_tools/geotag/geotag_images_from_gpx.py index 2ec0b9d2a..164d67d28 100644 --- a/mapillary_tools/geotag/geotag_images_from_gpx.py +++ b/mapillary_tools/geotag/geotag_images_from_gpx.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import dataclasses diff --git a/mapillary_tools/geotag/geotag_images_from_gpx_file.py b/mapillary_tools/geotag/geotag_images_from_gpx_file.py index 9c0532711..de0343146 100644 --- a/mapillary_tools/geotag/geotag_images_from_gpx_file.py +++ b/mapillary_tools/geotag/geotag_images_from_gpx_file.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import logging diff --git a/mapillary_tools/geotag/geotag_images_from_nmea_file.py b/mapillary_tools/geotag/geotag_images_from_nmea_file.py index ffb67e5f4..c782fcfc2 100644 --- a/mapillary_tools/geotag/geotag_images_from_nmea_file.py +++ b/mapillary_tools/geotag/geotag_images_from_nmea_file.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import datetime diff --git a/mapillary_tools/geotag/geotag_images_from_video.py b/mapillary_tools/geotag/geotag_images_from_video.py index 91468d955..e63ebdd41 100644 --- a/mapillary_tools/geotag/geotag_images_from_video.py +++ b/mapillary_tools/geotag/geotag_images_from_video.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import logging diff --git a/mapillary_tools/geotag/geotag_videos_from_exiftool.py b/mapillary_tools/geotag/geotag_videos_from_exiftool.py index 02b4d3bc9..3b4d0cae2 100644 --- a/mapillary_tools/geotag/geotag_videos_from_exiftool.py +++ b/mapillary_tools/geotag/geotag_videos_from_exiftool.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import logging diff --git a/mapillary_tools/geotag/geotag_videos_from_gpx.py b/mapillary_tools/geotag/geotag_videos_from_gpx.py index ae9fb1851..61afffdd3 100644 --- a/mapillary_tools/geotag/geotag_videos_from_gpx.py +++ b/mapillary_tools/geotag/geotag_videos_from_gpx.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import logging diff --git a/mapillary_tools/geotag/geotag_videos_from_video.py b/mapillary_tools/geotag/geotag_videos_from_video.py index f718656eb..38943f95f 100644 --- a/mapillary_tools/geotag/geotag_videos_from_video.py +++ b/mapillary_tools/geotag/geotag_videos_from_video.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import sys diff --git a/mapillary_tools/geotag/image_extractors/base.py b/mapillary_tools/geotag/image_extractors/base.py index 5d65d6cd2..486fa12e3 100644 --- a/mapillary_tools/geotag/image_extractors/base.py +++ b/mapillary_tools/geotag/image_extractors/base.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import abc diff --git a/mapillary_tools/geotag/image_extractors/exif.py b/mapillary_tools/geotag/image_extractors/exif.py index f78b0bdaf..2ebdee7d1 100644 --- a/mapillary_tools/geotag/image_extractors/exif.py +++ b/mapillary_tools/geotag/image_extractors/exif.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import contextlib diff --git a/mapillary_tools/geotag/image_extractors/exiftool.py b/mapillary_tools/geotag/image_extractors/exiftool.py index a0fbb5c82..de2693ec4 100644 --- a/mapillary_tools/geotag/image_extractors/exiftool.py +++ b/mapillary_tools/geotag/image_extractors/exiftool.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import contextlib diff --git a/mapillary_tools/geotag/options.py b/mapillary_tools/geotag/options.py index 19081f239..6adf3d70e 100644 --- a/mapillary_tools/geotag/options.py +++ b/mapillary_tools/geotag/options.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import dataclasses diff --git a/mapillary_tools/geotag/utils.py b/mapillary_tools/geotag/utils.py index da11d3939..70947ee4b 100644 --- a/mapillary_tools/geotag/utils.py +++ b/mapillary_tools/geotag/utils.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import logging diff --git a/mapillary_tools/geotag/video_extractors/base.py b/mapillary_tools/geotag/video_extractors/base.py index 7bf7a34ba..07cb099d2 100644 --- a/mapillary_tools/geotag/video_extractors/base.py +++ b/mapillary_tools/geotag/video_extractors/base.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import abc diff --git a/mapillary_tools/geotag/video_extractors/exiftool.py b/mapillary_tools/geotag/video_extractors/exiftool.py index e2e0f6956..a51538d6d 100644 --- a/mapillary_tools/geotag/video_extractors/exiftool.py +++ b/mapillary_tools/geotag/video_extractors/exiftool.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import sys diff --git a/mapillary_tools/geotag/video_extractors/gpx.py b/mapillary_tools/geotag/video_extractors/gpx.py index e9ff56f75..c3a1a9aed 100644 --- a/mapillary_tools/geotag/video_extractors/gpx.py +++ b/mapillary_tools/geotag/video_extractors/gpx.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import dataclasses diff --git a/mapillary_tools/geotag/video_extractors/native.py b/mapillary_tools/geotag/video_extractors/native.py index f2d76b912..e6b5659e8 100644 --- a/mapillary_tools/geotag/video_extractors/native.py +++ b/mapillary_tools/geotag/video_extractors/native.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import sys diff --git a/mapillary_tools/gpmf/gpmf_gps_filter.py b/mapillary_tools/gpmf/gpmf_gps_filter.py index c57698d1e..34944b47d 100644 --- a/mapillary_tools/gpmf/gpmf_gps_filter.py +++ b/mapillary_tools/gpmf/gpmf_gps_filter.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import logging import typing as T diff --git a/mapillary_tools/gpmf/gpmf_parser.py b/mapillary_tools/gpmf/gpmf_parser.py index 497a80f57..62b51e868 100644 --- a/mapillary_tools/gpmf/gpmf_parser.py +++ b/mapillary_tools/gpmf/gpmf_parser.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import dataclasses diff --git a/mapillary_tools/gpmf/gps_filter.py b/mapillary_tools/gpmf/gps_filter.py index 12d9abdff..915dd1919 100644 --- a/mapillary_tools/gpmf/gps_filter.py +++ b/mapillary_tools/gpmf/gps_filter.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import statistics diff --git a/mapillary_tools/history.py b/mapillary_tools/history.py index 105153137..8e3e23b73 100644 --- a/mapillary_tools/history.py +++ b/mapillary_tools/history.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import json diff --git a/mapillary_tools/http.py b/mapillary_tools/http.py index 147cd2de1..36c74e421 100644 --- a/mapillary_tools/http.py +++ b/mapillary_tools/http.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import logging diff --git a/mapillary_tools/ipc.py b/mapillary_tools/ipc.py index 2e4706e91..c09053813 100644 --- a/mapillary_tools/ipc.py +++ b/mapillary_tools/ipc.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import json import logging import os diff --git a/mapillary_tools/mp4/__init__.py b/mapillary_tools/mp4/__init__.py index e69de29bb..d5cf26e02 100644 --- a/mapillary_tools/mp4/__init__.py +++ b/mapillary_tools/mp4/__init__.py @@ -0,0 +1,5 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + diff --git a/mapillary_tools/mp4/construct_mp4_parser.py b/mapillary_tools/mp4/construct_mp4_parser.py index b8778aca8..1f91b4ff1 100644 --- a/mapillary_tools/mp4/construct_mp4_parser.py +++ b/mapillary_tools/mp4/construct_mp4_parser.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + # pyre-ignore-all-errors[5, 16, 21, 58] from __future__ import annotations diff --git a/mapillary_tools/mp4/io_utils.py b/mapillary_tools/mp4/io_utils.py index 618e26096..82e15a500 100644 --- a/mapillary_tools/mp4/io_utils.py +++ b/mapillary_tools/mp4/io_utils.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import io import typing as T diff --git a/mapillary_tools/mp4/mp4_sample_parser.py b/mapillary_tools/mp4/mp4_sample_parser.py index 1161edfe9..d94d6f2a2 100644 --- a/mapillary_tools/mp4/mp4_sample_parser.py +++ b/mapillary_tools/mp4/mp4_sample_parser.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import datetime diff --git a/mapillary_tools/mp4/simple_mp4_builder.py b/mapillary_tools/mp4/simple_mp4_builder.py index 69e07cfbf..16278097b 100644 --- a/mapillary_tools/mp4/simple_mp4_builder.py +++ b/mapillary_tools/mp4/simple_mp4_builder.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import dataclasses diff --git a/mapillary_tools/mp4/simple_mp4_parser.py b/mapillary_tools/mp4/simple_mp4_parser.py index b35358392..c0f28c510 100644 --- a/mapillary_tools/mp4/simple_mp4_parser.py +++ b/mapillary_tools/mp4/simple_mp4_parser.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + # pyre-ignore-all-errors[5, 16, 21, 24, 58] from __future__ import annotations diff --git a/mapillary_tools/process_geotag_properties.py b/mapillary_tools/process_geotag_properties.py index c46879efa..19ce1bab5 100644 --- a/mapillary_tools/process_geotag_properties.py +++ b/mapillary_tools/process_geotag_properties.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import datetime diff --git a/mapillary_tools/process_sequence_properties.py b/mapillary_tools/process_sequence_properties.py index 3d5ff3686..7ac8064cf 100644 --- a/mapillary_tools/process_sequence_properties.py +++ b/mapillary_tools/process_sequence_properties.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import functools diff --git a/mapillary_tools/sample_video.py b/mapillary_tools/sample_video.py index d6bfb0b5d..63818dc32 100644 --- a/mapillary_tools/sample_video.py +++ b/mapillary_tools/sample_video.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import datetime diff --git a/mapillary_tools/serializer/description.py b/mapillary_tools/serializer/description.py index 5206f1f4a..869dee41b 100644 --- a/mapillary_tools/serializer/description.py +++ b/mapillary_tools/serializer/description.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import dataclasses diff --git a/mapillary_tools/serializer/gpx.py b/mapillary_tools/serializer/gpx.py index 0c6fedd13..b9bc435d2 100644 --- a/mapillary_tools/serializer/gpx.py +++ b/mapillary_tools/serializer/gpx.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import datetime import json import sys diff --git a/mapillary_tools/store.py b/mapillary_tools/store.py index 32253665e..a9aa75cbc 100644 --- a/mapillary_tools/store.py +++ b/mapillary_tools/store.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + """ This module provides a persistent key-value store based on SQLite. diff --git a/mapillary_tools/telemetry.py b/mapillary_tools/telemetry.py index 26c41dc2a..5f8202942 100644 --- a/mapillary_tools/telemetry.py +++ b/mapillary_tools/telemetry.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import dataclasses diff --git a/mapillary_tools/types.py b/mapillary_tools/types.py index 9e98f4150..4088ac62c 100644 --- a/mapillary_tools/types.py +++ b/mapillary_tools/types.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import abc diff --git a/mapillary_tools/upload.py b/mapillary_tools/upload.py index f0f09b58c..2ae1ec85f 100644 --- a/mapillary_tools/upload.py +++ b/mapillary_tools/upload.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import json diff --git a/mapillary_tools/upload_api_v4.py b/mapillary_tools/upload_api_v4.py index c94a9b010..c30c76f9f 100644 --- a/mapillary_tools/upload_api_v4.py +++ b/mapillary_tools/upload_api_v4.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import io diff --git a/mapillary_tools/uploader.py b/mapillary_tools/uploader.py index bc3c81903..39c24d867 100644 --- a/mapillary_tools/uploader.py +++ b/mapillary_tools/uploader.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import concurrent.futures diff --git a/mapillary_tools/utils.py b/mapillary_tools/utils.py index 6dae2b978..f1b66c570 100644 --- a/mapillary_tools/utils.py +++ b/mapillary_tools/utils.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import concurrent.futures diff --git a/pyinstaller/main.py b/pyinstaller/main.py index 1d973f5bc..7a4165929 100644 --- a/pyinstaller/main.py +++ b/pyinstaller/main.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from multiprocessing import freeze_support from mapillary_tools.commands.__main__ import main diff --git a/tests/__init__.py b/tests/__init__.py index e69de29bb..d5cf26e02 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -0,0 +1,5 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + diff --git a/tests/cli/__init__.py b/tests/cli/__init__.py index e69de29bb..d5cf26e02 100644 --- a/tests/cli/__init__.py +++ b/tests/cli/__init__.py @@ -0,0 +1,5 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + diff --git a/tests/cli/blackvue_parser.py b/tests/cli/blackvue_parser.py index 257d14f68..6e945cf12 100644 --- a/tests/cli/blackvue_parser.py +++ b/tests/cli/blackvue_parser.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import argparse diff --git a/tests/cli/camm_parser.py b/tests/cli/camm_parser.py index 627972e3d..ef572e83b 100644 --- a/tests/cli/camm_parser.py +++ b/tests/cli/camm_parser.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import argparse import dataclasses import datetime diff --git a/tests/cli/exif_read.py b/tests/cli/exif_read.py index 723261d19..71e161cdc 100644 --- a/tests/cli/exif_read.py +++ b/tests/cli/exif_read.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import argparse import pprint import sys diff --git a/tests/cli/exif_write.py b/tests/cli/exif_write.py index c017bc4d3..e701fcedb 100644 --- a/tests/cli/exif_write.py +++ b/tests/cli/exif_write.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import logging import sys from pathlib import Path diff --git a/tests/cli/exiftool_runner.py b/tests/cli/exiftool_runner.py index 8e0a45830..01b1e32ff 100644 --- a/tests/cli/exiftool_runner.py +++ b/tests/cli/exiftool_runner.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import argparse diff --git a/tests/cli/gpmf_parser.py b/tests/cli/gpmf_parser.py index d9e61a102..2196c4965 100644 --- a/tests/cli/gpmf_parser.py +++ b/tests/cli/gpmf_parser.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import argparse diff --git a/tests/cli/gps_filter.py b/tests/cli/gps_filter.py index 0b98fe451..b5380dd78 100644 --- a/tests/cli/gps_filter.py +++ b/tests/cli/gps_filter.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import argparse import datetime import json diff --git a/tests/cli/process_sequence_properties.py b/tests/cli/process_sequence_properties.py index 2c4be0bd2..bedbc7527 100644 --- a/tests/cli/process_sequence_properties.py +++ b/tests/cli/process_sequence_properties.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import json import sys diff --git a/tests/cli/simple_mp4_builder.py b/tests/cli/simple_mp4_builder.py index 819b2da8b..d529a98cc 100644 --- a/tests/cli/simple_mp4_builder.py +++ b/tests/cli/simple_mp4_builder.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import argparse from pathlib import Path diff --git a/tests/cli/simple_mp4_parser.py b/tests/cli/simple_mp4_parser.py index 11aa60d8d..afd9e5f88 100644 --- a/tests/cli/simple_mp4_parser.py +++ b/tests/cli/simple_mp4_parser.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import argparse diff --git a/tests/cli/upload_api_v4.py b/tests/cli/upload_api_v4.py index 3b9e53ade..2f356c4c3 100644 --- a/tests/cli/upload_api_v4.py +++ b/tests/cli/upload_api_v4.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import argparse import io import logging diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py index e69de29bb..d5cf26e02 100644 --- a/tests/integration/__init__.py +++ b/tests/integration/__init__.py @@ -0,0 +1,5 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + diff --git a/tests/integration/fixtures.py b/tests/integration/fixtures.py index 88ee05b5b..cd854dd96 100644 --- a/tests/integration/fixtures.py +++ b/tests/integration/fixtures.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import json diff --git a/tests/integration/test_gopro.py b/tests/integration/test_gopro.py index 51a78134e..9fe70c27c 100644 --- a/tests/integration/test_gopro.py +++ b/tests/integration/test_gopro.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import copy import functools import os diff --git a/tests/integration/test_history.py b/tests/integration/test_history.py index b6510eca9..481efd88e 100644 --- a/tests/integration/test_history.py +++ b/tests/integration/test_history.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import py.path import pytest diff --git a/tests/integration/test_process.py b/tests/integration/test_process.py index 3d30b8bef..641885b16 100644 --- a/tests/integration/test_process.py +++ b/tests/integration/test_process.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import datetime import json import os diff --git a/tests/integration/test_process_and_upload.py b/tests/integration/test_process_and_upload.py index c21cb2c91..91678f697 100644 --- a/tests/integration/test_process_and_upload.py +++ b/tests/integration/test_process_and_upload.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import datetime from pathlib import Path diff --git a/tests/integration/test_upload.py b/tests/integration/test_upload.py index 8bc0600be..24301fc38 100644 --- a/tests/integration/test_upload.py +++ b/tests/integration/test_upload.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import json import subprocess from pathlib import Path diff --git a/tests/integration/test_video_process.py b/tests/integration/test_video_process.py index 34f59762c..fb1f0d14f 100644 --- a/tests/integration/test_video_process.py +++ b/tests/integration/test_video_process.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import functools import subprocess import tempfile diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py index e69de29bb..d5cf26e02 100644 --- a/tests/unit/__init__.py +++ b/tests/unit/__init__.py @@ -0,0 +1,5 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + diff --git a/tests/unit/generate_test_image.py b/tests/unit/generate_test_image.py index 4b5b7269b..0713e8d49 100644 --- a/tests/unit/generate_test_image.py +++ b/tests/unit/generate_test_image.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import argparse import io import os diff --git a/tests/unit/test_blackvue_parser.py b/tests/unit/test_blackvue_parser.py index 7d4f145fb..13b8e9c01 100644 --- a/tests/unit/test_blackvue_parser.py +++ b/tests/unit/test_blackvue_parser.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import io import mapillary_tools.geo as geo diff --git a/tests/unit/test_camm_parser.py b/tests/unit/test_camm_parser.py index 00e44dbe2..691b270a7 100644 --- a/tests/unit/test_camm_parser.py +++ b/tests/unit/test_camm_parser.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import dataclasses import io import typing as T diff --git a/tests/unit/test_config.py b/tests/unit/test_config.py index c23fbec18..8c6e55daa 100644 --- a/tests/unit/test_config.py +++ b/tests/unit/test_config.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import typing as T import py.path diff --git a/tests/unit/test_description.py b/tests/unit/test_description.py index 04ed5c026..306dcce18 100644 --- a/tests/unit/test_description.py +++ b/tests/unit/test_description.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import json from pathlib import Path diff --git a/tests/unit/test_exceptions.py b/tests/unit/test_exceptions.py index 0692bb306..0d7769b07 100644 --- a/tests/unit/test_exceptions.py +++ b/tests/unit/test_exceptions.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import json from pathlib import Path diff --git a/tests/unit/test_exifedit.py b/tests/unit/test_exifedit.py index 7f7386da3..145592eb7 100644 --- a/tests/unit/test_exifedit.py +++ b/tests/unit/test_exifedit.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import datetime import io import os diff --git a/tests/unit/test_exifread.py b/tests/unit/test_exifread.py index a6d82d241..fbafee58b 100644 --- a/tests/unit/test_exifread.py +++ b/tests/unit/test_exifread.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import datetime import os import typing as T diff --git a/tests/unit/test_ffmpeg.py b/tests/unit/test_ffmpeg.py index 44a25536d..c3447f7a3 100644 --- a/tests/unit/test_ffmpeg.py +++ b/tests/unit/test_ffmpeg.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import datetime import subprocess from pathlib import Path diff --git a/tests/unit/test_geo.py b/tests/unit/test_geo.py index f3f1978f6..20c05cdfc 100644 --- a/tests/unit/test_geo.py +++ b/tests/unit/test_geo.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import dataclasses import datetime import random diff --git a/tests/unit/test_gpmf_parser.py b/tests/unit/test_gpmf_parser.py index 93b3b6112..b68cc81bb 100644 --- a/tests/unit/test_gpmf_parser.py +++ b/tests/unit/test_gpmf_parser.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from mapillary_tools.gpmf import gpmf_parser diff --git a/tests/unit/test_gps_filter.py b/tests/unit/test_gps_filter.py index bd7ea7483..f3838f83f 100644 --- a/tests/unit/test_gps_filter.py +++ b/tests/unit/test_gps_filter.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import mapillary_tools.geo as geo import mapillary_tools.gpmf.gps_filter as gps_filter diff --git a/tests/unit/test_io_utils.py b/tests/unit/test_io_utils.py index 1581db413..c0e60b745 100644 --- a/tests/unit/test_io_utils.py +++ b/tests/unit/test_io_utils.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import io import random diff --git a/tests/unit/test_mp4_sample_parser.py b/tests/unit/test_mp4_sample_parser.py index 6e561fcb0..f65d20e8d 100644 --- a/tests/unit/test_mp4_sample_parser.py +++ b/tests/unit/test_mp4_sample_parser.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from pathlib import Path from mapillary_tools.mp4 import mp4_sample_parser diff --git a/tests/unit/test_persistent_cache.py b/tests/unit/test_persistent_cache.py index 9875afa03..ec66f47f5 100644 --- a/tests/unit/test_persistent_cache.py +++ b/tests/unit/test_persistent_cache.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import concurrent.futures import multiprocessing import os diff --git a/tests/unit/test_sample_video.py b/tests/unit/test_sample_video.py index cc8118e94..3bf29452f 100644 --- a/tests/unit/test_sample_video.py +++ b/tests/unit/test_sample_video.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import datetime diff --git a/tests/unit/test_sequence_processing.py b/tests/unit/test_sequence_processing.py index df1a17fa0..7d9ddba73 100644 --- a/tests/unit/test_sequence_processing.py +++ b/tests/unit/test_sequence_processing.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + from __future__ import annotations import itertools diff --git a/tests/unit/test_simple_mp4_builder.py b/tests/unit/test_simple_mp4_builder.py index 5c274dd06..64008bf2a 100644 --- a/tests/unit/test_simple_mp4_builder.py +++ b/tests/unit/test_simple_mp4_builder.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import io import typing as T diff --git a/tests/unit/test_simple_mp4_parser.py b/tests/unit/test_simple_mp4_parser.py index 5b375842e..b2bf65514 100644 --- a/tests/unit/test_simple_mp4_parser.py +++ b/tests/unit/test_simple_mp4_parser.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import io import typing diff --git a/tests/unit/test_store.py b/tests/unit/test_store.py index 5f0a95e2f..74d263beb 100644 --- a/tests/unit/test_store.py +++ b/tests/unit/test_store.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import os import sqlite3 import tempfile diff --git a/tests/unit/test_types.py b/tests/unit/test_types.py index 9115bc466..3a104d2dc 100644 --- a/tests/unit/test_types.py +++ b/tests/unit/test_types.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import datetime from pathlib import Path diff --git a/tests/unit/test_upload_api_v4.py b/tests/unit/test_upload_api_v4.py index d282fb823..f1308c09e 100644 --- a/tests/unit/test_upload_api_v4.py +++ b/tests/unit/test_upload_api_v4.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import io from pathlib import Path diff --git a/tests/unit/test_uploader.py b/tests/unit/test_uploader.py index fb4b2af3b..3bfde0d3e 100644 --- a/tests/unit/test_uploader.py +++ b/tests/unit/test_uploader.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import dataclasses import typing as T from pathlib import Path diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 3b7503191..16e2cf71e 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -1,3 +1,8 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + import sys from pathlib import Path