Skip to content

Commit

Permalink
[LINT] Remove unnecessary copyright message for files with ASF header (
Browse files Browse the repository at this point in the history
…apache#4409)

* [LINT] Improve the check tool to handle ASF copyright message.

* [LINT] Remove unnecessary copyright message as per ASF requirement.

* Fix codegen hybrid

* [LINT] Broaden license checks to include html, xml

* [LINT] Fix rest of the files

* Fix notice

* [LINT] Improve check file type error message
  • Loading branch information
tqchen authored and Xingyu Zhou committed Nov 26, 2019
1 parent d7ef68f commit 9673154
Show file tree
Hide file tree
Showing 457 changed files with 342 additions and 469 deletions.
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Apache TVM (incubating)
Copyright 2017 and onwards The Apache Software Foundation
Copyright 2019 and onwards The Apache Software Foundation

This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
Expand Down
17 changes: 17 additions & 0 deletions apps/android_deploy/app/src/main/jni/Android.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# 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
#
# 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.

LOCAL_PATH := $(call my-dir)
MY_PATH := $(LOCAL_PATH)

Expand Down
17 changes: 17 additions & 0 deletions apps/android_deploy/app/src/main/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# 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
#
# 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.

ifndef config
ifneq ("$(wildcard ./config.mk)","")
config ?= config.mk
Expand Down
17 changes: 17 additions & 0 deletions apps/android_deploy/app/src/main/jni/make/config.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# 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
#
# 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.

#-------------------------------------------------------------------------------
# Template configuration for compiling
#
Expand Down
17 changes: 17 additions & 0 deletions apps/android_rpc/app/src/main/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# 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
#
# 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.

ifndef config
ifneq ("$(wildcard ./config.mk)","")
config ?= config.mk
Expand Down
1 change: 0 additions & 1 deletion apps/android_rpc/app/src/main/jni/tvm_runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2017 by Contributors
* \file tvm_runtime.h
* \brief Pack all tvm runtime source files
*/
Expand Down
1 change: 0 additions & 1 deletion apps/extension/src/tvm_ext.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@


/*!
* Copyright (c) 2017 by Contributors
* \brief Example package that uses TVM.
* \file tvm_ext.cc
*/
Expand Down
1 change: 0 additions & 1 deletion apps/howto_deploy/cpp_deploy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2017 by Contributors
* \brief Example code on load and run TVM module.s
* \file cpp_deploy.cc
*/
Expand Down
1 change: 0 additions & 1 deletion apps/howto_deploy/python_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# specific language governing permissions and limitations
# under the License.

# Copyright (c) 2017 by Contributors
# brief Example code on load and run TVM module.s
# file python_deploy.py

Expand Down
19 changes: 19 additions & 0 deletions apps/ios_rpc/tvmrpc.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
// !$*UTF8*$!
/*
* 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
*
* 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.
*/

{
archiveVersion = 1;
classes = {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion apps/ios_rpc/tvmrpc/AppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2017 by Contributors
* \file AppDelegate.h
*/

Expand Down
1 change: 0 additions & 1 deletion apps/ios_rpc/tvmrpc/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2017 by Contributors
* \file AppDelegate.mm
*/

Expand Down
17 changes: 17 additions & 0 deletions apps/ios_rpc/tvmrpc/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--- 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 -->

<!--- 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. -->

<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16D30" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
Expand Down
17 changes: 17 additions & 0 deletions apps/ios_rpc/tvmrpc/Info.plist
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--- 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 -->

<!--- 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. -->

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
Expand Down
1 change: 0 additions & 1 deletion apps/ios_rpc/tvmrpc/TVMRuntime.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2017 by Contributors
* \file TVMRuntime.h
*/
#import <Foundation/Foundation.h>
Expand Down
1 change: 0 additions & 1 deletion apps/ios_rpc/tvmrpc/ViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2017 by Contributors
* \file ViewController.h
*/

Expand Down
1 change: 0 additions & 1 deletion apps/ios_rpc/tvmrpc/ViewController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2017 by Contributors
* \file ViewController.mm
*/

Expand Down
1 change: 0 additions & 1 deletion apps/ios_rpc/tvmrpc/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2017 by Contributors
* \file main.m
*/

Expand Down
17 changes: 17 additions & 0 deletions apps/ios_rpc/tvmrpcLauncher/Info.plist
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--- 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 -->

<!--- 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. -->

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
Expand Down
1 change: 0 additions & 1 deletion apps/ios_rpc/tvmrpcLauncher/tvmrpcLauncher.mm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2017 by Contributors
* \brief A hook to launch RPC server via xcodebuild test
* \file tvmrpcLauncher.mm
*/
Expand Down
1 change: 0 additions & 1 deletion golang/sample/complex.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2018 by Contributors
* \brief Sample golang application deployment over tvm.
* \file complex.go
*/
Expand Down
1 change: 0 additions & 1 deletion golang/sample/pack_func_closure_arg.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2018 by Contributors
* \brief Sample golang application to demonstrate go-closure given to a packed function argument.
* \file pack_func_closure_arg.go
*/
Expand Down
1 change: 0 additions & 1 deletion golang/sample/pack_func_closure_return.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2018 by Contributors
* \brief Sample golang application to demonstrate go-closure returned from a callback function.
* \file pack_func_closure_return.go
*/
Expand Down
1 change: 0 additions & 1 deletion golang/sample/pack_func_convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2018 by Contributors
* \brief Sample golang application to demonstrate function conversion to packed function.
* \file pack_func_convert.go
*/
Expand Down
1 change: 0 additions & 1 deletion golang/sample/pack_func_handle_arg.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2018 by Contributors
* \brief Sample golang application to demonstrate converted packed
* function handle passed to another packed function.
* \file pack_func_handle_arg.go
Expand Down
1 change: 0 additions & 1 deletion golang/sample/pack_func_register.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2018 by Contributors
* \brief Sample golang application to demonstrate function register into TVM global functions.
* \file pack_func_register.go
*/
Expand Down
1 change: 0 additions & 1 deletion golang/sample/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2018 by Contributors
* \brief Sample golang application deployment over tvm.
* \file simple.go
*/
Expand Down
1 change: 0 additions & 1 deletion golang/src/array_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2018 by Contributors
* \brief gotvm package
* \file array_test.go
*/
Expand Down
1 change: 0 additions & 1 deletion golang/src/bytearray.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2018 by Contributors
* \brief gotvm package source for TVMByteArray interface.
* \file bytearray.go
*/
Expand Down
1 change: 0 additions & 1 deletion golang/src/bytearray_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2018 by Contributors
* \brief gotvm package
* \file bytearray_test.go
*/
Expand Down
1 change: 0 additions & 1 deletion golang/src/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2018 by Contributors
* \brief gotvm package source for TVMContext interface
* \file context.go
*/
Expand Down
1 change: 0 additions & 1 deletion golang/src/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2018 by Contributors
* \brief gotvm package source for error related API interface.
* \file error.go
*/
Expand Down
1 change: 0 additions & 1 deletion golang/src/error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

/*!
* Copyright (c) 2018 by Contributors
* \brief gotvm package
* \file error_test.go
*/
Expand Down
Loading

0 comments on commit 9673154

Please sign in to comment.