Skip to content

Commit 5e703df

Browse files
Michael Norrisfacebook-github-bot
Michael Norris
authored andcommitted
Enable linting: lint config changes plus arc lint command (facebookresearch#3966)
Summary: Pull Request resolved: facebookresearch#3966 This actually enables the linting. Manual changes: - tools/arcanist/lint/fbsource-licenselint-config.toml - tools/arcanist/lint/fbsource-lint-engine.toml Automated changes: `arc lint --apply-patches --take LICENSELINT --paths-cmd 'hg files faiss'` Differential Revision: D64484165
1 parent d2d1eaf commit 5e703df

File tree

675 files changed

+1227
-1204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

675 files changed

+1227
-1204
lines changed

benchs/CMakeLists.txt

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
2-
# All rights reserved.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
32
#
4-
# This source code is licensed under the BSD-style license found in the
3+
# This source code is licensed under the MIT license found in the
54
# LICENSE file in the root directory of this source tree.
65

76

benchs/bench_6bit_codec.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

benchs/bench_all_ivf/bench_all_ivf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/bench_all_ivf/bench_kmeans.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/bench_all_ivf/cmp_with_scann.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/bench_all_ivf/datasets_oss.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/bench_all_ivf/make_groundtruth.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/bench_all_ivf/parse_bench_all_ivf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/bench_big_batch_ivf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/bench_cppcontrib_sa_decode.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

benchs/bench_for_interrupt.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#! /usr/bin/env python3
2-
3-
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
43
#
54
# This source code is licensed under the MIT license found in the
65
# LICENSE file in the root directory of this source tree.

benchs/bench_gpu_1bn.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#! /usr/bin/env python2
2-
3-
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
43
#
54
# This source code is licensed under the MIT license found in the
65
# LICENSE file in the root directory of this source tree.

benchs/bench_gpu_sift1m.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/bench_hamming_computer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

benchs/bench_hamming_knn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/bench_heap_replace.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

benchs/bench_hnsw.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/bench_hybrid_cpu_gpu.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/bench_index_flat.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
2-
3-
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
43
#
54
# This source code is licensed under the MIT license found in the
65
# LICENSE file in the root directory of this source tree.

benchs/bench_index_pq.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/bench_ivf_fastscan.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/bench_ivf_fastscan_single_query.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/bench_ivf_selector.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

benchs/bench_pairwise_distances.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#! /usr/bin/env python3
2-
3-
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
43
#
54
# This source code is licensed under the MIT license found in the
65
# LICENSE file in the root directory of this source tree.

benchs/bench_partition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/bench_polysemous_1bn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/bench_polysemous_sift1m.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
2-
3-
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
43
#
54
# This source code is licensed under the MIT license found in the
65
# LICENSE file in the root directory of this source tree.

benchs/bench_pq_tables.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
2-
3-
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
43
#
54
# This source code is licensed under the MIT license found in the
65
# LICENSE file in the root directory of this source tree.

benchs/bench_pq_transposed_centroid_table.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
2-
3-
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
43
#
54
# This source code is licensed under the MIT license found in the
65
# LICENSE file in the root directory of this source tree.

benchs/bench_quantizer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/bench_scalar_quantizer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/bench_vector_ops.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#! /usr/bin/env python2
2-
3-
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
43
#
54
# This source code is licensed under the MIT license found in the
65
# LICENSE file in the root directory of this source tree.

benchs/datasets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/distributed_ondisk/combined_index.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
2-
3-
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
43
#
54
# This source code is licensed under the MIT license found in the
65
# LICENSE file in the root directory of this source tree.

benchs/distributed_ondisk/distributed_kmeans.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#! /usr/bin/env python3
2-
3-
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
43
#
54
# This source code is licensed under the MIT license found in the
65
# LICENSE file in the root directory of this source tree.

benchs/distributed_ondisk/distributed_query_demo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/distributed_ondisk/make_index_vslice.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/distributed_ondisk/make_trained_index.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/distributed_ondisk/merge_to_ondisk.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/distributed_ondisk/run_on_cluster.bash

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#! /bin/bash
2-
3-
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
43
#
54
# This source code is licensed under the MIT license found in the
65
# LICENSE file in the root directory of this source tree.

benchs/distributed_ondisk/search_server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

benchs/kmeans_mnist.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#! /usr/bin/env python2
2-
3-
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
43
#
54
# This source code is licensed under the MIT license found in the
65
# LICENSE file in the root directory of this source tree.

c_api/AutoTune_c.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

c_api/AutoTune_c.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

c_api/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) Facebook, Inc. and its affiliates.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.

c_api/Clustering_c.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

c_api/Clustering_c.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

c_api/IndexBinary_c.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

c_api/IndexBinary_c.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

c_api/IndexFlat_c.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

c_api/IndexFlat_c.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

c_api/IndexIVFFlat_c.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

c_api/IndexIVFFlat_c.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

c_api/IndexIVF_c.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

c_api/IndexIVF_c.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

c_api/IndexLSH_c.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

0 commit comments

Comments
 (0)