Skip to content

Commit

Permalink
add copyright for each file (#5)
Browse files Browse the repository at this point in the history
* remove dup code

* Update Readme.md

* Fix DataSet GNU compile fail bug

* fix GNU Windows align alloc bugs

* add copyright in each file

* fix copy right in dataset

* change kdt distance judgement
  • Loading branch information
MaggieQi committed Jan 18, 2019
1 parent 459cd37 commit d2eadc7
Show file tree
Hide file tree
Showing 114 changed files with 345 additions and 3 deletions.
3 changes: 3 additions & 0 deletions AnnService/CMakeLists.txt
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

file(GLOB HDR_FILES ${PROJECT_SOURCE_DIR}/AnnService/inc/Core/*.h ${PROJECT_SOURCE_DIR}/AnnService/inc/Core/Common/*.h ${PROJECT_SOURCE_DIR}/AnnService/inc/Core/BKT/*.h ${PROJECT_SOURCE_DIR}/AnnService/inc/Core/KDT/*.h ${PROJECT_SOURCE_DIR}/AnnService/inc/Helper/*.h)
file(GLOB SRC_FILES ${PROJECT_SOURCE_DIR}/AnnService/src/Core/*.cpp ${PROJECT_SOURCE_DIR}/AnnService/src/Core/Common/*.cpp ${PROJECT_SOURCE_DIR}/AnnService/src/Core/BKT/*.cpp ${PROJECT_SOURCE_DIR}/AnnService/src/Core/KDT/*.cpp ${PROJECT_SOURCE_DIR}/AnnService/src/Helper/*.cpp)

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Aggregator/AggregatorContext.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_AGGREGATOR_AGGREGATORCONTEXT_H_
#define _SPTAG_AGGREGATOR_AGGREGATORCONTEXT_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Aggregator/AggregatorExecutionContext.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_AGGREGATOR_AGGREGATOREXECUTIONCONTEXT_H_
#define _SPTAG_AGGREGATOR_AGGREGATOREXECUTIONCONTEXT_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Aggregator/AggregatorService.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_AGGREGATOR_AGGREGATORSERVICE_H_
#define _SPTAG_AGGREGATOR_AGGREGATORSERVICE_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Aggregator/AggregatorSettings.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_AGGREGATOR_AGGREGATORSETTINGS_H_
#define _SPTAG_AGGREGATOR_AGGREGATORSETTINGS_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Client/ClientWrapper.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_CLIENT_CLIENTWRAPPER_H_
#define _SPTAG_CLIENT_CLIENTWRAPPER_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Client/Options.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_CLIENT_OPTIONS_H_
#define _SPTAG_CLIENT_OPTIONS_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/BKT/Index.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_BKT_INDEX_H_
#define _SPTAG_BKT_INDEX_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/BKT/ParameterDefinitionList.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifdef DefineBKTParameter

// DefineBKTParameter(VarName, VarType, DefaultValue, RepresentStr)
Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/Common.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_CORE_COMMONDEFS_H_
#define _SPTAG_CORE_COMMONDEFS_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/Common/BKTree.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_COMMON_BKTREE_H_
#define _SPTAG_COMMON_BKTREE_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/Common/CommonUtils.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_COMMON_COMMONUTILS_H_
#define _SPTAG_COMMON_COMMONUTILS_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/Common/DataUtils.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_COMMON_DATAUTILS_H_
#define _SPTAG_COMMON_DATAUTILS_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/Common/Dataset.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_COMMON_DATASET_H_
#define _SPTAG_COMMON_DATASET_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/Common/DistanceUtils.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_COMMON_DISTANCEUTILS_H_
#define _SPTAG_COMMON_DISTANCEUTILS_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/Common/FineGrainedLock.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_COMMON_FINEGRAINEDLOCK_H_
#define _SPTAG_COMMON_FINEGRAINEDLOCK_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/Common/Heap.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_COMMON_HEAP_H_
#define _SPTAG_COMMON_HEAP_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/Common/KDTree.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_COMMON_KDTREE_H_
#define _SPTAG_COMMON_KDTREE_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/Common/NeighborhoodGraph.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_COMMON_NG_H_
#define _SPTAG_COMMON_NG_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/Common/QueryResultSet.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_COMMON_QUERYRESULTSET_H_
#define _SPTAG_COMMON_QUERYRESULTSET_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/Common/RelativeNeighborhoodGraph.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_COMMON_RNG_H_
#define _SPTAG_COMMON_RNG_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/Common/WorkSpace.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_COMMON_WORKSPACE_H_
#define _SPTAG_COMMON_WORKSPACE_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/Common/WorkSpacePool.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_COMMON_WORKSPACEPOOL_H_
#define _SPTAG_COMMON_WORKSPACEPOOL_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/CommonDataStructure.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_COMMONDATASTRUCTURE_H_
#define _SPTAG_COMMONDATASTRUCTURE_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/DefinitionList.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifdef DefineVectorValueType

DefineVectorValueType(Int8, std::int8_t)
Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/KDT/Index.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_KDT_INDEX_H_
#define _SPTAG_KDT_INDEX_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/KDT/ParameterDefinitionList.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifdef DefineKDTParameter

// DefineKDTParameter(VarName, VarType, DefaultValue, RepresentStr)
Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/MetadataSet.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_METADATASET_H_
#define _SPTAG_METADATASET_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/SearchQuery.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_SEARCHQUERY_H_
#define _SPTAG_SEARCHQUERY_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/VectorIndex.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_VECTORINDEX_H_
#define _SPTAG_VECTORINDEX_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Core/VectorSet.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_VECTORSET_H_
#define _SPTAG_VECTORSET_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Helper/ArgumentsParser.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_HELPER_ARGUMENTSPARSER_H_
#define _SPTAG_HELPER_ARGUMENTSPARSER_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Helper/Base64Encode.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_HELPER_BASE64ENCODE_H_
#define _SPTAG_HELPER_BASE64ENCODE_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Helper/CommonHelper.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_HELPER_COMMONHELPER_H_
#define _SPTAG_HELPER_COMMONHELPER_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Helper/Concurrent.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_HELPER_CONCURRENT_H_
#define _SPTAG_HELPER_CONCURRENT_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Helper/SimpleIniReader.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_HELPER_INIREADER_H_
#define _SPTAG_HELPER_INIREADER_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Helper/StringConvert.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_HELPER_STRINGCONVERTHELPER_H_
#define _SPTAG_HELPER_STRINGCONVERTHELPER_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/IndexBuilder/Options.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_INDEXBUILDER_OPTIONS_H_
#define _SPTAG_INDEXBUILDER_OPTIONS_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/IndexBuilder/ThreadPool.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_INDEXBUILDER_THREADPOOL_H_
#define _SPTAG_INDEXBUILDER_THREADPOOL_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/IndexBuilder/VectorSetReader.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_INDEXBUILDER_VECTORSETREADER_H_
#define _SPTAG_INDEXBUILDER_VECTORSETREADER_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/IndexBuilder/VectorSetReaders/DefaultReader.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_INDEXBUILDER_VECTORSETREADERS_DEFAULTREADER_H_
#define _SPTAG_INDEXBUILDER_VECTORSETREADERS_DEFAULTREADER_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Server/QueryParser.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_SERVER_QUERYPARSER_H_
#define _SPTAG_SERVER_QUERYPARSER_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Server/SearchExecutionContext.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_SERVER_SEARCHEXECUTIONCONTEXT_H_
#define _SPTAG_SERVER_SEARCHEXECUTIONCONTEXT_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Server/SearchExecutor.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_SERVER_SEARCHEXECUTOR_H_
#define _SPTAG_SERVER_SEARCHEXECUTOR_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Server/SearchService.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_SERVER_SERVICE_H_
#define _SPTAG_SERVER_SERVICE_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Server/ServiceContext.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_SERVER_SERVICECONTEX_H_
#define _SPTAG_SERVER_SERVICECONTEX_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Server/ServiceSettings.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_SERVER_SERVICESTTINGS_H_
#define _SPTAG_SERVER_SERVICESTTINGS_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Socket/Client.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_SOCKET_CLIENT_H_
#define _SPTAG_SOCKET_CLIENT_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Socket/Common.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_SOCKET_COMMON_H_
#define _SPTAG_SOCKET_COMMON_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Socket/Connection.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_SOCKET_CONNECTION_H_
#define _SPTAG_SOCKET_CONNECTION_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Socket/ConnectionManager.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_SOCKET_CONNECTIONMANAGER_H_
#define _SPTAG_SOCKET_CONNECTIONMANAGER_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Socket/Packet.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_SOCKET_PACKET_H_
#define _SPTAG_SOCKET_PACKET_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Socket/RemoteSearchQuery.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_SOCKET_REMOTESEARCHQUERY_H_
#define _SPTAG_SOCKET_REMOTESEARCHQUERY_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Socket/ResourceManager.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_SOCKET_RESOURCEMANAGER_H_
#define _SPTAG_SOCKET_RESOURCEMANAGER_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Socket/Server.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_SOCKET_SERVER_H_
#define _SPTAG_SOCKET_SERVER_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/inc/Socket/SimpleSerialization.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef _SPTAG_SOCKET_SIMPLESERIALIZATION_H_
#define _SPTAG_SOCKET_SIMPLESERIALIZATION_H_

Expand Down
3 changes: 3 additions & 0 deletions AnnService/src/Aggregator/AggregatorContext.cpp
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#include "inc/Aggregator/AggregatorContext.h"
#include "inc/Helper/SimpleIniReader.h"

Expand Down

0 comments on commit d2eadc7

Please sign in to comment.