Skip to content

Commit

Permalink
Adding Intel copyright notices (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
vyaivo authored Nov 5, 2024
1 parent 69e0ce5 commit e2acae1
Show file tree
Hide file tree
Showing 24 changed files with 72 additions and 0 deletions.
3 changes: 3 additions & 0 deletions file_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import json
import pickle

Expand Down
3 changes: 3 additions & 0 deletions plots/plot_gold-search-recall.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import matplotlib
import matplotlib.pyplot as plt
import numpy as np
Expand Down
3 changes: 3 additions & 0 deletions plots/plot_ndoc-recall.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import matplotlib
import matplotlib.pyplot as plt
import numpy as np
Expand Down
3 changes: 3 additions & 0 deletions plots/plot_noise_percentile.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import numpy as np
import matplotlib.pyplot as plt
import plot_utils
Expand Down
3 changes: 3 additions & 0 deletions plots/plot_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import json
import numpy as np
import os
Expand Down
3 changes: 3 additions & 0 deletions preprocessing/alce/convert_alce_colbert.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

from file_utils import load_json
import convert_alce_utils

Expand Down
3 changes: 3 additions & 0 deletions preprocessing/alce/convert_alce_dense.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

from file_utils import load_json, save_json, save_jsonl
import convert_alce_utils

Expand Down
3 changes: 3 additions & 0 deletions preprocessing/alce/convert_alce_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

from tqdm import tqdm
import pandas as pd

Expand Down
3 changes: 3 additions & 0 deletions preprocessing/convert_nq_dense.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import argparse
import datasets
import json
Expand Down
3 changes: 3 additions & 0 deletions preprocessing/create_groundtruth_calibration.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

"""
After exhaustive search with a flat search index has been run, you will have files that contain the nearest neighbors
for every single query.
Expand Down
3 changes: 3 additions & 0 deletions preprocessing/sample_retrieved_neighbors.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import os
import argparse
from tqdm import tqdm
Expand Down
3 changes: 3 additions & 0 deletions preprocessing/set_gold_recall.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import os
import argparse
from tqdm import tqdm
Expand Down
3 changes: 3 additions & 0 deletions reader/compute_ci.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import argparse
import numpy as np
import pathlib
Expand Down
3 changes: 3 additions & 0 deletions reader/eval.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

# Some of this code is based on prior work under the MIT License:
# Copyright (c) 2023 Princeton Natural Language Processing
# Copyright (c) Carnegie Mellon University
Expand Down
3 changes: 3 additions & 0 deletions reader/eval_per_query.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import argparse
import collections
from collections import Counter
Expand Down
3 changes: 3 additions & 0 deletions reader/plot_per_k.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import argparse
import os
import logging
Expand Down
3 changes: 3 additions & 0 deletions reader/run.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

# Some of this code is based on prior work under the MIT License:
# Copyright (c) 2023 Princeton Natural Language Processing

Expand Down
3 changes: 3 additions & 0 deletions reader/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

# Some of this code is based on prior work under the MIT License:
# Copyright (c) 2023 Princeton Natural Language Processing

Expand Down
3 changes: 3 additions & 0 deletions retriever/eval.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

# Some of this code is based on prior work under the MIT License:
# Copyright (c) 2023 Princeton Natural Language Processing

Expand Down
3 changes: 3 additions & 0 deletions retriever/index.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import logging
import numpy as np
import os
Expand Down
3 changes: 3 additions & 0 deletions retriever/ret_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import numpy as np
import torch
import os
Expand Down
3 changes: 3 additions & 0 deletions retriever/run.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

# Some of this code is based on prior work under the MIT License:
# Copyright (c) 2023 Princeton Natural Language Processing

Expand Down
3 changes: 3 additions & 0 deletions retriever/run_colbert.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

import argparse
import sys
import logging
Expand Down
3 changes: 3 additions & 0 deletions utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

class InvalidArgument(Exception):
"""raise when user input arguments are invalid"""
pass
Expand Down

0 comments on commit e2acae1

Please sign in to comment.