From 09ccd8f404a574a4a922635c07b35f9f4918365e Mon Sep 17 00:00:00 2001 From: Shylock Hg <33566796+Shylock-Hg@users.noreply.github.com> Date: Wed, 3 Nov 2021 17:22:07 +0800 Subject: [PATCH 01/10] Remove common clause. --- .clang-format | 1 - .linters/cpp/hooks/pre-commit.sh | 1 - CMakeLists.txt | 1 - cmake/CPackage.cmake | 2 -- cmake/FetchModule.cmake | 1 - cmake/nebula/ConfigNebulaClient.cmake | 1 - examples/CMakeLists.txt | 1 - examples/SessionExample.cpp | 1 - include/common/datatypes/CommonCpp2Ops.h | 1 - include/common/datatypes/DataSet.h | 1 - include/common/datatypes/DataSetOps-inl.h | 1 - include/common/datatypes/Date.h | 1 - include/common/datatypes/DateOps-inl.h | 1 - include/common/datatypes/Edge.h | 1 - include/common/datatypes/EdgeOps-inl.h | 1 - include/common/datatypes/Geography.h | 1 - include/common/datatypes/GeographyOps-inl.h | 1 - include/common/datatypes/HostAddr.h | 1 - include/common/datatypes/HostAddrOps-inl.h | 1 - include/common/datatypes/KeyValue.h | 1 - include/common/datatypes/KeyValueOps-inl.h | 1 - include/common/datatypes/List.h | 1 - include/common/datatypes/ListOps-inl.h | 1 - include/common/datatypes/Map.h | 1 - include/common/datatypes/MapOps-inl.h | 1 - include/common/datatypes/Path.h | 1 - include/common/datatypes/PathOps-inl.h | 1 - include/common/datatypes/Set.h | 1 - include/common/datatypes/SetOps-inl.h | 1 - include/common/datatypes/Value.h | 1 - include/common/datatypes/ValueOps-inl.h | 1 - include/common/datatypes/Vertex.h | 1 - include/common/datatypes/VertexOps-inl.h | 1 - include/common/graph/AuthResponseOps-inl.h | 1 - include/common/graph/ExecutionResponseOps-inl.h | 1 - include/common/graph/GraphCpp2Ops.h | 1 - include/common/graph/PairOps-inl.h | 1 - include/common/graph/PlanDescriptionOps-inl.h | 1 - include/common/graph/PlanNodeBranchInfoOps-inl.h | 1 - include/common/graph/PlanNodeDescriptionOps-inl.h | 1 - include/common/graph/ProfilingStatsOps-inl.h | 1 - include/common/graph/Response.h | 1 - include/common/thrift/ThriftCpp2OpsHelper.h | 1 - include/common/thrift/ThriftTypes.h | 1 - include/common/time/TimeConversion.h | 1 - include/common/utils/utils.h | 1 - include/nebula/client/Config.h | 1 - include/nebula/client/Connection.h | 1 - include/nebula/client/ConnectionPool.h | 1 - include/nebula/client/Init.h | 1 - include/nebula/client/Session.h | 1 - package/package.sh | 1 - src/CMakeLists.txt | 1 - src/client/CMakeLists.txt | 1 - src/client/Connection.cpp | 1 - src/client/ConnectionPool.cpp | 1 - src/client/Init.cpp | 1 - src/client/Session.cpp | 1 - src/client/tests/AddressTest.cpp | 1 - src/client/tests/CMakeLists.txt | 1 - src/client/tests/ClientTest.h | 1 - src/client/tests/ConfigTest.cpp | 1 - src/client/tests/ConnectionTest.cpp | 1 - src/client/tests/SessionTest.cpp | 1 - src/client/tests/TimezoneConversionTest.cpp | 1 - src/datatypes/Date.cpp | 1 - src/datatypes/Edge.cpp | 1 - src/datatypes/Geography.cpp | 1 - src/datatypes/HostAddr.cpp | 1 - src/datatypes/List.cpp | 1 - src/datatypes/Map.cpp | 1 - src/datatypes/Path.cpp | 1 - src/datatypes/Set.cpp | 1 - src/datatypes/Value.cpp | 1 - src/datatypes/Vertex.cpp | 1 - src/graph/Response.cpp | 1 - src/interface/CMakeLists.txt | 1 - src/time/TimeConversion.cpp | 1 - third-party/cxx-compiler-abi-version.sh | 1 - third-party/install-cmake.sh | 1 - third-party/install-gcc.sh | 1 - third-party/install-third-party.sh | 1 - 82 files changed, 83 deletions(-) diff --git a/.clang-format b/.clang-format index bcf5df71..fade07d5 100644 --- a/.clang-format +++ b/.clang-format @@ -1,7 +1,6 @@ # Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, -# attached with Common Clause Condition 1.0, found in the LICENSES directory. # # This is the output of clang-format-10.0.0 --style=google --dump-config, # except for changes mentioned below. diff --git a/.linters/cpp/hooks/pre-commit.sh b/.linters/cpp/hooks/pre-commit.sh index 86e18319..1b850e76 100755 --- a/.linters/cpp/hooks/pre-commit.sh +++ b/.linters/cpp/hooks/pre-commit.sh @@ -3,7 +3,6 @@ # Copyright (c) 2018 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, -# attached with Common Clause Condition 1.0, found in the LICENSES directory. CPPLINT=`dirname $0`/../../.linters/cpp/cpplint.py diff --git a/CMakeLists.txt b/CMakeLists.txt index 2501177c..31ff468b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,6 @@ # Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, -# attached with Common Clause Condition 1.0, found in the LICENSES directory. # # The build can be controlled by defining following variables on the # command line diff --git a/cmake/CPackage.cmake b/cmake/CPackage.cmake index b26eda90..58270bb0 100644 --- a/cmake/CPackage.cmake +++ b/cmake/CPackage.cmake @@ -1,7 +1,6 @@ # Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, -# attached with Common Clause Condition 1.0, found in the LICENSES directory. # @@ -10,7 +9,6 @@ macro(package to_one name home_page scripts_dir) set(CPACK_PACKAGE_DESCRIPTION ${name}) set(CPACK_PACKAGE_CONTACT ${name}) set(CPACK_PACKAGE_VERSION ${NEBULA_BUILD_VERSION}) - set(CPACK_RPM_PACKAGE_LICENSE "Apache 2.0 + Common Clause 1.0") set(CPACK_PACKAGE_NAME ${name}) # set(CPACK_SET_DESTDIR TRUE) set(CPACK_PACKAGE_RELOCATABLE ON) diff --git a/cmake/FetchModule.cmake b/cmake/FetchModule.cmake index f9dd79b5..b4181b7a 100644 --- a/cmake/FetchModule.cmake +++ b/cmake/FetchModule.cmake @@ -1,7 +1,6 @@ # Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, -# attached with Common Clause Condition 1.0, found in the LICENSES directory. # find_package(Git) diff --git a/cmake/nebula/ConfigNebulaClient.cmake b/cmake/nebula/ConfigNebulaClient.cmake index 4c80ddbe..38dc7eab 100644 --- a/cmake/nebula/ConfigNebulaClient.cmake +++ b/cmake/nebula/ConfigNebulaClient.cmake @@ -1,7 +1,6 @@ # Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, -# attached with Common Clause Condition 1.0, found in the LICENSES directory. # macro(config_nebula_client) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 74599efc..3e92520b 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,7 +1,6 @@ # Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, -# attached with Common Clause Condition 1.0, found in the LICENSES directory. # # Set the project name diff --git a/examples/SessionExample.cpp b/examples/SessionExample.cpp index 2c1b5cd3..c19e941a 100644 --- a/examples/SessionExample.cpp +++ b/examples/SessionExample.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include diff --git a/include/common/datatypes/CommonCpp2Ops.h b/include/common/datatypes/CommonCpp2Ops.h index 7d3bcb78..f59467eb 100644 --- a/include/common/datatypes/CommonCpp2Ops.h +++ b/include/common/datatypes/CommonCpp2Ops.h @@ -1,7 +1,6 @@ /* Copyright (c) 2021 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/DataSet.h b/include/common/datatypes/DataSet.h index 714799dc..90a75763 100644 --- a/include/common/datatypes/DataSet.h +++ b/include/common/datatypes/DataSet.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/DataSetOps-inl.h b/include/common/datatypes/DataSetOps-inl.h index bc171f3c..55b0e4fb 100644 --- a/include/common/datatypes/DataSetOps-inl.h +++ b/include/common/datatypes/DataSetOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/Date.h b/include/common/datatypes/Date.h index 7651e717..ab63cb39 100644 --- a/include/common/datatypes/Date.h +++ b/include/common/datatypes/Date.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/DateOps-inl.h b/include/common/datatypes/DateOps-inl.h index d80897ef..2e94df41 100644 --- a/include/common/datatypes/DateOps-inl.h +++ b/include/common/datatypes/DateOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/Edge.h b/include/common/datatypes/Edge.h index c0f6464f..9184c843 100644 --- a/include/common/datatypes/Edge.h +++ b/include/common/datatypes/Edge.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/EdgeOps-inl.h b/include/common/datatypes/EdgeOps-inl.h index d7c7440b..d41d7ab6 100644 --- a/include/common/datatypes/EdgeOps-inl.h +++ b/include/common/datatypes/EdgeOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * obj source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/Geography.h b/include/common/datatypes/Geography.h index 75c50046..51d845f6 100644 --- a/include/common/datatypes/Geography.h +++ b/include/common/datatypes/Geography.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/GeographyOps-inl.h b/include/common/datatypes/GeographyOps-inl.h index 6e460131..82e5369c 100644 --- a/include/common/datatypes/GeographyOps-inl.h +++ b/include/common/datatypes/GeographyOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/HostAddr.h b/include/common/datatypes/HostAddr.h index 52dff818..3a245a3f 100644 --- a/include/common/datatypes/HostAddr.h +++ b/include/common/datatypes/HostAddr.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/HostAddrOps-inl.h b/include/common/datatypes/HostAddrOps-inl.h index f2985639..b9b72e91 100644 --- a/include/common/datatypes/HostAddrOps-inl.h +++ b/include/common/datatypes/HostAddrOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * obj source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/KeyValue.h b/include/common/datatypes/KeyValue.h index ad6affb6..3e3a4c80 100644 --- a/include/common/datatypes/KeyValue.h +++ b/include/common/datatypes/KeyValue.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/KeyValueOps-inl.h b/include/common/datatypes/KeyValueOps-inl.h index af814ae1..66aaa7e3 100644 --- a/include/common/datatypes/KeyValueOps-inl.h +++ b/include/common/datatypes/KeyValueOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/List.h b/include/common/datatypes/List.h index 6fce82b2..61a1ecf7 100644 --- a/include/common/datatypes/List.h +++ b/include/common/datatypes/List.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/ListOps-inl.h b/include/common/datatypes/ListOps-inl.h index b9ac6de4..67a7cf1d 100644 --- a/include/common/datatypes/ListOps-inl.h +++ b/include/common/datatypes/ListOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/Map.h b/include/common/datatypes/Map.h index c26b27c1..6558a338 100644 --- a/include/common/datatypes/Map.h +++ b/include/common/datatypes/Map.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/MapOps-inl.h b/include/common/datatypes/MapOps-inl.h index 42887691..55f47fe1 100644 --- a/include/common/datatypes/MapOps-inl.h +++ b/include/common/datatypes/MapOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/Path.h b/include/common/datatypes/Path.h index 54cdf2f3..ccd57dc6 100644 --- a/include/common/datatypes/Path.h +++ b/include/common/datatypes/Path.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/PathOps-inl.h b/include/common/datatypes/PathOps-inl.h index a027b744..6e8df875 100644 --- a/include/common/datatypes/PathOps-inl.h +++ b/include/common/datatypes/PathOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * obj source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/Set.h b/include/common/datatypes/Set.h index 386c76a8..66f9daa1 100644 --- a/include/common/datatypes/Set.h +++ b/include/common/datatypes/Set.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/SetOps-inl.h b/include/common/datatypes/SetOps-inl.h index d7c33ad5..558fc6fb 100644 --- a/include/common/datatypes/SetOps-inl.h +++ b/include/common/datatypes/SetOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/Value.h b/include/common/datatypes/Value.h index 2a259889..3784695a 100644 --- a/include/common/datatypes/Value.h +++ b/include/common/datatypes/Value.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/ValueOps-inl.h b/include/common/datatypes/ValueOps-inl.h index f7d885eb..87a62836 100644 --- a/include/common/datatypes/ValueOps-inl.h +++ b/include/common/datatypes/ValueOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * obj source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/Vertex.h b/include/common/datatypes/Vertex.h index e85278b0..753b1ab9 100644 --- a/include/common/datatypes/Vertex.h +++ b/include/common/datatypes/Vertex.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/datatypes/VertexOps-inl.h b/include/common/datatypes/VertexOps-inl.h index 9f986131..23751187 100644 --- a/include/common/datatypes/VertexOps-inl.h +++ b/include/common/datatypes/VertexOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/graph/AuthResponseOps-inl.h b/include/common/graph/AuthResponseOps-inl.h index 742b26e9..eb507a8b 100644 --- a/include/common/graph/AuthResponseOps-inl.h +++ b/include/common/graph/AuthResponseOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/graph/ExecutionResponseOps-inl.h b/include/common/graph/ExecutionResponseOps-inl.h index 6332bba2..a168e92e 100644 --- a/include/common/graph/ExecutionResponseOps-inl.h +++ b/include/common/graph/ExecutionResponseOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/graph/GraphCpp2Ops.h b/include/common/graph/GraphCpp2Ops.h index 1d29db9a..71391d27 100644 --- a/include/common/graph/GraphCpp2Ops.h +++ b/include/common/graph/GraphCpp2Ops.h @@ -1,7 +1,6 @@ /* Copyright (c) 2021 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/graph/PairOps-inl.h b/include/common/graph/PairOps-inl.h index 67b11fff..afb63149 100644 --- a/include/common/graph/PairOps-inl.h +++ b/include/common/graph/PairOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/graph/PlanDescriptionOps-inl.h b/include/common/graph/PlanDescriptionOps-inl.h index a42cf991..32d67fa2 100644 --- a/include/common/graph/PlanDescriptionOps-inl.h +++ b/include/common/graph/PlanDescriptionOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/graph/PlanNodeBranchInfoOps-inl.h b/include/common/graph/PlanNodeBranchInfoOps-inl.h index f25e6584..ab5551e3 100644 --- a/include/common/graph/PlanNodeBranchInfoOps-inl.h +++ b/include/common/graph/PlanNodeBranchInfoOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/graph/PlanNodeDescriptionOps-inl.h b/include/common/graph/PlanNodeDescriptionOps-inl.h index f7c5f99e..d86964aa 100644 --- a/include/common/graph/PlanNodeDescriptionOps-inl.h +++ b/include/common/graph/PlanNodeDescriptionOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/graph/ProfilingStatsOps-inl.h b/include/common/graph/ProfilingStatsOps-inl.h index 57a478b5..cf38d712 100644 --- a/include/common/graph/ProfilingStatsOps-inl.h +++ b/include/common/graph/ProfilingStatsOps-inl.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/graph/Response.h b/include/common/graph/Response.h index 1f9d5765..db5ca441 100644 --- a/include/common/graph/Response.h +++ b/include/common/graph/Response.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/thrift/ThriftCpp2OpsHelper.h b/include/common/thrift/ThriftCpp2OpsHelper.h index 1c6fddc9..0ba026b8 100644 --- a/include/common/thrift/ThriftCpp2OpsHelper.h +++ b/include/common/thrift/ThriftCpp2OpsHelper.h @@ -1,7 +1,6 @@ /* Copyright (c) 2021 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #ifndef COMMON_THRIFT_THRIFTCPP2OPS_HELPER_H_ diff --git a/include/common/thrift/ThriftTypes.h b/include/common/thrift/ThriftTypes.h index b69b4da5..2e12fc73 100644 --- a/include/common/thrift/ThriftTypes.h +++ b/include/common/thrift/ThriftTypes.h @@ -1,7 +1,6 @@ /* Copyright (c) 2018 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/time/TimeConversion.h b/include/common/time/TimeConversion.h index af44de32..55c9d2a8 100644 --- a/include/common/time/TimeConversion.h +++ b/include/common/time/TimeConversion.h @@ -1,7 +1,6 @@ /* Copyright (c) 2021 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/common/utils/utils.h b/include/common/utils/utils.h index e578f3a8..f8c6212e 100644 --- a/include/common/utils/utils.h +++ b/include/common/utils/utils.h @@ -1,7 +1,6 @@ /* Copyright (c) 2021 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/nebula/client/Config.h b/include/nebula/client/Config.h index 70380709..0d01d35b 100644 --- a/include/nebula/client/Config.h +++ b/include/nebula/client/Config.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/nebula/client/Connection.h b/include/nebula/client/Connection.h index 1d547c09..fc58d929 100644 --- a/include/nebula/client/Connection.h +++ b/include/nebula/client/Connection.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/nebula/client/ConnectionPool.h b/include/nebula/client/ConnectionPool.h index 027b0036..1d4ad167 100644 --- a/include/nebula/client/ConnectionPool.h +++ b/include/nebula/client/ConnectionPool.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/nebula/client/Init.h b/include/nebula/client/Init.h index a1e1917a..ce314e36 100644 --- a/include/nebula/client/Init.h +++ b/include/nebula/client/Init.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/include/nebula/client/Session.h b/include/nebula/client/Session.h index 5bdcff87..2e71582a 100644 --- a/include/nebula/client/Session.h +++ b/include/nebula/client/Session.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/package/package.sh b/package/package.sh index 1dd11b0a..465ddcd8 100755 --- a/package/package.sh +++ b/package/package.sh @@ -3,7 +3,6 @@ # Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, -# attached with Common Clause Condition 1.0, found in the LICENSES directory. # # Package nebula as deb/rpm package diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cd3272ae..ebb600eb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,7 +1,6 @@ # Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, -# attached with Common Clause Condition 1.0, found in the LICENSES directory. set(NEBULA_CLIENT_OBJS $ diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index 4cf01328..de225c4e 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -1,6 +1,5 @@ # Copyright (c) 2018 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, -# attached with Common Clause Condition 1.0, found in the LICENSES directory. nebula_add_subdirectory(tests) diff --git a/src/client/Connection.cpp b/src/client/Connection.cpp index f2b5e1a6..e345d07d 100644 --- a/src/client/Connection.cpp +++ b/src/client/Connection.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "nebula/client/Connection.h" diff --git a/src/client/ConnectionPool.cpp b/src/client/ConnectionPool.cpp index f2e66163..7f9f69a2 100644 --- a/src/client/ConnectionPool.cpp +++ b/src/client/ConnectionPool.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "nebula/client/ConnectionPool.h" diff --git a/src/client/Init.cpp b/src/client/Init.cpp index c96f1677..0e7f79f6 100644 --- a/src/client/Init.cpp +++ b/src/client/Init.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include diff --git a/src/client/Session.cpp b/src/client/Session.cpp index f140e932..84398488 100644 --- a/src/client/Session.cpp +++ b/src/client/Session.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "nebula/client/Session.h" diff --git a/src/client/tests/AddressTest.cpp b/src/client/tests/AddressTest.cpp index e021ba69..5f3aebba 100644 --- a/src/client/tests/AddressTest.cpp +++ b/src/client/tests/AddressTest.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include diff --git a/src/client/tests/CMakeLists.txt b/src/client/tests/CMakeLists.txt index 04689641..8e7c39e9 100644 --- a/src/client/tests/CMakeLists.txt +++ b/src/client/tests/CMakeLists.txt @@ -1,7 +1,6 @@ # Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, -# attached with Common Clause Condition 1.0, found in the LICENSES directory. nebula_add_test( NAME diff --git a/src/client/tests/ClientTest.h b/src/client/tests/ClientTest.h index ad891335..6f5272e0 100644 --- a/src/client/tests/ClientTest.h +++ b/src/client/tests/ClientTest.h @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #pragma once diff --git a/src/client/tests/ConfigTest.cpp b/src/client/tests/ConfigTest.cpp index 7bf3f418..72a8f07f 100644 --- a/src/client/tests/ConfigTest.cpp +++ b/src/client/tests/ConfigTest.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include diff --git a/src/client/tests/ConnectionTest.cpp b/src/client/tests/ConnectionTest.cpp index 6b9c8ca8..f078a7d2 100644 --- a/src/client/tests/ConnectionTest.cpp +++ b/src/client/tests/ConnectionTest.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include diff --git a/src/client/tests/SessionTest.cpp b/src/client/tests/SessionTest.cpp index dcbb4869..6b65ed86 100644 --- a/src/client/tests/SessionTest.cpp +++ b/src/client/tests/SessionTest.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include diff --git a/src/client/tests/TimezoneConversionTest.cpp b/src/client/tests/TimezoneConversionTest.cpp index 661c0213..4fc65c1b 100644 --- a/src/client/tests/TimezoneConversionTest.cpp +++ b/src/client/tests/TimezoneConversionTest.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2021 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include diff --git a/src/datatypes/Date.cpp b/src/datatypes/Date.cpp index 0bb1fdb0..28e292c5 100644 --- a/src/datatypes/Date.cpp +++ b/src/datatypes/Date.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "common/datatypes/Date.h" diff --git a/src/datatypes/Edge.cpp b/src/datatypes/Edge.cpp index 95d04aa4..1738ed60 100644 --- a/src/datatypes/Edge.cpp +++ b/src/datatypes/Edge.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include diff --git a/src/datatypes/Geography.cpp b/src/datatypes/Geography.cpp index d788f240..7e59f52a 100644 --- a/src/datatypes/Geography.cpp +++ b/src/datatypes/Geography.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "common/datatypes/Geography.h" diff --git a/src/datatypes/HostAddr.cpp b/src/datatypes/HostAddr.cpp index b1f1e2dc..1bdab1f1 100644 --- a/src/datatypes/HostAddr.cpp +++ b/src/datatypes/HostAddr.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "common/datatypes/HostAddr.h" diff --git a/src/datatypes/List.cpp b/src/datatypes/List.cpp index ca747dee..00cbf6c0 100644 --- a/src/datatypes/List.cpp +++ b/src/datatypes/List.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "common/datatypes/List.h" diff --git a/src/datatypes/Map.cpp b/src/datatypes/Map.cpp index 0aac37a3..bffde98d 100644 --- a/src/datatypes/Map.cpp +++ b/src/datatypes/Map.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "common/datatypes/Map.h" diff --git a/src/datatypes/Path.cpp b/src/datatypes/Path.cpp index 14b3f0c6..cff6c725 100644 --- a/src/datatypes/Path.cpp +++ b/src/datatypes/Path.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "common/datatypes/Path.h" diff --git a/src/datatypes/Set.cpp b/src/datatypes/Set.cpp index c31ffc1d..fa83bb06 100644 --- a/src/datatypes/Set.cpp +++ b/src/datatypes/Set.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "common/datatypes/Set.h" diff --git a/src/datatypes/Value.cpp b/src/datatypes/Value.cpp index 37fee056..15b8548e 100644 --- a/src/datatypes/Value.cpp +++ b/src/datatypes/Value.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "common/datatypes/Value.h" diff --git a/src/datatypes/Vertex.cpp b/src/datatypes/Vertex.cpp index 6db75d84..bae15368 100644 --- a/src/datatypes/Vertex.cpp +++ b/src/datatypes/Vertex.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "common/datatypes/Vertex.h" diff --git a/src/graph/Response.cpp b/src/graph/Response.cpp index 82f3def3..2550b6eb 100644 --- a/src/graph/Response.cpp +++ b/src/graph/Response.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "common/graph/Response.h" diff --git a/src/interface/CMakeLists.txt b/src/interface/CMakeLists.txt index 69564f76..5c56f48d 100644 --- a/src/interface/CMakeLists.txt +++ b/src/interface/CMakeLists.txt @@ -1,7 +1,6 @@ # Copyright (c) 2021 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, -# attached with Common Clause Condition 1.0, found in the LICENSES directory. if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") add_compile_options(-Wno-maybe-uninitialized) diff --git a/src/time/TimeConversion.cpp b/src/time/TimeConversion.cpp index 22cfcec9..9cb612e3 100644 --- a/src/time/TimeConversion.cpp +++ b/src/time/TimeConversion.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2021 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "common/time/TimeConversion.h" diff --git a/third-party/cxx-compiler-abi-version.sh b/third-party/cxx-compiler-abi-version.sh index 15064385..ec846276 100755 --- a/third-party/cxx-compiler-abi-version.sh +++ b/third-party/cxx-compiler-abi-version.sh @@ -3,7 +3,6 @@ # Copyright (c) 2019 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, -# attached with Common Clause Condition 1.0, found in the LICENSES directory. set -e abi="unknown" diff --git a/third-party/install-cmake.sh b/third-party/install-cmake.sh index f9699751..93bce94a 100755 --- a/third-party/install-cmake.sh +++ b/third-party/install-cmake.sh @@ -3,7 +3,6 @@ # Copyright (c) 2019 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, -# attached with Common Clause Condition 1.0, found in the LICENSES directory. # Usage: build-cmake.sh [prefix] diff --git a/third-party/install-gcc.sh b/third-party/install-gcc.sh index 3d6d225d..5eea4784 100755 --- a/third-party/install-gcc.sh +++ b/third-party/install-gcc.sh @@ -3,7 +3,6 @@ # Copyright (c) 2019 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, -# attached with Common Clause Condition 1.0, found in the LICENSES directory. # Usage: install-gcc.sh --prefix=/opt/nebula/toolset diff --git a/third-party/install-third-party.sh b/third-party/install-third-party.sh index 028cc644..9fab9362 100755 --- a/third-party/install-third-party.sh +++ b/third-party/install-third-party.sh @@ -3,7 +3,6 @@ # Copyright (c) 2019 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, -# attached with Common Clause Condition 1.0, found in the LICENSES directory. # Usage: install-third-party.sh --prefix=/opt/vesoft/third-party From fd20ad4a34b7877738d0333686bf697192cf1113 Mon Sep 17 00:00:00 2001 From: Shylock Hg <33566796+Shylock-Hg@users.noreply.github.com> Date: Wed, 3 Nov 2021 17:30:04 +0800 Subject: [PATCH 02/10] Fix comma. --- .clang-format | 2 +- .linters/cpp/hooks/pre-commit.sh | 2 +- CMakeLists.txt | 2 +- cmake/CPackage.cmake | 2 +- cmake/FetchModule.cmake | 2 +- cmake/nebula/ConfigNebulaClient.cmake | 2 +- examples/CMakeLists.txt | 2 +- examples/SessionExample.cpp | 2 +- include/common/datatypes/CommonCpp2Ops.h | 2 +- include/common/datatypes/DataSet.h | 2 +- include/common/datatypes/DataSetOps-inl.h | 2 +- include/common/datatypes/Date.h | 2 +- include/common/datatypes/DateOps-inl.h | 2 +- include/common/datatypes/Edge.h | 2 +- include/common/datatypes/EdgeOps-inl.h | 2 +- include/common/datatypes/Geography.h | 2 +- include/common/datatypes/GeographyOps-inl.h | 2 +- include/common/datatypes/HostAddr.h | 2 +- include/common/datatypes/HostAddrOps-inl.h | 2 +- include/common/datatypes/KeyValue.h | 2 +- include/common/datatypes/KeyValueOps-inl.h | 2 +- include/common/datatypes/List.h | 2 +- include/common/datatypes/ListOps-inl.h | 2 +- include/common/datatypes/Map.h | 2 +- include/common/datatypes/MapOps-inl.h | 2 +- include/common/datatypes/Path.h | 2 +- include/common/datatypes/PathOps-inl.h | 2 +- include/common/datatypes/Set.h | 2 +- include/common/datatypes/SetOps-inl.h | 2 +- include/common/datatypes/Value.h | 2 +- include/common/datatypes/ValueOps-inl.h | 2 +- include/common/datatypes/Vertex.h | 2 +- include/common/datatypes/VertexOps-inl.h | 2 +- include/common/graph/AuthResponseOps-inl.h | 2 +- include/common/graph/ExecutionResponseOps-inl.h | 2 +- include/common/graph/GraphCpp2Ops.h | 2 +- include/common/graph/PairOps-inl.h | 2 +- include/common/graph/PlanDescriptionOps-inl.h | 2 +- include/common/graph/PlanNodeBranchInfoOps-inl.h | 2 +- include/common/graph/PlanNodeDescriptionOps-inl.h | 2 +- include/common/graph/ProfilingStatsOps-inl.h | 2 +- include/common/graph/Response.h | 2 +- include/common/thrift/ThriftCpp2OpsHelper.h | 2 +- include/common/thrift/ThriftTypes.h | 2 +- include/common/time/TimeConversion.h | 2 +- include/common/utils/utils.h | 2 +- include/nebula/client/Config.h | 2 +- include/nebula/client/Connection.h | 2 +- include/nebula/client/ConnectionPool.h | 2 +- include/nebula/client/Init.h | 2 +- include/nebula/client/Session.h | 2 +- package/package.sh | 2 +- src/CMakeLists.txt | 2 +- src/client/CMakeLists.txt | 2 +- src/client/Connection.cpp | 2 +- src/client/ConnectionPool.cpp | 2 +- src/client/Init.cpp | 2 +- src/client/Session.cpp | 2 +- src/client/tests/AddressTest.cpp | 2 +- src/client/tests/CMakeLists.txt | 2 +- src/client/tests/ClientTest.h | 2 +- src/client/tests/ConfigTest.cpp | 2 +- src/client/tests/ConnectionTest.cpp | 2 +- src/client/tests/SessionTest.cpp | 2 +- src/client/tests/TimezoneConversionTest.cpp | 2 +- src/datatypes/Date.cpp | 2 +- src/datatypes/Edge.cpp | 2 +- src/datatypes/Geography.cpp | 2 +- src/datatypes/HostAddr.cpp | 2 +- src/datatypes/List.cpp | 2 +- src/datatypes/Map.cpp | 2 +- src/datatypes/Path.cpp | 2 +- src/datatypes/Set.cpp | 2 +- src/datatypes/Value.cpp | 2 +- src/datatypes/Vertex.cpp | 2 +- src/graph/Response.cpp | 2 +- src/interface/CMakeLists.txt | 2 +- src/time/TimeConversion.cpp | 2 +- third-party/cxx-compiler-abi-version.sh | 2 +- third-party/install-cmake.sh | 2 +- third-party/install-gcc.sh | 2 +- third-party/install-third-party.sh | 2 +- 82 files changed, 82 insertions(+), 82 deletions(-) diff --git a/.clang-format b/.clang-format index fade07d5..1f43cf47 100644 --- a/.clang-format +++ b/.clang-format @@ -1,6 +1,6 @@ # Copyright (c) 2020 vesoft inc. All rights reserved. # -# This source code is licensed under Apache 2.0 License, +# This source code is licensed under Apache 2.0 License. # # This is the output of clang-format-10.0.0 --style=google --dump-config, # except for changes mentioned below. diff --git a/.linters/cpp/hooks/pre-commit.sh b/.linters/cpp/hooks/pre-commit.sh index 1b850e76..75543489 100755 --- a/.linters/cpp/hooks/pre-commit.sh +++ b/.linters/cpp/hooks/pre-commit.sh @@ -2,7 +2,7 @@ # Copyright (c) 2018 vesoft inc. All rights reserved. # -# This source code is licensed under Apache 2.0 License, +# This source code is licensed under Apache 2.0 License. CPPLINT=`dirname $0`/../../.linters/cpp/cpplint.py diff --git a/CMakeLists.txt b/CMakeLists.txt index 31ff468b..551f8b92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ # Copyright (c) 2020 vesoft inc. All rights reserved. # -# This source code is licensed under Apache 2.0 License, +# This source code is licensed under Apache 2.0 License. # # The build can be controlled by defining following variables on the # command line diff --git a/cmake/CPackage.cmake b/cmake/CPackage.cmake index 58270bb0..d45823b8 100644 --- a/cmake/CPackage.cmake +++ b/cmake/CPackage.cmake @@ -1,6 +1,6 @@ # Copyright (c) 2020 vesoft inc. All rights reserved. # -# This source code is licensed under Apache 2.0 License, +# This source code is licensed under Apache 2.0 License. # diff --git a/cmake/FetchModule.cmake b/cmake/FetchModule.cmake index b4181b7a..b81ebc1e 100644 --- a/cmake/FetchModule.cmake +++ b/cmake/FetchModule.cmake @@ -1,6 +1,6 @@ # Copyright (c) 2020 vesoft inc. All rights reserved. # -# This source code is licensed under Apache 2.0 License, +# This source code is licensed under Apache 2.0 License. # find_package(Git) diff --git a/cmake/nebula/ConfigNebulaClient.cmake b/cmake/nebula/ConfigNebulaClient.cmake index 38dc7eab..79f746a1 100644 --- a/cmake/nebula/ConfigNebulaClient.cmake +++ b/cmake/nebula/ConfigNebulaClient.cmake @@ -1,6 +1,6 @@ # Copyright (c) 2020 vesoft inc. All rights reserved. # -# This source code is licensed under Apache 2.0 License, +# This source code is licensed under Apache 2.0 License. # macro(config_nebula_client) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 3e92520b..781ba36e 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,6 +1,6 @@ # Copyright (c) 2020 vesoft inc. All rights reserved. # -# This source code is licensed under Apache 2.0 License, +# This source code is licensed under Apache 2.0 License. # # Set the project name diff --git a/examples/SessionExample.cpp b/examples/SessionExample.cpp index c19e941a..23fb4f3e 100644 --- a/examples/SessionExample.cpp +++ b/examples/SessionExample.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include diff --git a/include/common/datatypes/CommonCpp2Ops.h b/include/common/datatypes/CommonCpp2Ops.h index f59467eb..85fcda7c 100644 --- a/include/common/datatypes/CommonCpp2Ops.h +++ b/include/common/datatypes/CommonCpp2Ops.h @@ -1,6 +1,6 @@ /* Copyright (c) 2021 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/DataSet.h b/include/common/datatypes/DataSet.h index 90a75763..b0858d4e 100644 --- a/include/common/datatypes/DataSet.h +++ b/include/common/datatypes/DataSet.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/DataSetOps-inl.h b/include/common/datatypes/DataSetOps-inl.h index 55b0e4fb..4ac4dd7e 100644 --- a/include/common/datatypes/DataSetOps-inl.h +++ b/include/common/datatypes/DataSetOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/Date.h b/include/common/datatypes/Date.h index ab63cb39..0dbabc3b 100644 --- a/include/common/datatypes/Date.h +++ b/include/common/datatypes/Date.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/DateOps-inl.h b/include/common/datatypes/DateOps-inl.h index 2e94df41..ea11d6e3 100644 --- a/include/common/datatypes/DateOps-inl.h +++ b/include/common/datatypes/DateOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/Edge.h b/include/common/datatypes/Edge.h index 9184c843..5f1593a3 100644 --- a/include/common/datatypes/Edge.h +++ b/include/common/datatypes/Edge.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/EdgeOps-inl.h b/include/common/datatypes/EdgeOps-inl.h index d41d7ab6..6de2bec6 100644 --- a/include/common/datatypes/EdgeOps-inl.h +++ b/include/common/datatypes/EdgeOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * obj source code is licensed under Apache 2.0 License, + * obj source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/Geography.h b/include/common/datatypes/Geography.h index 51d845f6..d4eb364d 100644 --- a/include/common/datatypes/Geography.h +++ b/include/common/datatypes/Geography.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/GeographyOps-inl.h b/include/common/datatypes/GeographyOps-inl.h index 82e5369c..b46c5910 100644 --- a/include/common/datatypes/GeographyOps-inl.h +++ b/include/common/datatypes/GeographyOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/HostAddr.h b/include/common/datatypes/HostAddr.h index 3a245a3f..c21c654e 100644 --- a/include/common/datatypes/HostAddr.h +++ b/include/common/datatypes/HostAddr.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/HostAddrOps-inl.h b/include/common/datatypes/HostAddrOps-inl.h index b9b72e91..b8bc37bf 100644 --- a/include/common/datatypes/HostAddrOps-inl.h +++ b/include/common/datatypes/HostAddrOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * obj source code is licensed under Apache 2.0 License, + * obj source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/KeyValue.h b/include/common/datatypes/KeyValue.h index 3e3a4c80..2ed03cd6 100644 --- a/include/common/datatypes/KeyValue.h +++ b/include/common/datatypes/KeyValue.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/KeyValueOps-inl.h b/include/common/datatypes/KeyValueOps-inl.h index 66aaa7e3..d350b0e7 100644 --- a/include/common/datatypes/KeyValueOps-inl.h +++ b/include/common/datatypes/KeyValueOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/List.h b/include/common/datatypes/List.h index 61a1ecf7..06fbbed3 100644 --- a/include/common/datatypes/List.h +++ b/include/common/datatypes/List.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/ListOps-inl.h b/include/common/datatypes/ListOps-inl.h index 67a7cf1d..607de5ed 100644 --- a/include/common/datatypes/ListOps-inl.h +++ b/include/common/datatypes/ListOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/Map.h b/include/common/datatypes/Map.h index 6558a338..f0626e18 100644 --- a/include/common/datatypes/Map.h +++ b/include/common/datatypes/Map.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/MapOps-inl.h b/include/common/datatypes/MapOps-inl.h index 55f47fe1..b61989f4 100644 --- a/include/common/datatypes/MapOps-inl.h +++ b/include/common/datatypes/MapOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/Path.h b/include/common/datatypes/Path.h index ccd57dc6..f71391b9 100644 --- a/include/common/datatypes/Path.h +++ b/include/common/datatypes/Path.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/PathOps-inl.h b/include/common/datatypes/PathOps-inl.h index 6e8df875..3c9b5cb0 100644 --- a/include/common/datatypes/PathOps-inl.h +++ b/include/common/datatypes/PathOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * obj source code is licensed under Apache 2.0 License, + * obj source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/Set.h b/include/common/datatypes/Set.h index 66f9daa1..3f6308bb 100644 --- a/include/common/datatypes/Set.h +++ b/include/common/datatypes/Set.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/SetOps-inl.h b/include/common/datatypes/SetOps-inl.h index 558fc6fb..bafe2cce 100644 --- a/include/common/datatypes/SetOps-inl.h +++ b/include/common/datatypes/SetOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/Value.h b/include/common/datatypes/Value.h index 3784695a..74451f28 100644 --- a/include/common/datatypes/Value.h +++ b/include/common/datatypes/Value.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/ValueOps-inl.h b/include/common/datatypes/ValueOps-inl.h index 87a62836..d2104e40 100644 --- a/include/common/datatypes/ValueOps-inl.h +++ b/include/common/datatypes/ValueOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * obj source code is licensed under Apache 2.0 License, + * obj source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/Vertex.h b/include/common/datatypes/Vertex.h index 753b1ab9..5d3eac49 100644 --- a/include/common/datatypes/Vertex.h +++ b/include/common/datatypes/Vertex.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/VertexOps-inl.h b/include/common/datatypes/VertexOps-inl.h index 23751187..3a55de14 100644 --- a/include/common/datatypes/VertexOps-inl.h +++ b/include/common/datatypes/VertexOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/graph/AuthResponseOps-inl.h b/include/common/graph/AuthResponseOps-inl.h index eb507a8b..0af3eeb4 100644 --- a/include/common/graph/AuthResponseOps-inl.h +++ b/include/common/graph/AuthResponseOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/graph/ExecutionResponseOps-inl.h b/include/common/graph/ExecutionResponseOps-inl.h index a168e92e..fba00e17 100644 --- a/include/common/graph/ExecutionResponseOps-inl.h +++ b/include/common/graph/ExecutionResponseOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/graph/GraphCpp2Ops.h b/include/common/graph/GraphCpp2Ops.h index 71391d27..2f57eea8 100644 --- a/include/common/graph/GraphCpp2Ops.h +++ b/include/common/graph/GraphCpp2Ops.h @@ -1,6 +1,6 @@ /* Copyright (c) 2021 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/graph/PairOps-inl.h b/include/common/graph/PairOps-inl.h index afb63149..e869edee 100644 --- a/include/common/graph/PairOps-inl.h +++ b/include/common/graph/PairOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/graph/PlanDescriptionOps-inl.h b/include/common/graph/PlanDescriptionOps-inl.h index 32d67fa2..76e503e0 100644 --- a/include/common/graph/PlanDescriptionOps-inl.h +++ b/include/common/graph/PlanDescriptionOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/graph/PlanNodeBranchInfoOps-inl.h b/include/common/graph/PlanNodeBranchInfoOps-inl.h index ab5551e3..82921deb 100644 --- a/include/common/graph/PlanNodeBranchInfoOps-inl.h +++ b/include/common/graph/PlanNodeBranchInfoOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/graph/PlanNodeDescriptionOps-inl.h b/include/common/graph/PlanNodeDescriptionOps-inl.h index d86964aa..8b5b8e85 100644 --- a/include/common/graph/PlanNodeDescriptionOps-inl.h +++ b/include/common/graph/PlanNodeDescriptionOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/graph/ProfilingStatsOps-inl.h b/include/common/graph/ProfilingStatsOps-inl.h index cf38d712..b8eee14e 100644 --- a/include/common/graph/ProfilingStatsOps-inl.h +++ b/include/common/graph/ProfilingStatsOps-inl.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/graph/Response.h b/include/common/graph/Response.h index db5ca441..fdb9eaa5 100644 --- a/include/common/graph/Response.h +++ b/include/common/graph/Response.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/thrift/ThriftCpp2OpsHelper.h b/include/common/thrift/ThriftCpp2OpsHelper.h index 0ba026b8..33f3c96a 100644 --- a/include/common/thrift/ThriftCpp2OpsHelper.h +++ b/include/common/thrift/ThriftCpp2OpsHelper.h @@ -1,6 +1,6 @@ /* Copyright (c) 2021 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #ifndef COMMON_THRIFT_THRIFTCPP2OPS_HELPER_H_ diff --git a/include/common/thrift/ThriftTypes.h b/include/common/thrift/ThriftTypes.h index 2e12fc73..69ec2cff 100644 --- a/include/common/thrift/ThriftTypes.h +++ b/include/common/thrift/ThriftTypes.h @@ -1,6 +1,6 @@ /* Copyright (c) 2018 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/time/TimeConversion.h b/include/common/time/TimeConversion.h index 55c9d2a8..bea807c0 100644 --- a/include/common/time/TimeConversion.h +++ b/include/common/time/TimeConversion.h @@ -1,6 +1,6 @@ /* Copyright (c) 2021 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/utils/utils.h b/include/common/utils/utils.h index f8c6212e..3f211103 100644 --- a/include/common/utils/utils.h +++ b/include/common/utils/utils.h @@ -1,6 +1,6 @@ /* Copyright (c) 2021 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/nebula/client/Config.h b/include/nebula/client/Config.h index 0d01d35b..b78a8321 100644 --- a/include/nebula/client/Config.h +++ b/include/nebula/client/Config.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/nebula/client/Connection.h b/include/nebula/client/Connection.h index fc58d929..77c9e696 100644 --- a/include/nebula/client/Connection.h +++ b/include/nebula/client/Connection.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/nebula/client/ConnectionPool.h b/include/nebula/client/ConnectionPool.h index 1d4ad167..73023f78 100644 --- a/include/nebula/client/ConnectionPool.h +++ b/include/nebula/client/ConnectionPool.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/nebula/client/Init.h b/include/nebula/client/Init.h index ce314e36..62552e7e 100644 --- a/include/nebula/client/Init.h +++ b/include/nebula/client/Init.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/nebula/client/Session.h b/include/nebula/client/Session.h index 2e71582a..b5394c3f 100644 --- a/include/nebula/client/Session.h +++ b/include/nebula/client/Session.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/package/package.sh b/package/package.sh index 465ddcd8..0b4d6a2f 100755 --- a/package/package.sh +++ b/package/package.sh @@ -2,7 +2,7 @@ # # Copyright (c) 2020 vesoft inc. All rights reserved. # -# This source code is licensed under Apache 2.0 License, +# This source code is licensed under Apache 2.0 License. # # Package nebula as deb/rpm package diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ebb600eb..3912578d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,6 +1,6 @@ # Copyright (c) 2020 vesoft inc. All rights reserved. # -# This source code is licensed under Apache 2.0 License, +# This source code is licensed under Apache 2.0 License. set(NEBULA_CLIENT_OBJS $ diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index de225c4e..3e4e755a 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -1,5 +1,5 @@ # Copyright (c) 2018 vesoft inc. All rights reserved. # -# This source code is licensed under Apache 2.0 License, +# This source code is licensed under Apache 2.0 License. nebula_add_subdirectory(tests) diff --git a/src/client/Connection.cpp b/src/client/Connection.cpp index e345d07d..5a5409e7 100644 --- a/src/client/Connection.cpp +++ b/src/client/Connection.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include "nebula/client/Connection.h" diff --git a/src/client/ConnectionPool.cpp b/src/client/ConnectionPool.cpp index 7f9f69a2..3e926399 100644 --- a/src/client/ConnectionPool.cpp +++ b/src/client/ConnectionPool.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include "nebula/client/ConnectionPool.h" diff --git a/src/client/Init.cpp b/src/client/Init.cpp index 0e7f79f6..95b4187f 100644 --- a/src/client/Init.cpp +++ b/src/client/Init.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include diff --git a/src/client/Session.cpp b/src/client/Session.cpp index 84398488..c83aafcf 100644 --- a/src/client/Session.cpp +++ b/src/client/Session.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include "nebula/client/Session.h" diff --git a/src/client/tests/AddressTest.cpp b/src/client/tests/AddressTest.cpp index 5f3aebba..d3ed6d13 100644 --- a/src/client/tests/AddressTest.cpp +++ b/src/client/tests/AddressTest.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include diff --git a/src/client/tests/CMakeLists.txt b/src/client/tests/CMakeLists.txt index 8e7c39e9..3c3bebba 100644 --- a/src/client/tests/CMakeLists.txt +++ b/src/client/tests/CMakeLists.txt @@ -1,6 +1,6 @@ # Copyright (c) 2020 vesoft inc. All rights reserved. # -# This source code is licensed under Apache 2.0 License, +# This source code is licensed under Apache 2.0 License. nebula_add_test( NAME diff --git a/src/client/tests/ClientTest.h b/src/client/tests/ClientTest.h index 6f5272e0..3f0f13b9 100644 --- a/src/client/tests/ClientTest.h +++ b/src/client/tests/ClientTest.h @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/src/client/tests/ConfigTest.cpp b/src/client/tests/ConfigTest.cpp index 72a8f07f..dbb98dca 100644 --- a/src/client/tests/ConfigTest.cpp +++ b/src/client/tests/ConfigTest.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include diff --git a/src/client/tests/ConnectionTest.cpp b/src/client/tests/ConnectionTest.cpp index f078a7d2..1fc1998a 100644 --- a/src/client/tests/ConnectionTest.cpp +++ b/src/client/tests/ConnectionTest.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include diff --git a/src/client/tests/SessionTest.cpp b/src/client/tests/SessionTest.cpp index 6b65ed86..42e418d8 100644 --- a/src/client/tests/SessionTest.cpp +++ b/src/client/tests/SessionTest.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include diff --git a/src/client/tests/TimezoneConversionTest.cpp b/src/client/tests/TimezoneConversionTest.cpp index 4fc65c1b..8acf041c 100644 --- a/src/client/tests/TimezoneConversionTest.cpp +++ b/src/client/tests/TimezoneConversionTest.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2021 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include diff --git a/src/datatypes/Date.cpp b/src/datatypes/Date.cpp index 28e292c5..6252588e 100644 --- a/src/datatypes/Date.cpp +++ b/src/datatypes/Date.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include "common/datatypes/Date.h" diff --git a/src/datatypes/Edge.cpp b/src/datatypes/Edge.cpp index 1738ed60..dbd957d0 100644 --- a/src/datatypes/Edge.cpp +++ b/src/datatypes/Edge.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include diff --git a/src/datatypes/Geography.cpp b/src/datatypes/Geography.cpp index 7e59f52a..4bbe2f73 100644 --- a/src/datatypes/Geography.cpp +++ b/src/datatypes/Geography.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include "common/datatypes/Geography.h" diff --git a/src/datatypes/HostAddr.cpp b/src/datatypes/HostAddr.cpp index 1bdab1f1..6d83e109 100644 --- a/src/datatypes/HostAddr.cpp +++ b/src/datatypes/HostAddr.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include "common/datatypes/HostAddr.h" diff --git a/src/datatypes/List.cpp b/src/datatypes/List.cpp index 00cbf6c0..2013e965 100644 --- a/src/datatypes/List.cpp +++ b/src/datatypes/List.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include "common/datatypes/List.h" diff --git a/src/datatypes/Map.cpp b/src/datatypes/Map.cpp index bffde98d..f65c9ed3 100644 --- a/src/datatypes/Map.cpp +++ b/src/datatypes/Map.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include "common/datatypes/Map.h" diff --git a/src/datatypes/Path.cpp b/src/datatypes/Path.cpp index cff6c725..b752239e 100644 --- a/src/datatypes/Path.cpp +++ b/src/datatypes/Path.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include "common/datatypes/Path.h" diff --git a/src/datatypes/Set.cpp b/src/datatypes/Set.cpp index fa83bb06..50dd956c 100644 --- a/src/datatypes/Set.cpp +++ b/src/datatypes/Set.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include "common/datatypes/Set.h" diff --git a/src/datatypes/Value.cpp b/src/datatypes/Value.cpp index 15b8548e..abff294b 100644 --- a/src/datatypes/Value.cpp +++ b/src/datatypes/Value.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include "common/datatypes/Value.h" diff --git a/src/datatypes/Vertex.cpp b/src/datatypes/Vertex.cpp index bae15368..65a63a19 100644 --- a/src/datatypes/Vertex.cpp +++ b/src/datatypes/Vertex.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include "common/datatypes/Vertex.h" diff --git a/src/graph/Response.cpp b/src/graph/Response.cpp index 2550b6eb..5be55982 100644 --- a/src/graph/Response.cpp +++ b/src/graph/Response.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2020 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include "common/graph/Response.h" diff --git a/src/interface/CMakeLists.txt b/src/interface/CMakeLists.txt index 5c56f48d..9d63f79e 100644 --- a/src/interface/CMakeLists.txt +++ b/src/interface/CMakeLists.txt @@ -1,6 +1,6 @@ # Copyright (c) 2021 vesoft inc. All rights reserved. # -# This source code is licensed under Apache 2.0 License, +# This source code is licensed under Apache 2.0 License. if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") add_compile_options(-Wno-maybe-uninitialized) diff --git a/src/time/TimeConversion.cpp b/src/time/TimeConversion.cpp index 9cb612e3..77050303 100644 --- a/src/time/TimeConversion.cpp +++ b/src/time/TimeConversion.cpp @@ -1,6 +1,6 @@ /* Copyright (c) 2021 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, + * This source code is licensed under Apache 2.0 License. */ #include "common/time/TimeConversion.h" diff --git a/third-party/cxx-compiler-abi-version.sh b/third-party/cxx-compiler-abi-version.sh index ec846276..ed245036 100755 --- a/third-party/cxx-compiler-abi-version.sh +++ b/third-party/cxx-compiler-abi-version.sh @@ -2,7 +2,7 @@ # Copyright (c) 2019 vesoft inc. All rights reserved. # -# This source code is licensed under Apache 2.0 License, +# This source code is licensed under Apache 2.0 License. set -e abi="unknown" diff --git a/third-party/install-cmake.sh b/third-party/install-cmake.sh index 93bce94a..8f40e44f 100755 --- a/third-party/install-cmake.sh +++ b/third-party/install-cmake.sh @@ -2,7 +2,7 @@ # Copyright (c) 2019 vesoft inc. All rights reserved. # -# This source code is licensed under Apache 2.0 License, +# This source code is licensed under Apache 2.0 License. # Usage: build-cmake.sh [prefix] diff --git a/third-party/install-gcc.sh b/third-party/install-gcc.sh index 5eea4784..5b1e6184 100755 --- a/third-party/install-gcc.sh +++ b/third-party/install-gcc.sh @@ -2,7 +2,7 @@ # Copyright (c) 2019 vesoft inc. All rights reserved. # -# This source code is licensed under Apache 2.0 License, +# This source code is licensed under Apache 2.0 License. # Usage: install-gcc.sh --prefix=/opt/nebula/toolset diff --git a/third-party/install-third-party.sh b/third-party/install-third-party.sh index 9fab9362..8bbac2b6 100755 --- a/third-party/install-third-party.sh +++ b/third-party/install-third-party.sh @@ -2,7 +2,7 @@ # Copyright (c) 2019 vesoft inc. All rights reserved. # -# This source code is licensed under Apache 2.0 License, +# This source code is licensed under Apache 2.0 License. # Usage: install-third-party.sh --prefix=/opt/vesoft/third-party From 58e8ec310c4ca3d06658d2f127dd1c3a959cef59 Mon Sep 17 00:00:00 2001 From: Shylock Hg <33566796+Shylock-Hg@users.noreply.github.com> Date: Tue, 9 Nov 2021 16:38:42 +0800 Subject: [PATCH 03/10] Check license. --- .github/workflows/pull_request.yml | 2 + .licenserc.yaml | 34 +++++ LICENSE | 201 +++++++++++++++++++++++++++++ 3 files changed, 237 insertions(+) create mode 100644 .licenserc.yaml create mode 100644 LICENSE diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index faea651b..8b9578a5 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -23,6 +23,8 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 2 + - name: Check License Header + uses: apache/skywalking-eyes@main - name: Cpplint run: | ln -snf $PWD/.linters/cpp/hooks/pre-commit.sh $PWD/.linters/cpp/pre-commit.sh diff --git a/.licenserc.yaml b/.licenserc.yaml new file mode 100644 index 00000000..4ac4142a --- /dev/null +++ b/.licenserc.yaml @@ -0,0 +1,34 @@ +# +# Copyright (c) 2020 vesoft inc. All rights reserved. +# +# This source code is licensed under Apache 2.0 License. +header: + license: + spdx-id: Apache-2.0 + copyright-owner: vesoft inc + content: | + Copyright (c) 2020 vesoft inc. All rights reserved. + This source code is licensed under Apache 2.0 License. + pattern: | + Copyright (c) \d{4} vesoft inc. All rights reserved. + This source code is licensed under Apache 2.0 License. + paths-ignore: + - '.licenserc.yaml' + - '.clang-tidy' + - '.dockerignore' + - '**/.gitignore' + - 'cmake' + - 'package' + - 'src/**/*.thrift' + - 'src/**/*.lex' + - 'src/**/*.yy' + - 'src/**/*.dict' + - 'src/**/*.in' + - '.github' + - '.linters' + - '**/*.md' + - 'third-party' + - 'LICENSE' + - 'NOTICE' + + comment: on-failure \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + 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. From 7d25cc6232d381461e2e69174bf512dc77126286 Mon Sep 17 00:00:00 2001 From: Shylock Hg <33566796+Shylock-Hg@users.noreply.github.com> Date: Tue, 9 Nov 2021 16:39:41 +0800 Subject: [PATCH 04/10] Fix license header. --- src/client/SSLConfig.cpp | 3 +-- src/client/SSLConfig.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/client/SSLConfig.cpp b/src/client/SSLConfig.cpp index 5801375d..76f3cb39 100644 --- a/src/client/SSLConfig.cpp +++ b/src/client/SSLConfig.cpp @@ -1,7 +1,6 @@ /* Copyright (c) 2021 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. + * This source code is licensed under Apache 2.0 License. */ #include "./SSLConfig.h" diff --git a/src/client/SSLConfig.h b/src/client/SSLConfig.h index 1c4d0b89..18c8834e 100644 --- a/src/client/SSLConfig.h +++ b/src/client/SSLConfig.h @@ -1,7 +1,6 @@ /* Copyright (c) 2021 vesoft inc. All rights reserved. * - * This source code is licensed under Apache 2.0 License, - * attached with Common Clause Condition 1.0, found in the LICENSES directory. + * This source code is licensed under Apache 2.0 License. */ #pragma once From 25652b1dcf8832225c7e76787c5f5e8e6eb62698 Mon Sep 17 00:00:00 2001 From: Shylock Hg <33566796+Shylock-Hg@users.noreply.github.com> Date: Tue, 9 Nov 2021 16:47:28 +0800 Subject: [PATCH 05/10] Fix license checking. --- .licenserc.yaml | 3 +++ date.py | 4 ++++ exported-symbols.map | 6 ++++++ gen-interface.sh | 4 ++++ 4 files changed, 17 insertions(+) diff --git a/.licenserc.yaml b/.licenserc.yaml index 4ac4142a..d0bf47b7 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -30,5 +30,8 @@ header: - 'third-party' - 'LICENSE' - 'NOTICE' + - 'certs' + - 'interface/gen-cpp2' + - '.gitkeep' comment: on-failure \ No newline at end of file diff --git a/date.py b/date.py index b6811856..7cfad76d 100755 --- a/date.py +++ b/date.py @@ -1,4 +1,8 @@ #! /usr/bin/env python3 +# +# Copyright (c) 2021 vesoft inc. All rights reserved. +# +# This source code is licensed under Apache 2.0 License. import datetime import argparse diff --git a/exported-symbols.map b/exported-symbols.map index 644f9ea0..1de7d65a 100644 --- a/exported-symbols.map +++ b/exported-symbols.map @@ -1,3 +1,9 @@ + +/* Copyright (c) 2021 vesoft inc. All rights reserved. + * + * This source code is licensed under Apache 2.0 License. + */ + { global: extern "C++" { diff --git a/gen-interface.sh b/gen-interface.sh index 7cf19500..85eb9d30 100755 --- a/gen-interface.sh +++ b/gen-interface.sh @@ -1,4 +1,8 @@ #! /usr/bin/env bash +# +# Copyright (c) 2021 vesoft inc. All rights reserved. +# +# This source code is licensed under Apache 2.0 License. set -e From 5dd73c2a64783db1f13917a95b207c936dd2f81e Mon Sep 17 00:00:00 2001 From: Shylock Hg <33566796+Shylock-Hg@users.noreply.github.com> Date: Tue, 9 Nov 2021 16:53:25 +0800 Subject: [PATCH 06/10] Fix license checking. --- .licenserc.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.licenserc.yaml b/.licenserc.yaml index d0bf47b7..3fed1268 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -31,7 +31,7 @@ header: - 'LICENSE' - 'NOTICE' - 'certs' - - 'interface/gen-cpp2' + - 'src/interface/gen-cpp2' - '.gitkeep' comment: on-failure \ No newline at end of file From 206f097c9dd8482bac0d439e1880b5e3800612a5 Mon Sep 17 00:00:00 2001 From: Shylock Hg <33566796+Shylock-Hg@users.noreply.github.com> Date: Tue, 9 Nov 2021 17:02:14 +0800 Subject: [PATCH 07/10] Fix license checking. --- include/common/datatypes/EdgeOps-inl.h | 7 +++++-- include/common/datatypes/HostAddrOps-inl.h | 7 +++++-- include/common/datatypes/PathOps-inl.h | 7 +++++-- include/common/datatypes/VertexOps-inl.h | 5 ++++- 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/include/common/datatypes/EdgeOps-inl.h b/include/common/datatypes/EdgeOps-inl.h index 6de2bec6..43b92833 100644 --- a/include/common/datatypes/EdgeOps-inl.h +++ b/include/common/datatypes/EdgeOps-inl.h @@ -1,6 +1,9 @@ -/* Copyright (c) 2020 vesoft inc. All rights reserved. +/* + * + * Copyright (c) 2020 vesoft inc. All rights reserved. + * + * This source code is licensed under Apache 2.0 License. * - * obj source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/HostAddrOps-inl.h b/include/common/datatypes/HostAddrOps-inl.h index b8bc37bf..ee7032b2 100644 --- a/include/common/datatypes/HostAddrOps-inl.h +++ b/include/common/datatypes/HostAddrOps-inl.h @@ -1,6 +1,9 @@ -/* Copyright (c) 2020 vesoft inc. All rights reserved. +/* + * + * Copyright (c) 2020 vesoft inc. All rights reserved. + * + * This source code is licensed under Apache 2.0 License. * - * obj source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/PathOps-inl.h b/include/common/datatypes/PathOps-inl.h index 3c9b5cb0..951bde62 100644 --- a/include/common/datatypes/PathOps-inl.h +++ b/include/common/datatypes/PathOps-inl.h @@ -1,6 +1,9 @@ -/* Copyright (c) 2020 vesoft inc. All rights reserved. +/* + * + * Copyright (c) 2020 vesoft inc. All rights reserved. + * + * This source code is licensed under Apache 2.0 License. * - * obj source code is licensed under Apache 2.0 License. */ #pragma once diff --git a/include/common/datatypes/VertexOps-inl.h b/include/common/datatypes/VertexOps-inl.h index 3a55de14..7acb2c1a 100644 --- a/include/common/datatypes/VertexOps-inl.h +++ b/include/common/datatypes/VertexOps-inl.h @@ -1,6 +1,9 @@ -/* Copyright (c) 2020 vesoft inc. All rights reserved. +/* + * + * Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License. + * */ #pragma once From 7301b1943d91f4305040c3b4702f0cb59b8e4b53 Mon Sep 17 00:00:00 2001 From: Shylock Hg <33566796+Shylock-Hg@users.noreply.github.com> Date: Tue, 9 Nov 2021 17:09:03 +0800 Subject: [PATCH 08/10] Fix license checking. --- include/common/datatypes/VertexOps-inl.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/common/datatypes/VertexOps-inl.h b/include/common/datatypes/VertexOps-inl.h index 7acb2c1a..29fae6bf 100644 --- a/include/common/datatypes/VertexOps-inl.h +++ b/include/common/datatypes/VertexOps-inl.h @@ -1,9 +1,7 @@ /* - * * Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License. - * */ #pragma once From ecf70c9fb9a8f69933dbd774cd27aa3ae79817ed Mon Sep 17 00:00:00 2001 From: Shylock Hg <33566796+Shylock-Hg@users.noreply.github.com> Date: Tue, 9 Nov 2021 17:13:40 +0800 Subject: [PATCH 09/10] Ignore exception. --- .licenserc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.licenserc.yaml b/.licenserc.yaml index 3fed1268..fb4c5bf4 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -33,5 +33,6 @@ header: - 'certs' - 'src/interface/gen-cpp2' - '.gitkeep' + - 'include/common/datatypes/ValueOps-inl.h' comment: on-failure \ No newline at end of file From ce6f32d1ef17f38cd3f55947388b2be5c48b5fab Mon Sep 17 00:00:00 2001 From: Shylock Hg <33566796+Shylock-Hg@users.noreply.github.com> Date: Tue, 9 Nov 2021 17:36:43 +0800 Subject: [PATCH 10/10] Avoid line end. --- .licenserc.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.licenserc.yaml b/.licenserc.yaml index fb4c5bf4..65b2d1df 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -35,4 +35,4 @@ header: - '.gitkeep' - 'include/common/datatypes/ValueOps-inl.h' - comment: on-failure \ No newline at end of file + comment: on-failure