From 48e4b60147684bd070382189422a4a364c677830 Mon Sep 17 00:00:00 2001 From: liliu-z Date: Fri, 6 Jan 2023 18:36:11 +0800 Subject: [PATCH] Add Copyright Signed-off-by: liliu-z --- CMakeLists.txt | 11 +++++++++++ benchmark/CMakeLists.txt | 2 +- benchmark/benchmark_base.h | 2 +- benchmark/hdf5/benchmark_hdf5.h | 2 +- benchmark/hdf5/benchmark_knowhere.h | 2 +- benchmark/hdf5/benchmark_knowhere_binary.cpp | 2 +- .../hdf5/benchmark_knowhere_binary_range.cpp | 2 +- benchmark/hdf5/benchmark_knowhere_float.cpp | 2 +- .../hdf5/benchmark_knowhere_float_range.cpp | 2 +- benchmark/utils.h | 2 +- include/knowhere/binaryset.h | 11 +++++++++++ include/knowhere/bitsetview.h | 11 +++++++++++ include/knowhere/comp/Timer.h | 2 +- include/knowhere/comp/brute_force.h | 11 +++++++++++ include/knowhere/comp/index_param.h | 2 +- include/knowhere/comp/knowhere_config.h | 11 +++++++++++ include/knowhere/comp/thread_pool.h | 2 +- include/knowhere/config.h | 11 +++++++++++ include/knowhere/dataset.h | 11 +++++++++++ include/knowhere/expected.h | 11 +++++++++++ include/knowhere/factory.h | 11 +++++++++++ include/knowhere/feder/DiskANN.h | 2 +- include/knowhere/feder/HNSW.h | 2 +- include/knowhere/feder/IVFFlat.h | 2 +- include/knowhere/file_manager.h | 11 +++++++++++ include/knowhere/index.h | 11 +++++++++++ include/knowhere/index_node.h | 11 +++++++++++ .../knowhere/index_node_thread_pool_wrapper.h | 11 +++++++++++ include/knowhere/log.h | 11 +++++++++++ include/knowhere/object.h | 11 +++++++++++ src/common/comp/Timer.cc | 2 +- src/common/comp/brute_force.cc | 19 +++++++------------ src/common/comp/knowhere_config.cc | 11 +++++++++++ src/common/factory.cc | 11 +++++++++++ src/common/log.cc | 11 +++++++++++ src/common/metric.h | 11 +++++++++++ src/common/range_util.cc | 2 +- src/common/range_util.h | 2 +- src/index/annoy/annoy.cc | 11 +++++++++++ src/index/annoy/annoy_config.h | 11 +++++++++++ src/index/diskann/diskann.cc | 11 +++++++++++ src/index/diskann/diskann_config.h | 11 +++++++++++ src/index/flat/flat.cc | 11 +++++++++++ src/index/flat/flat_config.h | 11 +++++++++++ src/index/flat_gpu/flat_gpu.cc | 11 +++++++++++ src/index/flat_gpu/flat_gpu_config.h | 11 +++++++++++ src/index/hnsw/hnsw.cc | 11 +++++++++++ src/index/hnsw/hnsw_config.h | 11 +++++++++++ src/index/ivf/ivf.cc | 11 +++++++++++ src/index/ivf/ivf_config.h | 11 +++++++++++ src/index/ivf_gpu/ivf_gpu.cc | 11 +++++++++++ src/index/ivf_gpu/ivf_gpu_config.h | 11 +++++++++++ src/io/FaissIO.cc | 2 +- src/io/FaissIO.h | 2 +- src/simd/distances_avx.cc | 11 +++++++++++ src/simd/distances_avx.h | 11 +++++++++++ src/simd/distances_avx512.cc | 11 ++++++++++- src/simd/distances_avx512.h | 11 +++++++++++ src/simd/distances_sse.cc | 11 +++++++++++ src/simd/distances_sse.h | 11 +++++++++++ src/simd/hook.cc | 10 ++++++++++ src/simd/hook.h | 11 +++++++++++ src/simd/instruction_set.h | 11 +++++++++++ tests/ut/CMakeLists.txt | 11 +++++++++++ tests/ut/local_file_manager.h | 11 +++++++++++ tests/ut/test_config.cc | 11 +++++++++++ tests/ut/test_diskann.cc | 11 +++++++++++ tests/ut/test_knowhere_init.cc | 11 +++++++++++ tests/ut/test_range_util.cc | 11 +++++++++++ tests/ut/test_search.cc | 11 +++++++++++ tests/ut/utils.h | 11 +++++++++++ thirdparty/faiss/faiss/IndexIVFThreadSafe.cpp | 2 +- .../faiss/faiss/utils/BinaryDistance.cpp | 2 +- thirdparty/faiss/faiss/utils/BinaryDistance.h | 2 +- thirdparty/faiss/faiss/utils/jaccard-inl.h | 2 +- .../faiss/faiss/utils/substructure-inl.h | 2 +- .../faiss/faiss/utils/superstructure-inl.h | 2 +- thirdparty/gtest/CMakeLists.txt | 2 +- 78 files changed, 582 insertions(+), 40 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 65411c5f0..be8dc7ebf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,14 @@ +# Copyright (C) 2019-2023 Zilliz. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under the License +# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +# or implied. See the License for the specific language governing permissions and limitations under the License + cmake_minimum_required(VERSION 3.2) project(knowhere CXX C) diff --git a/benchmark/CMakeLists.txt b/benchmark/CMakeLists.txt index 8874e908b..3896126a7 100644 --- a/benchmark/CMakeLists.txt +++ b/benchmark/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2019-2020 Zilliz. All rights reserved. +# Copyright (C) 2019-2023 Zilliz. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at diff --git a/benchmark/benchmark_base.h b/benchmark/benchmark_base.h index d2ff02863..3a01fc63d 100644 --- a/benchmark/benchmark_base.h +++ b/benchmark/benchmark_base.h @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/benchmark/hdf5/benchmark_hdf5.h b/benchmark/hdf5/benchmark_hdf5.h index 4a8ee2815..5d1c3625f 100644 --- a/benchmark/hdf5/benchmark_hdf5.h +++ b/benchmark/hdf5/benchmark_hdf5.h @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/benchmark/hdf5/benchmark_knowhere.h b/benchmark/hdf5/benchmark_knowhere.h index 008aed0e2..efddfba21 100644 --- a/benchmark/hdf5/benchmark_knowhere.h +++ b/benchmark/hdf5/benchmark_knowhere.h @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/benchmark/hdf5/benchmark_knowhere_binary.cpp b/benchmark/hdf5/benchmark_knowhere_binary.cpp index d0bf3d10d..51bb75fcf 100644 --- a/benchmark/hdf5/benchmark_knowhere_binary.cpp +++ b/benchmark/hdf5/benchmark_knowhere_binary.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/benchmark/hdf5/benchmark_knowhere_binary_range.cpp b/benchmark/hdf5/benchmark_knowhere_binary_range.cpp index da660704c..c5f10cdf0 100644 --- a/benchmark/hdf5/benchmark_knowhere_binary_range.cpp +++ b/benchmark/hdf5/benchmark_knowhere_binary_range.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/benchmark/hdf5/benchmark_knowhere_float.cpp b/benchmark/hdf5/benchmark_knowhere_float.cpp index ec075592e..48fd5a138 100644 --- a/benchmark/hdf5/benchmark_knowhere_float.cpp +++ b/benchmark/hdf5/benchmark_knowhere_float.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/benchmark/hdf5/benchmark_knowhere_float_range.cpp b/benchmark/hdf5/benchmark_knowhere_float_range.cpp index 753a2d283..f0598203f 100644 --- a/benchmark/hdf5/benchmark_knowhere_float_range.cpp +++ b/benchmark/hdf5/benchmark_knowhere_float_range.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/benchmark/utils.h b/benchmark/utils.h index 0ad8b9482..f154d59f7 100644 --- a/benchmark/utils.h +++ b/benchmark/utils.h @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/include/knowhere/binaryset.h b/include/knowhere/binaryset.h index cec6ea533..0c399a401 100644 --- a/include/knowhere/binaryset.h +++ b/include/knowhere/binaryset.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef BINARYSET_H #define BINARYSET_H diff --git a/include/knowhere/bitsetview.h b/include/knowhere/bitsetview.h index 51fbc4128..512364887 100644 --- a/include/knowhere/bitsetview.h +++ b/include/knowhere/bitsetview.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef BITSET_H #define BITSET_H diff --git a/include/knowhere/comp/Timer.h b/include/knowhere/comp/Timer.h index 7a2700fcd..0717cbc94 100644 --- a/include/knowhere/comp/Timer.h +++ b/include/knowhere/comp/Timer.h @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/include/knowhere/comp/brute_force.h b/include/knowhere/comp/brute_force.h index f1aa2e4c5..7139348cc 100644 --- a/include/knowhere/comp/brute_force.h +++ b/include/knowhere/comp/brute_force.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef BRUTE_FORCE_H #define BRUTE_FORCE_H #include "knowhere/bitsetview.h" diff --git a/include/knowhere/comp/index_param.h b/include/knowhere/comp/index_param.h index 492b7fd49..cbd84ee50 100644 --- a/include/knowhere/comp/index_param.h +++ b/include/knowhere/comp/index_param.h @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/include/knowhere/comp/knowhere_config.h b/include/knowhere/comp/knowhere_config.h index 10854749f..c9103acca 100644 --- a/include/knowhere/comp/knowhere_config.h +++ b/include/knowhere/comp/knowhere_config.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef COMP_KNOWHERE_CONFIG_H #define COMP_KNOWHERE_CONFIG_H diff --git a/include/knowhere/comp/thread_pool.h b/include/knowhere/comp/thread_pool.h index fca10ea79..140f01ad1 100644 --- a/include/knowhere/comp/thread_pool.h +++ b/include/knowhere/comp/thread_pool.h @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/include/knowhere/config.h b/include/knowhere/config.h index 4f62f1e6b..4625a7ebc 100644 --- a/include/knowhere/config.h +++ b/include/knowhere/config.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef CONFIG_H #define CONFIG_H diff --git a/include/knowhere/dataset.h b/include/knowhere/dataset.h index 77541439d..d78f4349e 100644 --- a/include/knowhere/dataset.h +++ b/include/knowhere/dataset.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef DATASET_H #define DATASET_H diff --git a/include/knowhere/expected.h b/include/knowhere/expected.h index 8b9376cb7..e0aa12791 100644 --- a/include/knowhere/expected.h +++ b/include/knowhere/expected.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef EXPECTED_H #define EXPECTED_H diff --git a/include/knowhere/factory.h b/include/knowhere/factory.h index 7d4297fbc..f53c7ffc4 100644 --- a/include/knowhere/factory.h +++ b/include/knowhere/factory.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef INDEX_FACTORY_H #define INDEX_FACTORY_H diff --git a/include/knowhere/feder/DiskANN.h b/include/knowhere/feder/DiskANN.h index c8ea2c1b3..f76d5c029 100644 --- a/include/knowhere/feder/DiskANN.h +++ b/include/knowhere/feder/DiskANN.h @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/include/knowhere/feder/HNSW.h b/include/knowhere/feder/HNSW.h index 2ec8f8bab..f0c86092d 100644 --- a/include/knowhere/feder/HNSW.h +++ b/include/knowhere/feder/HNSW.h @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/include/knowhere/feder/IVFFlat.h b/include/knowhere/feder/IVFFlat.h index 2ca5434c2..312eda4d3 100644 --- a/include/knowhere/feder/IVFFlat.h +++ b/include/knowhere/feder/IVFFlat.h @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/include/knowhere/file_manager.h b/include/knowhere/file_manager.h index 2e8695dd9..21d6ab7c7 100644 --- a/include/knowhere/file_manager.h +++ b/include/knowhere/file_manager.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef FILEMANAGER_H #define FILEMANAGER_H #include diff --git a/include/knowhere/index.h b/include/knowhere/index.h index 48510473d..7ec4cfe1b 100644 --- a/include/knowhere/index.h +++ b/include/knowhere/index.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef INDEX_H #define INDEX_H diff --git a/include/knowhere/index_node.h b/include/knowhere/index_node.h index 28e1a7e36..739f18d44 100644 --- a/include/knowhere/index_node.h +++ b/include/knowhere/index_node.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef INDEX_NODE_H #define INDEX_NODE_H diff --git a/include/knowhere/index_node_thread_pool_wrapper.h b/include/knowhere/index_node_thread_pool_wrapper.h index e83d405b1..c9fc9c9c0 100644 --- a/include/knowhere/index_node_thread_pool_wrapper.h +++ b/include/knowhere/index_node_thread_pool_wrapper.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef INDEX_NODE_THREAD_POOL_WRAPPER_H #define INDEX_NODE_THREAD_POOL_WRAPPER_H diff --git a/include/knowhere/log.h b/include/knowhere/log.h index e78f22b93..59b9a1cb8 100644 --- a/include/knowhere/log.h +++ b/include/knowhere/log.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef KNOWHERE_LOG_H #define KNOWHERE_LOG_H diff --git a/include/knowhere/object.h b/include/knowhere/object.h index 35976fe04..cadb0065a 100644 --- a/include/knowhere/object.h +++ b/include/knowhere/object.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef OBJECT_H #define OBJECT_H diff --git a/src/common/comp/Timer.cc b/src/common/comp/Timer.cc index 175f1bc46..aacd9d242 100644 --- a/src/common/comp/Timer.cc +++ b/src/common/comp/Timer.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/src/common/comp/brute_force.cc b/src/common/comp/brute_force.cc index a693ceefd..2dda6f84d 100644 --- a/src/common/comp/brute_force.cc +++ b/src/common/comp/brute_force.cc @@ -1,18 +1,13 @@ -// Licensed to the LF AI & Data foundation under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. #include "knowhere/comp/brute_force.h" diff --git a/src/common/comp/knowhere_config.cc b/src/common/comp/knowhere_config.cc index c9a9ac9c8..45fcf3f18 100644 --- a/src/common/comp/knowhere_config.cc +++ b/src/common/comp/knowhere_config.cc @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #include "knowhere/comp/knowhere_config.h" #include diff --git a/src/common/factory.cc b/src/common/factory.cc index fb07063ea..36cf8efba 100644 --- a/src/common/factory.cc +++ b/src/common/factory.cc @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #include "knowhere/factory.h" namespace knowhere { diff --git a/src/common/log.cc b/src/common/log.cc index 9525f9382..187400e63 100644 --- a/src/common/log.cc +++ b/src/common/log.cc @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #include "knowhere/log.h" namespace knowhere { diff --git a/src/common/metric.h b/src/common/metric.h index 8085863f5..96c0a027b 100644 --- a/src/common/metric.h +++ b/src/common/metric.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef COMMON_METRIC_H #define COMMON_METRIC_H diff --git a/src/common/range_util.cc b/src/common/range_util.cc index 417c225f2..a410f184c 100644 --- a/src/common/range_util.cc +++ b/src/common/range_util.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/src/common/range_util.h b/src/common/range_util.h index 7a7eda6bf..a66f6b781 100644 --- a/src/common/range_util.h +++ b/src/common/range_util.h @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/src/index/annoy/annoy.cc b/src/index/annoy/annoy.cc index 36b56bbbc..9ad1ad47e 100644 --- a/src/index/annoy/annoy.cc +++ b/src/index/annoy/annoy.cc @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #include "annoylib.h" #include "index/annoy/annoy_config.h" #include "kissrandom.h" diff --git a/src/index/annoy/annoy_config.h b/src/index/annoy/annoy_config.h index b11af2840..0a5210012 100644 --- a/src/index/annoy/annoy_config.h +++ b/src/index/annoy/annoy_config.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef ANNOY_CONFIG_H #define ANNOY_CONFIG_H diff --git a/src/index/diskann/diskann.cc b/src/index/diskann/diskann.cc index 3ce235112..8dbac0c37 100644 --- a/src/index/diskann/diskann.cc +++ b/src/index/diskann/diskann.cc @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #include #include "common/range_util.h" diff --git a/src/index/diskann/diskann_config.h b/src/index/diskann/diskann_config.h index b5c99aa9c..594cc307d 100644 --- a/src/index/diskann/diskann_config.h +++ b/src/index/diskann/diskann_config.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef DISKANN_CONFIG_H #define DISKANN_CONFIG_H diff --git a/src/index/flat/flat.cc b/src/index/flat/flat.cc index fc8a97f7d..9a184a4b6 100644 --- a/src/index/flat/flat.cc +++ b/src/index/flat/flat.cc @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #include "common/metric.h" #include "common/range_util.h" #include "faiss/IndexBinaryFlat.h" diff --git a/src/index/flat/flat_config.h b/src/index/flat/flat_config.h index e557bbedd..36ed0ec1a 100644 --- a/src/index/flat/flat_config.h +++ b/src/index/flat/flat_config.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef FLAT_CONFIG_H #define FLAT_CONFIG_H diff --git a/src/index/flat_gpu/flat_gpu.cc b/src/index/flat_gpu/flat_gpu.cc index 26a01d692..136b09f05 100644 --- a/src/index/flat_gpu/flat_gpu.cc +++ b/src/index/flat_gpu/flat_gpu.cc @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #include #include diff --git a/src/index/flat_gpu/flat_gpu_config.h b/src/index/flat_gpu/flat_gpu_config.h index c73ab791b..b11c458cb 100644 --- a/src/index/flat_gpu/flat_gpu_config.h +++ b/src/index/flat_gpu/flat_gpu_config.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef FLAT_GPU_CONFIG_H #define FLAT_GPU_CONFIG_H diff --git a/src/index/hnsw/hnsw.cc b/src/index/hnsw/hnsw.cc index fa9da61d2..267b91324 100644 --- a/src/index/hnsw/hnsw.cc +++ b/src/index/hnsw/hnsw.cc @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #include "knowhere/feder/HNSW.h" #include diff --git a/src/index/hnsw/hnsw_config.h b/src/index/hnsw/hnsw_config.h index a36b9a943..0aec26bd5 100644 --- a/src/index/hnsw/hnsw_config.h +++ b/src/index/hnsw/hnsw_config.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef HNSW_CONFIG_H #define HNSW_CONFIG_H diff --git a/src/index/ivf/ivf.cc b/src/index/ivf/ivf.cc index b6084c82a..f75e5d245 100644 --- a/src/index/ivf/ivf.cc +++ b/src/index/ivf/ivf.cc @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #include "common/metric.h" #include "common/range_util.h" #include "faiss/IndexBinaryFlat.h" diff --git a/src/index/ivf/ivf_config.h b/src/index/ivf/ivf_config.h index 3b7bf69d3..41f890391 100644 --- a/src/index/ivf/ivf_config.h +++ b/src/index/ivf/ivf_config.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef IVF_CONFIG_H #define IVF_CONFIG_H diff --git a/src/index/ivf_gpu/ivf_gpu.cc b/src/index/ivf_gpu/ivf_gpu.cc index 0da4235ef..de79c7236 100644 --- a/src/index/ivf_gpu/ivf_gpu.cc +++ b/src/index/ivf_gpu/ivf_gpu.cc @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #include "common/metric.h" #include "faiss/IndexFlat.h" #include "faiss/IndexIVFFlat.h" diff --git a/src/index/ivf_gpu/ivf_gpu_config.h b/src/index/ivf_gpu/ivf_gpu_config.h index 990ff9389..26dc725be 100644 --- a/src/index/ivf_gpu/ivf_gpu_config.h +++ b/src/index/ivf_gpu/ivf_gpu_config.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #include "index/ivf/ivf_config.h" namespace knowhere { diff --git a/src/io/FaissIO.cc b/src/io/FaissIO.cc index 4dc9bf3d7..a0a69515c 100644 --- a/src/io/FaissIO.cc +++ b/src/io/FaissIO.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/src/io/FaissIO.h b/src/io/FaissIO.h index 67895b50b..59009816f 100644 --- a/src/io/FaissIO.h +++ b/src/io/FaissIO.h @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/src/simd/distances_avx.cc b/src/simd/distances_avx.cc index 3160af7a5..b92068143 100644 --- a/src/simd/distances_avx.cc +++ b/src/simd/distances_avx.cc @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #if defined(__x86_64__) #include "distances_avx.h" diff --git a/src/simd/distances_avx.h b/src/simd/distances_avx.h index 0b0ff68d5..4934d9d30 100644 --- a/src/simd/distances_avx.h +++ b/src/simd/distances_avx.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef DISTANCES_AVX_H #define DISTANCES_AVX_H diff --git a/src/simd/distances_avx512.cc b/src/simd/distances_avx512.cc index d84a35513..dab25ee7d 100644 --- a/src/simd/distances_avx512.cc +++ b/src/simd/distances_avx512.cc @@ -1,4 +1,13 @@ - +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. #if defined(__x86_64__) #include "distances_avx512.h" diff --git a/src/simd/distances_avx512.h b/src/simd/distances_avx512.h index b242bae2f..cf350b5e0 100644 --- a/src/simd/distances_avx512.h +++ b/src/simd/distances_avx512.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef DISTANCES_AVX512_H #define DISTANCES_AVX512_H diff --git a/src/simd/distances_sse.cc b/src/simd/distances_sse.cc index b095fe258..b9ecbe297 100644 --- a/src/simd/distances_sse.cc +++ b/src/simd/distances_sse.cc @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #if defined(__x86_64__) #include "distances_sse.h" diff --git a/src/simd/distances_sse.h b/src/simd/distances_sse.h index d86f0687d..48f2f7653 100644 --- a/src/simd/distances_sse.h +++ b/src/simd/distances_sse.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef DISTANCES_SSE_H #define DISTANCES_SSE_H diff --git a/src/simd/hook.cc b/src/simd/hook.cc index 4d619dd7c..65136d769 100644 --- a/src/simd/hook.cc +++ b/src/simd/hook.cc @@ -1,3 +1,13 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. // -*- c++ -*- diff --git a/src/simd/hook.h b/src/simd/hook.h index 9327bde6b..bcc241f34 100644 --- a/src/simd/hook.h +++ b/src/simd/hook.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef HOOK_H #define HOOK_H diff --git a/src/simd/instruction_set.h b/src/simd/instruction_set.h index 461e5ea5b..0225a97d7 100644 --- a/src/simd/instruction_set.h +++ b/src/simd/instruction_set.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #ifndef INSTRUCTION_SET_H #define INSTRUCTION_SET_H diff --git a/tests/ut/CMakeLists.txt b/tests/ut/CMakeLists.txt index 25240a7c0..de79cb9aa 100644 --- a/tests/ut/CMakeLists.txt +++ b/tests/ut/CMakeLists.txt @@ -1,3 +1,14 @@ +# Copyright (C) 2019-2023 Zilliz. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under the License +# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +# or implied. See the License for the specific language governing permissions and limitations under the License + knowhere_file_glob(GLOB_RECURSE KNOWHERE_UT_SRCS *.cc) if(NOT WITH_DISKANN) knowhere_file_glob(GLOB_RECURSE KNOWHERE_DISKANN_TESTS test_diskann.cc) diff --git a/tests/ut/local_file_manager.h b/tests/ut/local_file_manager.h index 1aaac094b..bdb6f6c9a 100644 --- a/tests/ut/local_file_manager.h +++ b/tests/ut/local_file_manager.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #pragma once #include diff --git a/tests/ut/test_config.cc b/tests/ut/test_config.cc index 121187391..06320c8ca 100644 --- a/tests/ut/test_config.cc +++ b/tests/ut/test_config.cc @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #include "catch2/catch_test_macros.hpp" #include "index/diskann/diskann_config.h" #include "index/flat/flat_config.h" diff --git a/tests/ut/test_diskann.cc b/tests/ut/test_diskann.cc index 4e21db753..b7cedc226 100644 --- a/tests/ut/test_diskann.cc +++ b/tests/ut/test_diskann.cc @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #include "catch2/catch_approx.hpp" #include "catch2/catch_test_macros.hpp" #include "catch2/generators/catch_generators.hpp" diff --git a/tests/ut/test_knowhere_init.cc b/tests/ut/test_knowhere_init.cc index 4d4e1fc9a..363366a5e 100644 --- a/tests/ut/test_knowhere_init.cc +++ b/tests/ut/test_knowhere_init.cc @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #include "catch2/catch_test_macros.hpp" #include "knowhere/comp/knowhere_config.h" diff --git a/tests/ut/test_range_util.cc b/tests/ut/test_range_util.cc index 11dece01f..f8e6578d0 100644 --- a/tests/ut/test_range_util.cc +++ b/tests/ut/test_range_util.cc @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #include "catch2/catch_test_macros.hpp" #include "common/range_util.h" #include "knowhere/factory.h" diff --git a/tests/ut/test_search.cc b/tests/ut/test_search.cc index c48d0acc4..d5d25a3ef 100644 --- a/tests/ut/test_search.cc +++ b/tests/ut/test_search.cc @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #include "catch2/catch_approx.hpp" #include "catch2/catch_test_macros.hpp" #include "catch2/generators/catch_generators.hpp" diff --git a/tests/ut/utils.h b/tests/ut/utils.h index 4cab32f5a..322d5659a 100644 --- a/tests/ut/utils.h +++ b/tests/ut/utils.h @@ -1,3 +1,14 @@ +// Copyright (C) 2019-2023 Zilliz. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License +// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +// or implied. See the License for the specific language governing permissions and limitations under the License. + #include #include #include diff --git a/thirdparty/faiss/faiss/IndexIVFThreadSafe.cpp b/thirdparty/faiss/faiss/IndexIVFThreadSafe.cpp index 5252ce5d8..26d1660af 100644 --- a/thirdparty/faiss/faiss/IndexIVFThreadSafe.cpp +++ b/thirdparty/faiss/faiss/IndexIVFThreadSafe.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of diff --git a/thirdparty/faiss/faiss/utils/BinaryDistance.cpp b/thirdparty/faiss/faiss/utils/BinaryDistance.cpp index dfc1d622a..ff05fa3b5 100644 --- a/thirdparty/faiss/faiss/utils/BinaryDistance.cpp +++ b/thirdparty/faiss/faiss/utils/BinaryDistance.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of diff --git a/thirdparty/faiss/faiss/utils/BinaryDistance.h b/thirdparty/faiss/faiss/utils/BinaryDistance.h index dd1efa517..4349bd593 100644 --- a/thirdparty/faiss/faiss/utils/BinaryDistance.h +++ b/thirdparty/faiss/faiss/utils/BinaryDistance.h @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of diff --git a/thirdparty/faiss/faiss/utils/jaccard-inl.h b/thirdparty/faiss/faiss/utils/jaccard-inl.h index cc70ffaee..ec6a8a50a 100644 --- a/thirdparty/faiss/faiss/utils/jaccard-inl.h +++ b/thirdparty/faiss/faiss/utils/jaccard-inl.h @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of diff --git a/thirdparty/faiss/faiss/utils/substructure-inl.h b/thirdparty/faiss/faiss/utils/substructure-inl.h index 30fa635f9..9ab8cd1c8 100644 --- a/thirdparty/faiss/faiss/utils/substructure-inl.h +++ b/thirdparty/faiss/faiss/utils/substructure-inl.h @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/thirdparty/faiss/faiss/utils/superstructure-inl.h b/thirdparty/faiss/faiss/utils/superstructure-inl.h index 593fe71c8..411f903dd 100644 --- a/thirdparty/faiss/faiss/utils/superstructure-inl.h +++ b/thirdparty/faiss/faiss/utils/superstructure-inl.h @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 Zilliz. All rights reserved. +// Copyright (C) 2019-2023 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at diff --git a/thirdparty/gtest/CMakeLists.txt b/thirdparty/gtest/CMakeLists.txt index 6b82fa9f5..195c8f267 100644 --- a/thirdparty/gtest/CMakeLists.txt +++ b/thirdparty/gtest/CMakeLists.txt @@ -1,5 +1,5 @@ #------------------------------------------------------------------------------- -# Copyright (C) 2019-2020 Zilliz. All rights reserved. +# Copyright (C) 2019-2023 Zilliz. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at