Skip to content

Commit a86b153

Browse files
committed
Removing trailing whitespace
1 parent 3fad6b0 commit a86b153

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

examples/cpp/example_mt_replace_deleted.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ int main() {
6969
int num_threads = 20; // Number of threads for operations with index
7070

7171
// Initing index with allow_replace_deleted=true
72-
int seed = 100;
72+
int seed = 100;
7373
hnswlib::L2Space space(dim);
7474
hnswlib::HierarchicalNSW<float>* alg_hnsw = new hnswlib::HierarchicalNSW<float>(&space, max_elements, M, ef_construction, seed, true);
7575

examples/cpp/example_replace_deleted.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ int main() {
99
int ef_construction = 200; // Controls index search speed/build speed tradeoff
1010

1111
// Initing index with allow_replace_deleted=true
12-
int seed = 100;
12+
int seed = 100;
1313
hnswlib::L2Space space(dim);
1414
hnswlib::HierarchicalNSW<float>* alg_hnsw = new hnswlib::HierarchicalNSW<float>(&space, max_elements, M, ef_construction, seed, true);
1515

tests/cpp/epsilon_search_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ int main() {
4949
query_data[j] = distrib_real(rng);
5050
}
5151
hnswlib::EpsilonSearchStopCondition<dist_t> stop_condition(epsilon2, min_num_candidates, max_num_candidates);
52-
auto result_hnsw =
52+
auto result_hnsw =
5353
alg_hnsw->searchStopConditionClosest(query_data, stop_condition);
54-
54+
5555
// check that returned results are in epsilon region
5656
size_t num_vectors = result_hnsw.size();
5757
std::unordered_set<hnswlib::labeltype> hnsw_labels;
@@ -62,7 +62,7 @@ int main() {
6262
assert(dist >=0 && dist <= epsilon2);
6363
}
6464
auto result_brute = alg_brute->searchKnn(query_data, max_elements);
65-
65+
6666
// check recall
6767
std::unordered_set<hnswlib::labeltype> gt_labels;
6868
while (!result_brute.empty()) {

tests/cpp/multiThreadLoad_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ int main() {
134134
for (auto &thread : threads) {
135135
thread.join();
136136
}
137-
137+
138138
std::cout << "Finish" << std::endl;
139139
return 0;
140140
}

tests/cpp/multiThread_replace_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ int main() {
112112

113113
delete alg_hnsw;
114114
}
115-
115+
116116
std::cout << "Finish" << std::endl;
117117

118118
delete[] batch1;

tests/cpp/updates_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class StopW {
2626
* only handles a subset of functionality (no reductions etc)
2727
* Process ids from start (inclusive) to end (EXCLUSIVE)
2828
*
29-
* The method is borrowed from nmslib
29+
* The method is borrowed from nmslib
3030
*/
3131
template<class Function>
3232
inline void ParallelFor(size_t start, size_t end, size_t numThreads, Function fn) {

0 commit comments

Comments
 (0)