Skip to content

Commit 5af776e

Browse files
authored
Add license header (#1)
1 parent 30b4457 commit 5af776e

File tree

17 files changed

+84
-1
lines changed

17 files changed

+84
-1
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: Check License Header
5+
6+
on:
7+
pull_request:
8+
branches:
9+
- main
10+
push:
11+
branches:
12+
- main
13+
14+
permissions: read-all
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}-${{ github.event.number || github.sha }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
check-license-header:
22+
name: Check
23+
runs-on: ubuntu-24.04
24+
steps:
25+
- name: "Checkout code"
26+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27+
- name: "Run check"
28+
uses: apache/skywalking-eyes/header@5c5b974209f0de5d905f37deb69369068ebfc15c # v0.7.0
29+
with:
30+
mode: "check"

.licenserc.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
header:
5+
license:
6+
spdx-id: Apache-2.0
7+
pattern: |
8+
Copyright (C) \d{4} Intel Corporation
9+
SPDX-License-Identifier: Apache-2.0
10+
11+
paths-ignore:
12+
- ".github/workflows/scorecard.yml"
13+
- "CODE_OF_CONDUCT.md"
14+
- "CONTRIBUTING.md"
15+
- "LICENSE"
16+
- "NOTICE"
17+
- "pyproject.toml"
18+
- "README.md"
19+
- "requirements.txt"
20+
- "SECURITY.md"
21+
22+
comment: never

src/svsbench/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Copyright (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
"""Scalable Vector Search Benchmarking."""

src/svsbench/build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
13
"""Benchmark SVS dynamic index addition."""
24

35
import argparse

src/svsbench/compress.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
13
"""Compress SVS index."""
24

35
import argparse

src/svsbench/consts.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
13
"""Constants."""
24

35
from typing import Final
@@ -45,4 +47,4 @@
4547
STR_TO_DATA_TYPE: Final = {
4648
"float16": svs.DataType.float16,
4749
"float32": svs.DataType.float32,
48-
}
50+
}

src/svsbench/generate_ground_truth.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
13
"""Generate ground truth ivecs file."""
24

35
import argparse

src/svsbench/loader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
13
"""SVS loader."""
24

35
from pathlib import Path

src/svsbench/merge.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
13
"""Merge multiple *vecs files into one."""
24
import argparse
35
import struct

src/svsbench/search.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
13
"""Search benchmark."""
24

35
import argparse

0 commit comments

Comments
 (0)