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. */ /*! diff --git a/tests/nightly/apache_rat_license_check/rat-excludes b/tests/nightly/apache_rat_license_check/rat-excludes index aa78f0de8b6b..e4bd5f37eaba 100755 --- a/tests/nightly/apache_rat_license_check/rat-excludes +++ b/tests/nightly/apache_rat_license_check/rat-excludes @@ -76,4 +76,5 @@ searchtools_custom.js theme.conf LICENSE.binary.dependencies cmake/Modules/FindCUDAToolkit.cmake -np_einsum_op-inl.h \ No newline at end of file +image-classification-predict.cc +np_einsum_op-inl.h diff --git a/tools/license_header.py b/tools/license_header.py index 5d1eeacc4a77..654316b8bf17 100755 --- a/tools/license_header.py +++ b/tools/license_header.py @@ -106,6 +106,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