From 661fadfebb75e1631d9f0ae2df1b2c2ef0e46f7c Mon Sep 17 00:00:00 2001 From: drryanhuang Date: Thu, 9 Jan 2025 12:05:34 +0000 Subject: [PATCH] fix License --- audio/audiotools/__init__.py | 13 +++++++++++++ audio/audiotools/core/__init__.py | 13 +++++++++++++ audio/audiotools/core/_julius.py | 13 +------------ audio/audiotools/core/audio_signal.py | 13 +------------ audio/audiotools/core/display.py | 11 ----------- audio/audiotools/core/dsp.py | 11 ----------- audio/audiotools/core/effects.py | 11 ----------- audio/audiotools/core/ffmpeg.py | 11 ----------- audio/audiotools/core/loudness.py | 11 ----------- audio/audiotools/core/util.py | 11 ----------- audio/audiotools/data/__init__.py | 13 +++++++++++++ audio/audiotools/data/datasets.py | 11 ----------- audio/audiotools/data/preprocess.py | 11 ----------- audio/audiotools/data/transforms.py | 11 ----------- audio/audiotools/metrics/__init__.py | 13 +++++++++++++ audio/audiotools/metrics/quality.py | 11 ----------- audio/audiotools/ml/__init__.py | 13 +++++++++++++ audio/audiotools/ml/accelerator.py | 11 ----------- audio/audiotools/ml/basemodel.py | 11 ----------- audio/audiotools/ml/decorators.py | 11 ----------- audio/audiotools/post.py | 11 ----------- audio/tests/audiotools/core/test_audio_signal.py | 11 ----------- audio/tests/audiotools/core/test_bands.py | 11 ----------- audio/tests/audiotools/core/test_display.py | 11 ----------- audio/tests/audiotools/core/test_dsp.py | 11 ----------- audio/tests/audiotools/core/test_effects.py | 11 ----------- audio/tests/audiotools/core/test_fftconv.py | 11 ----------- audio/tests/audiotools/core/test_grad.py | 11 ----------- audio/tests/audiotools/core/test_highpass.py | 11 ----------- audio/tests/audiotools/core/test_loudness.py | 11 ----------- audio/tests/audiotools/core/test_lowpass.py | 11 ----------- audio/tests/audiotools/core/test_util.py | 11 ----------- audio/tests/audiotools/data/test_datasets.py | 11 ----------- audio/tests/audiotools/data/test_preprocess.py | 11 ----------- audio/tests/audiotools/data/test_transforms.py | 11 ----------- audio/tests/audiotools/ml/test_decorators.py | 11 ----------- audio/tests/audiotools/ml/test_model.py | 11 ----------- audio/tests/audiotools/test_post.py | 11 ----------- 38 files changed, 67 insertions(+), 365 deletions(-) diff --git a/audio/audiotools/__init__.py b/audio/audiotools/__init__.py index 5e53490bd..e8a201e85 100644 --- a/audio/audiotools/__init__.py +++ b/audio/audiotools/__init__.py @@ -1,3 +1,16 @@ +# Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from . import metrics from . import ml from . import post diff --git a/audio/audiotools/core/__init__.py b/audio/audiotools/core/__init__.py index 097afc6f9..609d6a34a 100644 --- a/audio/audiotools/core/__init__.py +++ b/audio/audiotools/core/__init__.py @@ -1,3 +1,16 @@ +# Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from . import util from ._julius import fft_conv1d from ._julius import FFTConv1D diff --git a/audio/audiotools/core/_julius.py b/audio/audiotools/core/_julius.py index c6822b602..aef51f98f 100644 --- a/audio/audiotools/core/_julius.py +++ b/audio/audiotools/core/_julius.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2020 Alexandre Défossez. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# # Modified from julius(https://github.com/adefossez/julius/tree/main/julius) """ Implementation of a FFT based 1D convolution in PaddlePaddle. diff --git a/audio/audiotools/core/audio_signal.py b/audio/audiotools/core/audio_signal.py index fe15f3d75..74e8cac67 100644 --- a/audio/audiotools/core/audio_signal.py +++ b/audio/audiotools/core/audio_signal.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/audiotools/core/audio_signal.py) import copy import functools diff --git a/audio/audiotools/core/display.py b/audio/audiotools/core/display.py index 1e7c22e39..66f0c641e 100644 --- a/audio/audiotools/core/display.py +++ b/audio/audiotools/core/display.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/audiotools/core/display.py) import inspect import typing diff --git a/audio/audiotools/core/dsp.py b/audio/audiotools/core/dsp.py index dc2387b7a..d62e1e6dc 100644 --- a/audio/audiotools/core/dsp.py +++ b/audio/audiotools/core/dsp.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/audiotools/core/dsp.py) import typing diff --git a/audio/audiotools/core/effects.py b/audio/audiotools/core/effects.py index 69b7ce30c..2938e0c32 100644 --- a/audio/audiotools/core/effects.py +++ b/audio/audiotools/core/effects.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/audiotools/core/effects.py) import typing diff --git a/audio/audiotools/core/ffmpeg.py b/audio/audiotools/core/ffmpeg.py index 2d8b218b0..64a74e51d 100644 --- a/audio/audiotools/core/ffmpeg.py +++ b/audio/audiotools/core/ffmpeg.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/audiotools/core/ffmpeg.py) import json import shlex diff --git a/audio/audiotools/core/loudness.py b/audio/audiotools/core/loudness.py index 3a86791b1..cde5e81fe 100644 --- a/audio/audiotools/core/loudness.py +++ b/audio/audiotools/core/loudness.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/audiotools/core/loudness.py) import copy import math diff --git a/audio/audiotools/core/util.py b/audio/audiotools/core/util.py index 8715ea0b4..0bbcf46a5 100644 --- a/audio/audiotools/core/util.py +++ b/audio/audiotools/core/util.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/audiotools/core/util.py) import collections import csv diff --git a/audio/audiotools/data/__init__.py b/audio/audiotools/data/__init__.py index aead269f2..3f170c64a 100644 --- a/audio/audiotools/data/__init__.py +++ b/audio/audiotools/data/__init__.py @@ -1,3 +1,16 @@ +# Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from . import datasets from . import preprocess from . import transforms diff --git a/audio/audiotools/data/datasets.py b/audio/audiotools/data/datasets.py index ac0dbb16a..cabf2953b 100644 --- a/audio/audiotools/data/datasets.py +++ b/audio/audiotools/data/datasets.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/audiotools/data/datasets.py) from pathlib import Path from typing import Callable diff --git a/audio/audiotools/data/preprocess.py b/audio/audiotools/data/preprocess.py index f214903cf..0fce34f07 100644 --- a/audio/audiotools/data/preprocess.py +++ b/audio/audiotools/data/preprocess.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/audiotools/data/preprocess.py) import csv import os diff --git a/audio/audiotools/data/transforms.py b/audio/audiotools/data/transforms.py index dd75d794c..fd742a78c 100644 --- a/audio/audiotools/data/transforms.py +++ b/audio/audiotools/data/transforms.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/audiotools/data/transforms.py) import copy from contextlib import contextmanager diff --git a/audio/audiotools/metrics/__init__.py b/audio/audiotools/metrics/__init__.py index 4c492ab99..f14ee0822 100644 --- a/audio/audiotools/metrics/__init__.py +++ b/audio/audiotools/metrics/__init__.py @@ -1,3 +1,16 @@ +# Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. """ Functions for comparing AudioSignal objects to one another. """ diff --git a/audio/audiotools/metrics/quality.py b/audio/audiotools/metrics/quality.py index 9583a6dae..63f727099 100644 --- a/audio/audiotools/metrics/quality.py +++ b/audio/audiotools/metrics/quality.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/audiotools/metrics/quality.py) import os diff --git a/audio/audiotools/ml/__init__.py b/audio/audiotools/ml/__init__.py index 04d529789..4a3b29fac 100644 --- a/audio/audiotools/ml/__init__.py +++ b/audio/audiotools/ml/__init__.py @@ -1,3 +1,16 @@ +# Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from . import decorators from .accelerator import Accelerator from .basemodel import BaseModel diff --git a/audio/audiotools/ml/accelerator.py b/audio/audiotools/ml/accelerator.py index ecb45901d..74cb3331b 100644 --- a/audio/audiotools/ml/accelerator.py +++ b/audio/audiotools/ml/accelerator.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/audiotools/ml/accelerator.py) import os import typing diff --git a/audio/audiotools/ml/basemodel.py b/audio/audiotools/ml/basemodel.py index 945396d4d..97c31ff7a 100644 --- a/audio/audiotools/ml/basemodel.py +++ b/audio/audiotools/ml/basemodel.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/audiotools/ml/layers/base.py) import inspect import shutil diff --git a/audio/audiotools/ml/decorators.py b/audio/audiotools/ml/decorators.py index 6a5fafad4..787be87c5 100644 --- a/audio/audiotools/ml/decorators.py +++ b/audio/audiotools/ml/decorators.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/audiotools/ml/decorators.py) import math import os diff --git a/audio/audiotools/post.py b/audio/audiotools/post.py index 599e6e1da..8ea25add3 100644 --- a/audio/audiotools/post.py +++ b/audio/audiotools/post.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/audiotools/post.py) import tempfile import typing diff --git a/audio/tests/audiotools/core/test_audio_signal.py b/audio/tests/audiotools/core/test_audio_signal.py index b36a35d57..08cd62932 100644 --- a/audio/tests/audiotools/core/test_audio_signal.py +++ b/audio/tests/audiotools/core/test_audio_signal.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/tests/core/test_audio_signal.py) import pathlib import sys diff --git a/audio/tests/audiotools/core/test_bands.py b/audio/tests/audiotools/core/test_bands.py index 45f6548be..e055b19c4 100644 --- a/audio/tests/audiotools/core/test_bands.py +++ b/audio/tests/audiotools/core/test_bands.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2020 Alexandre Défossez. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from julius(https://github.com/adefossez/julius/blob/main/tests/test_bands.py) import random import sys diff --git a/audio/tests/audiotools/core/test_display.py b/audio/tests/audiotools/core/test_display.py index f05b9f7ff..d36c28866 100644 --- a/audio/tests/audiotools/core/test_display.py +++ b/audio/tests/audiotools/core/test_display.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/tests/core/test_display.py) import sys from pathlib import Path diff --git a/audio/tests/audiotools/core/test_dsp.py b/audio/tests/audiotools/core/test_dsp.py index 9bbb08743..547b0dc53 100644 --- a/audio/tests/audiotools/core/test_dsp.py +++ b/audio/tests/audiotools/core/test_dsp.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/tests/core/test_dsp.py) import sys diff --git a/audio/tests/audiotools/core/test_effects.py b/audio/tests/audiotools/core/test_effects.py index 8f7f3ea5d..ffe3c2a85 100644 --- a/audio/tests/audiotools/core/test_effects.py +++ b/audio/tests/audiotools/core/test_effects.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/tests/core/test_effects.py) import sys diff --git a/audio/tests/audiotools/core/test_fftconv.py b/audio/tests/audiotools/core/test_fftconv.py index c9d39d074..908e077e3 100644 --- a/audio/tests/audiotools/core/test_fftconv.py +++ b/audio/tests/audiotools/core/test_fftconv.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2020 Alexandre Défossez. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from julius(https://github.com/adefossez/julius/blob/main/tests/test_fftconv.py) import random import sys diff --git a/audio/tests/audiotools/core/test_grad.py b/audio/tests/audiotools/core/test_grad.py index 643390944..95a88078d 100644 --- a/audio/tests/audiotools/core/test_grad.py +++ b/audio/tests/audiotools/core/test_grad.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/tests/core/test_grad.py) import sys from typing import Callable diff --git a/audio/tests/audiotools/core/test_highpass.py b/audio/tests/audiotools/core/test_highpass.py index 8c495d4bb..3da18b449 100644 --- a/audio/tests/audiotools/core/test_highpass.py +++ b/audio/tests/audiotools/core/test_highpass.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2020 Alexandre Défossez. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from julius(https://github.com/adefossez/julius/blob/main/tests/test_filters.py) import math import random diff --git a/audio/tests/audiotools/core/test_loudness.py b/audio/tests/audiotools/core/test_loudness.py index 757c09c9a..6b74509d7 100644 --- a/audio/tests/audiotools/core/test_loudness.py +++ b/audio/tests/audiotools/core/test_loudness.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/tests/core/test_loudness.py) import sys diff --git a/audio/tests/audiotools/core/test_lowpass.py b/audio/tests/audiotools/core/test_lowpass.py index e9fba9990..e81060e4f 100644 --- a/audio/tests/audiotools/core/test_lowpass.py +++ b/audio/tests/audiotools/core/test_lowpass.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2020 Alexandre Défossez. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from julius(https://github.com/adefossez/julius/blob/main/tests/test_lowpass.py) import math import random diff --git a/audio/tests/audiotools/core/test_util.py b/audio/tests/audiotools/core/test_util.py index ecd0d8100..2567bd9b7 100644 --- a/audio/tests/audiotools/core/test_util.py +++ b/audio/tests/audiotools/core/test_util.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/tests/core/test_util.py) import os import random diff --git a/audio/tests/audiotools/data/test_datasets.py b/audio/tests/audiotools/data/test_datasets.py index d18e73a21..5c6bef11a 100644 --- a/audio/tests/audiotools/data/test_datasets.py +++ b/audio/tests/audiotools/data/test_datasets.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/tests/data/test_datasets.py) import sys import tempfile diff --git a/audio/tests/audiotools/data/test_preprocess.py b/audio/tests/audiotools/data/test_preprocess.py index 72b2c2832..35295a478 100644 --- a/audio/tests/audiotools/data/test_preprocess.py +++ b/audio/tests/audiotools/data/test_preprocess.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/tests/data/test_preprocess.py) import sys import tempfile diff --git a/audio/tests/audiotools/data/test_transforms.py b/audio/tests/audiotools/data/test_transforms.py index 586d64d1e..aff35c610 100644 --- a/audio/tests/audiotools/data/test_transforms.py +++ b/audio/tests/audiotools/data/test_transforms.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/tests/data/test_transforms.py) import inspect import sys diff --git a/audio/tests/audiotools/ml/test_decorators.py b/audio/tests/audiotools/ml/test_decorators.py index ad5df200b..8b24ac4bd 100644 --- a/audio/tests/audiotools/ml/test_decorators.py +++ b/audio/tests/audiotools/ml/test_decorators.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/tests/ml/test_decorators.py) import sys import time diff --git a/audio/tests/audiotools/ml/test_model.py b/audio/tests/audiotools/ml/test_model.py index 17ff9183e..82e3d7cf6 100644 --- a/audio/tests/audiotools/ml/test_model.py +++ b/audio/tests/audiotools/ml/test_model.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/tests/ml/test_model.py) import sys import tempfile diff --git a/audio/tests/audiotools/test_post.py b/audio/tests/audiotools/test_post.py index 1df29dcc1..fcd281694 100644 --- a/audio/tests/audiotools/test_post.py +++ b/audio/tests/audiotools/test_post.py @@ -1,17 +1,6 @@ # MIT License, Copyright (c) 2023-Present, Descript. # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. # Modified from audiotools(https://github.com/descriptinc/audiotools/blob/master/tests/test_post.py) import sys from pathlib import Path