Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Update LICENSE File with subcomponents (#13808)
Browse files Browse the repository at this point in the history
* Update LICENSE File with subcomponents

* Fix JavaScript licenses
  • Loading branch information
zachgk authored and lanking520 committed Jan 10, 2019
1 parent d3bd5e7 commit 55ffe25
Show file tree
Hide file tree
Showing 13 changed files with 418 additions and 273 deletions.
461 changes: 218 additions & 243 deletions LICENSE

Large diffs are not rendered by default.

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

(ns infer.imageclassifier-example
(:require [org.apache.clojure-mxnet.context :as context]
[org.apache.clojure-mxnet.dtype :as dtype]
Expand Down
21 changes: 20 additions & 1 deletion docs/_static/selectlang.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*!
* 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.
*/

function changeLanguage(langSelect, langSelectLabel, rootpath){
langSelect.change(function() {
var lang = langSelect.val();
Expand All @@ -22,4 +41,4 @@ $(document).ready(function () {
langSelectLabel.text($("option:selected").text());

changeLanguage(langSelect, langSelectLabel, getRootPath());
})
})
17 changes: 17 additions & 0 deletions perl-package/AI-MXNet-Gluon-Contrib/META.yml
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.

---
abstract: 'Perl interface to MXNet Gluon Contrib'
author:
Expand Down
17 changes: 17 additions & 0 deletions perl-package/AI-MXNet-Gluon-ModelZoo/META.yml
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.

---
abstract: 'Perl interface to MXNet Gluon ModelZoo'
author:
Expand Down
17 changes: 17 additions & 0 deletions perl-package/AI-MXNet/META.yml
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.

---
abstract: 'Perl interface to MXNet machine learning library'
author:
Expand Down
17 changes: 17 additions & 0 deletions perl-package/AI-MXNetCAPI/META.yml
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.

---
abstract: 'Swig interface to mxnet c api'
author:
Expand Down
17 changes: 17 additions & 0 deletions perl-package/AI-NNVMCAPI/META.yml
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.

---
abstract: 'Swig interface to nnvm c api'
author:
Expand Down
17 changes: 17 additions & 0 deletions readthedocs.yml
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.

formats:
- none
requirements_file: docs/requirements.txt
17 changes: 17 additions & 0 deletions snapcraft.yaml
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.

name: mxnet
version: '1.5.0'
summary: MXNet is a deep learning framework designed for efficiency and flexibility.
Expand Down
15 changes: 2 additions & 13 deletions tests/nightly/apache_rat_license_check/rat-excludes
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@
.*ipynb
.*html
.*json
.*js
.*txt
.*md
3rdparty/*
R-package/*
src/operator/mkl/*
trunk/*
docker/*
docker_multiarch/*
.*\\.m
.*\\.mk
.*\\.R
Dockerfile*
.*svg
.*cfg
.*config
Expand All @@ -27,21 +23,15 @@ build/*
.*\\.t
MANIFEST
Changes
META.yml
.*csv
.*names
CODEOWNERS
prepare_mkl.sh
readthedocs.yml
snap.python
snapcraft.yaml
image-classification-predict.cc
bbox.pyx
cpu_nms.pyx
gpu_nms.pyx
nms_kernel.cu
_mask.pyx
unicodemap_en_baidu.csv
coco.py
base.pyi
special_functions-inl.h
Expand All @@ -50,7 +40,6 @@ im2col.h
pool.h
README.rst
dataset.cPickle
rcnn/*
image-classification/*
rat-excludes
apache-rat-tasks/*
Expand All @@ -59,5 +48,5 @@ deformable_im2col.cuh
deformable_im2col.h
REQUIRE
include/*
*/test/test-symbol.json.ref
*/profiler/test/profile-matmul-20iter.json.ref
.*.iml
.*.json.ref
41 changes: 25 additions & 16 deletions tools/license_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,34 +60,43 @@
_LICENSE_PATTERNS = ['Licensed to the Apache Software Foundation']

# the folders or files that will be ignored
_WHITE_LIST = ['3rdparty',
_WHITE_LIST = [
# Licensed under docker/Dockerfiles/License.md
'docker/Dockerfiles',
'example/image-classification/predict-cpp/image-classification-predict.cc',
'example/rcnn/rcnn/cython/nms_kernel.cu',
'example/rcnn/rcnn/cython/setup.py',
'example/ssd/dataset/pycocotools/coco.py',
'julia/REQUIRE',
'prepare_mkl.sh',
'R-package/',

# Git submodules under different licenses
'3rdparty',

# Code shared with project by author - see file for details
'src/operator/special_functions-inl.h',

# Code generated by scala-package, checked in, and verified
'scala-package/init-native/src/main/native/org_apache_mxnet_init_native_c_api.h',
'scala-package/native/src/main/native/org_apache_mxnet_native_c_api.h',
'src/operator/contrib/ctc_include/',
'src/operator/contrib/nn/deformable_im2col.cuh',
'src/operator/contrib/nn/deformable_im2col.h',

# Licensed under Caffe header
'src/operator/nn/pool.h',
'src/operator/contrib/psroi_pooling-inl.h',
'src/operator/mkl/',
'src/operator/nn/im2col.cuh',
'src/operator/contrib/nn/deformable_im2col.h',
'src/operator/contrib/nn/deformable_im2col.cuh',
'src/operator/nn/im2col.h',
'src/operator/nn/pool.h',
'src/operator/special_functions-inl.h'
'src/operator/nn/im2col.cuh',

# Licenses in headers
'docs/_static/searchtools_custom.js',
'docs/_static/js/clipboard.js',
'docs/_static/js/clipboard.min.js',

# Licensed under 2-Clause BSD in header
'example/ssd/dataset/pycocotools/coco.py',
]

# language extensions and the according commment mark
_LANGS = {'.cc':'*', '.h':'*', '.cu':'*', '.cuh':'*', '.py':'#',
'.pm':'#', '.scala':'*', '.cc':'*', '.sh':'#', '.cmake':'#',
'.java':'*', '.sh':'#', '.cpp':'*', '.hpp':'*', '.c':'*',
'.bat':'rem', '.pl':'#', '.m':'%', '.R':'#', '.mk':'#', '.cfg':'#',
'.t':'#', '.ps1':'#', '.jl':'#'}
'.t':'#', '.ps1':'#', '.jl':'#', '.clj':';;', '.pyx':'#', '.js':'*'}

# Previous license header, which will be removed
_OLD_LICENSE = re.compile('.*Copyright.*by Contributors')
Expand Down
17 changes: 17 additions & 0 deletions tools/pip/MANIFEST.in
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.

include README
include mxnet/COMMIT_HASH
recursive-include mxnet/tools *
Expand Down

0 comments on commit 55ffe25

Please sign in to comment.