From 996c24da53c1d08196f5ea4c4a16ae7abff2779b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=89=BE=E5=84=92?= Date: Thu, 28 Mar 2024 19:33:37 +0800 Subject: [PATCH] fix copy right header --- docs/Makefile | 14 ++++++++++++++ docs/build.sh | 15 +++++++++++++++ docs/update_po.sh | 15 +++++++++++++++ examples/docker-compose.yml | 14 ++++++++++++++ secretflow_serving/ops/graph_version.h | 15 +++++++++++++++ secretflow_serving/ops/tree_utils.h | 15 +++++++++++++++ secretflow_serving/tools/model_view/BUILD.bazel | 14 ++++++++++++++ secretflow_serving/util/test_utils.cc | 15 +++++++++++++++ secretflow_serving/util/test_utils.h | 15 +++++++++++++++ secretflow_serving_lib/api_test.py | 16 ++++++++++++++++ secretflow_serving_lib/attr_pb2.py | 16 ++++++++++++++++ secretflow_serving_lib/bundle_pb2.py | 16 ++++++++++++++++ secretflow_serving_lib/compute_trace_pb2.py | 16 ++++++++++++++++ secretflow_serving_lib/data_type_pb2.py | 16 ++++++++++++++++ secretflow_serving_lib/feature_pb2.py | 16 ++++++++++++++++ secretflow_serving_lib/graph_pb2.py | 16 ++++++++++++++++ secretflow_serving_lib/link_function_pb2.py | 16 ++++++++++++++++ secretflow_serving_lib/op_pb2.py | 16 ++++++++++++++++ 18 files changed, 276 insertions(+) diff --git a/docs/Makefile b/docs/Makefile index 92dd33a..55fa80e 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,3 +1,17 @@ +# Copyright 2024 Ant Group Co., Ltd. +# +# 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. + # Minimal makefile for Sphinx documentation # diff --git a/docs/build.sh b/docs/build.sh index 1eaa6f1..c63f902 100755 --- a/docs/build.sh +++ b/docs/build.sh @@ -1,4 +1,19 @@ #!/bin/bash +# +# Copyright 2024 Ant Group Co., Ltd. +# +# 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. +# usage() { echo "Usage: $0 [-l ]" 1>&2; exit 1; } diff --git a/docs/update_po.sh b/docs/update_po.sh index 904f424..53b590b 100755 --- a/docs/update_po.sh +++ b/docs/update_po.sh @@ -1,4 +1,19 @@ #!/bin/bash +# +# Copyright 2024 Ant Group Co., Ltd. +# +# 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. +# mkdir -p _build/gettext && make gettext && sphinx-intl update -p _build/gettext -l zh_CN && diff --git a/examples/docker-compose.yml b/examples/docker-compose.yml index 7d70161..b83be00 100644 --- a/examples/docker-compose.yml +++ b/examples/docker-compose.yml @@ -1,3 +1,17 @@ +# Copyright 2024 Ant Group Co., Ltd. +# +# 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. + version: '3.8' services: serving_alice: diff --git a/secretflow_serving/ops/graph_version.h b/secretflow_serving/ops/graph_version.h index 2b4252d..404d435 100644 --- a/secretflow_serving/ops/graph_version.h +++ b/secretflow_serving/ops/graph_version.h @@ -1,3 +1,18 @@ +// Copyright 2024 Ant Group Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + #pragma once // Version upgrade when `GraphDef` changed. diff --git a/secretflow_serving/ops/tree_utils.h b/secretflow_serving/ops/tree_utils.h index 96da9e2..7fb1c1f 100644 --- a/secretflow_serving/ops/tree_utils.h +++ b/secretflow_serving/ops/tree_utils.h @@ -1,3 +1,18 @@ +// Copyright 2024 Ant Group Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + #pragma once #include diff --git a/secretflow_serving/tools/model_view/BUILD.bazel b/secretflow_serving/tools/model_view/BUILD.bazel index 77c4b2d..3b8d485 100644 --- a/secretflow_serving/tools/model_view/BUILD.bazel +++ b/secretflow_serving/tools/model_view/BUILD.bazel @@ -1,3 +1,17 @@ +# Copyright 2024 Ant Group Co., Ltd. +# +# 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. + load("//bazel:serving.bzl", "serving_cc_binary") package(default_visibility = ["//visibility:public"]) diff --git a/secretflow_serving/util/test_utils.cc b/secretflow_serving/util/test_utils.cc index 650bf5a..b365d00 100644 --- a/secretflow_serving/util/test_utils.cc +++ b/secretflow_serving/util/test_utils.cc @@ -1,3 +1,18 @@ +// Copyright 2024 Ant Group Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + #include "secretflow_serving/util/test_utils.h" #include diff --git a/secretflow_serving/util/test_utils.h b/secretflow_serving/util/test_utils.h index 689fc51..ee50fd9 100644 --- a/secretflow_serving/util/test_utils.h +++ b/secretflow_serving/util/test_utils.h @@ -1,3 +1,18 @@ +// Copyright 2024 Ant Group Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + #pragma once #include "arrow/api.h" diff --git a/secretflow_serving_lib/api_test.py b/secretflow_serving_lib/api_test.py index 828d1d6..33ccd78 100644 --- a/secretflow_serving_lib/api_test.py +++ b/secretflow_serving_lib/api_test.py @@ -1,3 +1,19 @@ + +# Copyright 2024 Ant Group Co., Ltd. +# +# 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. + + import os import sys diff --git a/secretflow_serving_lib/attr_pb2.py b/secretflow_serving_lib/attr_pb2.py index 790051b..fac355c 100755 --- a/secretflow_serving_lib/attr_pb2.py +++ b/secretflow_serving_lib/attr_pb2.py @@ -1 +1,17 @@ + +# Copyright 2024 Ant Group Co., Ltd. +# +# 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 secretflow_serving.protos.attr_pb2 import * diff --git a/secretflow_serving_lib/bundle_pb2.py b/secretflow_serving_lib/bundle_pb2.py index ced30c9..2dafad5 100755 --- a/secretflow_serving_lib/bundle_pb2.py +++ b/secretflow_serving_lib/bundle_pb2.py @@ -1 +1,17 @@ + +# Copyright 2024 Ant Group Co., Ltd. +# +# 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 secretflow_serving.protos.bundle_pb2 import * diff --git a/secretflow_serving_lib/compute_trace_pb2.py b/secretflow_serving_lib/compute_trace_pb2.py index a6f3ef6..857e99b 100644 --- a/secretflow_serving_lib/compute_trace_pb2.py +++ b/secretflow_serving_lib/compute_trace_pb2.py @@ -1 +1,17 @@ + +# Copyright 2024 Ant Group Co., Ltd. +# +# 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 secretflow_serving.protos.compute_trace_pb2 import * diff --git a/secretflow_serving_lib/data_type_pb2.py b/secretflow_serving_lib/data_type_pb2.py index d52ba41..a3cb447 100755 --- a/secretflow_serving_lib/data_type_pb2.py +++ b/secretflow_serving_lib/data_type_pb2.py @@ -1 +1,17 @@ + +# Copyright 2024 Ant Group Co., Ltd. +# +# 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 secretflow_serving.protos.data_type_pb2 import * diff --git a/secretflow_serving_lib/feature_pb2.py b/secretflow_serving_lib/feature_pb2.py index bb973cd..87610f8 100755 --- a/secretflow_serving_lib/feature_pb2.py +++ b/secretflow_serving_lib/feature_pb2.py @@ -1 +1,17 @@ + +# Copyright 2024 Ant Group Co., Ltd. +# +# 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 secretflow_serving.protos.feature_pb2 import * diff --git a/secretflow_serving_lib/graph_pb2.py b/secretflow_serving_lib/graph_pb2.py index 9289116..6c009a8 100755 --- a/secretflow_serving_lib/graph_pb2.py +++ b/secretflow_serving_lib/graph_pb2.py @@ -1 +1,17 @@ + +# Copyright 2024 Ant Group Co., Ltd. +# +# 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 secretflow_serving.protos.graph_pb2 import * diff --git a/secretflow_serving_lib/link_function_pb2.py b/secretflow_serving_lib/link_function_pb2.py index d28c66b..dc8b92d 100644 --- a/secretflow_serving_lib/link_function_pb2.py +++ b/secretflow_serving_lib/link_function_pb2.py @@ -1 +1,17 @@ + +# Copyright 2024 Ant Group Co., Ltd. +# +# 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 secretflow_serving.protos.link_function_pb2 import * diff --git a/secretflow_serving_lib/op_pb2.py b/secretflow_serving_lib/op_pb2.py index 4123451..66dd051 100644 --- a/secretflow_serving_lib/op_pb2.py +++ b/secretflow_serving_lib/op_pb2.py @@ -1 +1,17 @@ + +# Copyright 2024 Ant Group Co., Ltd. +# +# 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 secretflow_serving.protos.op_pb2 import *