Skip to content

Commit

Permalink
add missing file headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Jul 29, 2024
1 parent 77ddecd commit 533a056
Show file tree
Hide file tree
Showing 24 changed files with 133 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lenskit-hpf/lenskit/hpf.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions lenskit-hpf/tests/test_hpf.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 6 additions & 0 deletions lenskit-implicit/lenskit/implicit.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 6 additions & 0 deletions lenskit-implicit/tests/test_implicit.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 6 additions & 0 deletions lenskit/lenskit/data/dataset.py
Original file line number Diff line number Diff line change
@@ -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.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/lenskit/data/tables.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions lenskit/lenskit/data/vocab.py
Original file line number Diff line number Diff line change
@@ -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.
"""
Expand Down
1 change: 1 addition & 0 deletions lenskit/lenskit/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/tests/test_dataset_ids.py
Original file line number Diff line number Diff line change
@@ -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.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/tests/test_dataset_lazy.py
Original file line number Diff line number Diff line change
@@ -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.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/tests/test_dataset_log.py
Original file line number Diff line number Diff line change
@@ -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.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/tests/test_dataset_matrix.py
Original file line number Diff line number Diff line change
@@ -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.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/tests/test_dataset_stats.py
Original file line number Diff line number Diff line change
@@ -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.
"""
Expand Down
6 changes: 6 additions & 0 deletions lenskit/tests/test_load_movielens.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion lenskit/tests/test_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# Licensed under the MIT license, see LICENSE.md for details.
# SPDX-License-Identifier: MIT


import numpy as np
import torch

Expand Down
6 changes: 6 additions & 0 deletions lenskit/tests/test_vocab.py
Original file line number Diff line number Diff line change
@@ -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.
"""
Expand Down
6 changes: 6 additions & 0 deletions lkdev/__init__.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 6 additions & 0 deletions lkdev/ghactions.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions lkdev/workflows/__init__.py
Original file line number Diff line number Diff line change
@@ -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.
"""
6 changes: 6 additions & 0 deletions lkdev/workflows/_common.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions lkdev/workflows/docs.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 6 additions & 0 deletions lkdev/workflows/test.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions utils/fix-coverage-paths.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 6 additions & 0 deletions utils/import-history.js
Original file line number Diff line number Diff line change
@@ -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);

Expand Down

0 comments on commit 533a056

Please sign in to comment.