diff --git a/lenskit-hpf/lenskit/hpf.py b/lenskit-hpf/lenskit/hpf.py index 2c9cd5e28..6ac841202 100644 --- a/lenskit-hpf/lenskit/hpf.py +++ b/lenskit-hpf/lenskit/hpf.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + import logging import hpfrec diff --git a/lenskit-hpf/tests/test_hpf.py b/lenskit-hpf/tests/test_hpf.py index 26d576804..b5162c2ea 100644 --- a/lenskit-hpf/tests/test_hpf.py +++ b/lenskit-hpf/tests/test_hpf.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + import logging import pickle diff --git a/lenskit-implicit/lenskit/implicit.py b/lenskit-implicit/lenskit/implicit.py index d5d08b22c..cc5979aa6 100644 --- a/lenskit-implicit/lenskit/implicit.py +++ b/lenskit-implicit/lenskit/implicit.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + import inspect import logging diff --git a/lenskit-implicit/tests/test_implicit.py b/lenskit-implicit/tests/test_implicit.py index 15d74017f..8f544881d 100644 --- a/lenskit-implicit/tests/test_implicit.py +++ b/lenskit-implicit/tests/test_implicit.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + import logging import pickle diff --git a/lenskit/lenskit/data/dataset.py b/lenskit/lenskit/data/dataset.py index 5a434b290..8b5a06be8 100644 --- a/lenskit/lenskit/data/dataset.py +++ b/lenskit/lenskit/data/dataset.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + """ LensKit dataset abstraction. """ diff --git a/lenskit/lenskit/data/tables.py b/lenskit/lenskit/data/tables.py index 8ee36c951..1952261d2 100644 --- a/lenskit/lenskit/data/tables.py +++ b/lenskit/lenskit/data/tables.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + from __future__ import annotations from dataclasses import dataclass diff --git a/lenskit/lenskit/data/vocab.py b/lenskit/lenskit/data/vocab.py index 45c8e5cd9..7dbc8069e 100644 --- a/lenskit/lenskit/data/vocab.py +++ b/lenskit/lenskit/data/vocab.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + """ Vocabularies of IDs, tags, etc. """ diff --git a/lenskit/lenskit/diagnostics.py b/lenskit/lenskit/diagnostics.py index 76211991d..6d5ba41e4 100644 --- a/lenskit/lenskit/diagnostics.py +++ b/lenskit/lenskit/diagnostics.py @@ -3,6 +3,7 @@ # Copyright (C) 2023-2024 Drexel University # Licensed under the MIT license, see LICENSE.md for details. # SPDX-License-Identifier: MIT + """ Warning and error classes and general LensKit diagnostic code. """ diff --git a/lenskit/tests/test_dataset_ids.py b/lenskit/tests/test_dataset_ids.py index 1605674d7..913f0e121 100644 --- a/lenskit/tests/test_dataset_ids.py +++ b/lenskit/tests/test_dataset_ids.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + """ Tests for the Dataset class. """ diff --git a/lenskit/tests/test_dataset_lazy.py b/lenskit/tests/test_dataset_lazy.py index fc9a83e56..340afaaa2 100644 --- a/lenskit/tests/test_dataset_lazy.py +++ b/lenskit/tests/test_dataset_lazy.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + """ Tests for the Dataset class. """ diff --git a/lenskit/tests/test_dataset_log.py b/lenskit/tests/test_dataset_log.py index 3ce3db7c7..a4b5b6382 100644 --- a/lenskit/tests/test_dataset_log.py +++ b/lenskit/tests/test_dataset_log.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + """ Tests for the Dataset class. """ diff --git a/lenskit/tests/test_dataset_matrix.py b/lenskit/tests/test_dataset_matrix.py index 71b7f8df5..f753c6c5e 100644 --- a/lenskit/tests/test_dataset_matrix.py +++ b/lenskit/tests/test_dataset_matrix.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + """ Tests for the Dataset class. """ diff --git a/lenskit/tests/test_dataset_stats.py b/lenskit/tests/test_dataset_stats.py index 321fec6b9..7b7efc1c7 100644 --- a/lenskit/tests/test_dataset_stats.py +++ b/lenskit/tests/test_dataset_stats.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + """ Tests for the Dataset class. """ diff --git a/lenskit/tests/test_load_movielens.py b/lenskit/tests/test_load_movielens.py index 974b7e3b3..a3773d482 100644 --- a/lenskit/tests/test_load_movielens.py +++ b/lenskit/tests/test_load_movielens.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + from pathlib import Path from lenskit.data.movielens import load_movielens import functools diff --git a/lenskit/tests/test_matrix.py b/lenskit/tests/test_matrix.py index e7cba873e..fefffce41 100644 --- a/lenskit/tests/test_matrix.py +++ b/lenskit/tests/test_matrix.py @@ -4,7 +4,6 @@ # Licensed under the MIT license, see LICENSE.md for details. # SPDX-License-Identifier: MIT - import numpy as np import torch diff --git a/lenskit/tests/test_vocab.py b/lenskit/tests/test_vocab.py index 5e019f186..02baabf63 100644 --- a/lenskit/tests/test_vocab.py +++ b/lenskit/tests/test_vocab.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + """ Tests for the Vocabulary class. """ diff --git a/lkdev/__init__.py b/lkdev/__init__.py index b896af275..9524fa6a9 100644 --- a/lkdev/__init__.py +++ b/lkdev/__init__.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + """ LensKit build bootstrap utilities. This repository should generally not be installed. diff --git a/lkdev/ghactions.py b/lkdev/ghactions.py index 2705c4ad4..5e87a54cc 100644 --- a/lkdev/ghactions.py +++ b/lkdev/ghactions.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + """ Manage GitHub Actions workflows and template infrastructure diff --git a/lkdev/workflows/__init__.py b/lkdev/workflows/__init__.py index bb6646961..cee2a09e1 100644 --- a/lkdev/workflows/__init__.py +++ b/lkdev/workflows/__init__.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + """ Workflow definitions for LensKit build. """ diff --git a/lkdev/workflows/_common.py b/lkdev/workflows/_common.py index 2823a336d..7e144c0d8 100644 --- a/lkdev/workflows/_common.py +++ b/lkdev/workflows/_common.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + from typing import Any from lkdev.ghactions import GHStep diff --git a/lkdev/workflows/docs.py b/lkdev/workflows/docs.py index 87cc2e7ba..dc6997722 100644 --- a/lkdev/workflows/docs.py +++ b/lkdev/workflows/docs.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + from ..ghactions import script from ._common import PACKAGES, step_checkout diff --git a/lkdev/workflows/test.py b/lkdev/workflows/test.py index 038551630..672bd1cb7 100644 --- a/lkdev/workflows/test.py +++ b/lkdev/workflows/test.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + from dataclasses import dataclass, field from hashlib import blake2b from typing import Any, Literal, Optional diff --git a/utils/fix-coverage-paths.py b/utils/fix-coverage-paths.py index c6129a40a..fd86ba185 100644 --- a/utils/fix-coverage-paths.py +++ b/utils/fix-coverage-paths.py @@ -1,3 +1,9 @@ +# This file is part of LensKit. +# Copyright (C) 2018-2023 Boise State University +# Copyright (C) 2023-2024 Drexel University +# Licensed under the MIT license, see LICENSE.md for details. +# SPDX-License-Identifier: MIT + # workaround for annoying coverage.py bug with path handling import sqlite3 diff --git a/utils/import-history.js b/utils/import-history.js index 8837da1dc..f0ad2cb6d 100644 --- a/utils/import-history.js +++ b/utils/import-history.js @@ -1,3 +1,9 @@ +// This file is part of LensKit. +// Copyright (C) 2018-2023 Boise State University +// Copyright (C) 2023-2024 Drexel University +// Licensed under the MIT license, see LICENSE.md for details. +// SPDX-License-Identifier: MIT + let logs = JSON.parse(await Deno.readTextFile('build/historical-coverage.json')); console.log('read %d records', logs.count);