From ad063dbad01df4317e00b47a0e2f9d5126f7d807 Mon Sep 17 00:00:00 2001 From: Lin Date: Sat, 18 Jan 2020 10:46:56 -0800 Subject: [PATCH 1/3] fix cpp predcit license --- .../image-classification-predict.cc | 23 ++++++++----------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/example/image-classification/predict-cpp/image-classification-predict.cc b/example/image-classification/predict-cpp/image-classification-predict.cc index 3c72589399ba..46d091e14242 100644 --- a/example/image-classification/predict-cpp/image-classification-predict.cc +++ b/example/image-classification/predict-cpp/image-classification-predict.cc @@ -1,20 +1,15 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 + * 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 + * 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. + * 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 9680c93dd9e3526b680831ca8cb73f87e53673ff Mon Sep 17 00:00:00 2001 From: Lai Wei Date: Thu, 23 Jan 2020 21:03:34 -0800 Subject: [PATCH 2/3] add white list (#210) --- tests/nightly/apache_rat_license_check/rat-excludes | 1 + tools/license_header.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/tests/nightly/apache_rat_license_check/rat-excludes b/tests/nightly/apache_rat_license_check/rat-excludes index cc0001fd92d7..a7181a510665 100755 --- a/tests/nightly/apache_rat_license_check/rat-excludes +++ b/tests/nightly/apache_rat_license_check/rat-excludes @@ -76,3 +76,4 @@ searchtools_custom.js theme.conf LICENSE.binary.dependencies cmake/Modules/FindCUDAToolkit.cmake +image-classification-predict.cc diff --git a/tools/license_header.py b/tools/license_header.py index 668a74b2817f..fa64d87a4d29 100755 --- a/tools/license_header.py +++ b/tools/license_header.py @@ -105,6 +105,9 @@ # Julia package metadata, generated by Pkg3.jl 'julia/Project.toml', + + # Licensed under Apache 2.0 license + example/image-classification/predict-cpp/image-classification-predict.cc ] # language extensions and the according commment mark From 3bbab84e5fe28fc596d72828fdb6c46d4c6251dd Mon Sep 17 00:00:00 2001 From: Lai Wei Date: Fri, 24 Jan 2020 11:42:18 -0800 Subject: [PATCH 3/3] fix white list (#211) --- tools/license_header.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/license_header.py b/tools/license_header.py index 79ae4ace139d..654316b8bf17 100755 --- a/tools/license_header.py +++ b/tools/license_header.py @@ -108,7 +108,7 @@ 'julia/Project.toml', # Licensed under Apache 2.0 license - example/image-classification/predict-cpp/image-classification-predict.cc + 'example/image-classification/predict-cpp/image-classification-predict.cc' ] # language extensions and the according commment mark