Skip to content

format #669

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 5, 2025
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/event-pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
run: sudo .install/install_script.sh
- name: install python packages
run: pip3 install -r requirements.txt
# - name: check format
# run: make check-format
- name: check format
run: make check-format
- name: unit tests
run: make unit_test
- name: flow tests
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/brute_force/bf_batch_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once

#include "VecSim/batch_iterator.h"
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/brute_force/bfm_batch_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once
#include "bf_batch_iterator.h"

Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/brute_force/bfs_batch_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once
#include "bf_batch_iterator.h"

Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/brute_force/brute_force.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once

#include "VecSim/containers/data_block.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#include "VecSim/friend_test_decl.h"
// Allow the following tests to access the index private members.
INDEX_TEST_FRIEND_CLASS(BruteForceTest_brute_force_vector_update_test_Test)
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/brute_force/brute_force_multi.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once

#include "brute_force.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#include "VecSim/friend_test_decl.h"

// Allow the following tests to access the index private members.
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/brute_force/brute_force_single.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once

#include "brute_force.h"
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/hnsw/hnsw.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once

#include "graph_data.h"
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/hnsw/hnsw_base_tests_friends.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#include "VecSim/friend_test_decl.h"
INDEX_TEST_FRIEND_CLASS(HNSWTest_test_dynamic_hnsw_info_iterator_Test)
INDEX_TEST_FRIEND_CLASS(HNSWTest_preferAdHocOptimization_Test)
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/hnsw/hnsw_batch_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once

#include "VecSim/batch_iterator.h"
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/hnsw/hnsw_multi.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once

#include "hnsw.h"
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/hnsw/hnsw_multi_batch_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once

#include "hnsw_batch_iterator.h"
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/hnsw/hnsw_multi_tests_friends.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#include "VecSim/friend_test_decl.h"
INDEX_TEST_FRIEND_CLASS(HNSWMultiTest_empty_index_Test)
INDEX_TEST_FRIEND_CLASS(HNSWMultiTest_search_more_than_there_is_Test)
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/hnsw/hnsw_serialization_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/hnsw/hnsw_serializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/hnsw/hnsw_serializer_declarations.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/hnsw/hnsw_single.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once

#include "hnsw.h"
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/hnsw/hnsw_single_batch_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once

#include "hnsw_batch_iterator.h"
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/hnsw/hnsw_single_tests_friends.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#include "VecSim/friend_test_decl.h"
INDEX_TEST_FRIEND_CLASS(HNSWTest_test_dynamic_hnsw_info_iterator_Test)
INDEX_TEST_FRIEND_CLASS(HNSWTest_preferAdHocOptimization_Test)
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/hnsw/hnsw_tiered.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/hnsw/hnsw_tiered_tests_friends.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/

#include "VecSim/friend_test_decl.h"
INDEX_TEST_FRIEND_CLASS(HNSWTieredIndexTest)
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/hnsw/visited_nodes_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#include <cassert>
#include "visited_nodes_handler.h"

Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/hnsw/visited_nodes_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once

#include <mutex>
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/svs/svs.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/

#pragma once
#include "VecSim/vec_sim_index.h"
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/svs/svs_batch_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/svs/svs_extensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/

#pragma once
#include "VecSim/algorithms/svs/svs_utils.h"
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/algorithms/svs/svs_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/

#pragma once
#include "VecSim/query_results.h"
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/batch_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once

#include "VecSim/vec_sim.h"
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/containers/data_block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#include "data_block.h"
#include "VecSim/memory/vecsim_malloc.h"
#include <cstring>
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/containers/data_block.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once
#include "VecSim/memory/vecsim_base.h"

Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/containers/data_blocks_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/

#include "data_blocks_container.h"
#include "VecSim/utils/serializer.h"
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/containers/data_blocks_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/containers/raw_data_container_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/containers/vecsim_results_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once

#include "VecSim/query_result_definitions.h"
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/friend_test_decl.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#ifndef INDEX_TEST_FRIEND_CLASS
#define INDEX_TEST_FRIEND_CLASS(class_name) \
template <typename> \
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/index_factories/brute_force_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#include "VecSim/index_factories/brute_force_factory.h"
#include "VecSim/algorithms/brute_force/brute_force.h"
#include "VecSim/algorithms/brute_force/brute_force_single.h"
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/index_factories/brute_force_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once

#include <cstdlib> // size_t
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#include "VecSim/index_factories/components/components_factory.h"

PreprocessorsContainerParams CreatePreprocessorsContainerParams(VecSimMetric metric, size_t dim,
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/index_factories/components/components_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once

#include "VecSim/spaces/spaces.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once

#include "VecSim/spaces/computer/preprocessor_container.h"
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/index_factories/hnsw_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#include "VecSim/algorithms/hnsw/hnsw_single.h"
#include "VecSim/algorithms/hnsw/hnsw_multi.h"
#include "VecSim/index_factories/hnsw_factory.h"
Expand Down
2 changes: 1 addition & 1 deletion src/VecSim/index_factories/hnsw_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Licensed under your choice of the Redis Source Available License 2.0
* (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
* GNU Affero General Public License v3 (AGPLv3).
*/
*/
#pragma once

#include <cstdlib> // size_t
Expand Down
Loading
Loading