From bb6f46d87dcaa249b98b2a6169e14a3c15c5f506 Mon Sep 17 00:00:00 2001 From: Jeff Wang Date: Tue, 10 Apr 2018 17:30:13 -0700 Subject: [PATCH] Add more license (#383) * Add license to the top of files * Add licenses agreement on the demo files --- demo/keras/keras_mnist_demo.py | 15 +++++++++++++++ demo/mxnet/mxnet_demo.py | 15 +++++++++++++++ demo/paddle/cifar10_image_classification_vgg.py | 15 +++++++++++++++ demo/pytorch/pytorch_cifar10.py | 15 +++++++++++++++ demo/vdl_create_scratch_log | 16 ++++++++++++++++ setup.py | 15 +++++++++++++++ visualdl/__init__.py | 15 +++++++++++++++ visualdl/python/__init__.py | 14 ++++++++++++++ visualdl/python/cache.py | 15 +++++++++++++++ visualdl/python/storage.py | 15 +++++++++++++++ visualdl/python/test_storage.py | 15 +++++++++++++++ visualdl/server/__init__.py | 15 +++++++++++++++ visualdl/server/graph.py | 15 +++++++++++++++ visualdl/server/graph_test.py | 15 +++++++++++++++ visualdl/server/graphviz_graph.py | 15 +++++++++++++++ visualdl/server/lib.py | 15 +++++++++++++++ visualdl/server/lib_test.py | 15 +++++++++++++++ visualdl/server/log.py | 15 +++++++++++++++ visualdl/server/mock/__init__.py | 14 ++++++++++++++ visualdl/server/mock/data.py | 16 ++++++++++++++++ visualdl/server/mock/tags.py | 16 ++++++++++++++++ visualdl/server/setup.py | 15 +++++++++++++++ visualdl/server/storage_mock.py | 15 +++++++++++++++ visualdl/server/visualDL | 15 +++++++++++++++ visualdl/test.py | 15 +++++++++++++++ 25 files changed, 376 insertions(+) diff --git a/demo/keras/keras_mnist_demo.py b/demo/keras/keras_mnist_demo.py index 0a7bd8f8..1397adfe 100644 --- a/demo/keras/keras_mnist_demo.py +++ b/demo/keras/keras_mnist_demo.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 __future__ import print_function import keras from keras.datasets import mnist diff --git a/demo/mxnet/mxnet_demo.py b/demo/mxnet/mxnet_demo.py index b5984713..61d74dad 100644 --- a/demo/mxnet/mxnet_demo.py +++ b/demo/mxnet/mxnet_demo.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 logging import mxnet as mx diff --git a/demo/paddle/cifar10_image_classification_vgg.py b/demo/paddle/cifar10_image_classification_vgg.py index e2102303..412d52ac 100644 --- a/demo/paddle/cifar10_image_classification_vgg.py +++ b/demo/paddle/cifar10_image_classification_vgg.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 __future__ import print_function import sys diff --git a/demo/pytorch/pytorch_cifar10.py b/demo/pytorch/pytorch_cifar10.py index 4915a932..d9d0d365 100644 --- a/demo/pytorch/pytorch_cifar10.py +++ b/demo/pytorch/pytorch_cifar10.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 torch import torchvision import torchvision.transforms as transforms diff --git a/demo/vdl_create_scratch_log b/demo/vdl_create_scratch_log index 373e4f3e..b10e481c 100644 --- a/demo/vdl_create_scratch_log +++ b/demo/vdl_create_scratch_log @@ -1,4 +1,20 @@ #!/user/bin/env python + +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 random diff --git a/setup.py b/setup.py index ccd92df5..8c2d95c6 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 __future__ import absolute_import import os diff --git a/visualdl/__init__.py b/visualdl/__init__.py index 0b55c25f..99333642 100644 --- a/visualdl/__init__.py +++ b/visualdl/__init__.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 __future__ import absolute_import import os diff --git a/visualdl/python/__init__.py b/visualdl/python/__init__.py index e69de29b..eabf5f1e 100644 --- a/visualdl/python/__init__.py +++ b/visualdl/python/__init__.py @@ -0,0 +1,14 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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. +# ======================================================================= diff --git a/visualdl/python/cache.py b/visualdl/python/cache.py index 011b1cde..16bff11f 100644 --- a/visualdl/python/cache.py +++ b/visualdl/python/cache.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 time diff --git a/visualdl/python/storage.py b/visualdl/python/storage.py index 7cfd6445..9e39a22e 100644 --- a/visualdl/python/storage.py +++ b/visualdl/python/storage.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 __future__ import absolute_import from visualdl import core diff --git a/visualdl/python/test_storage.py b/visualdl/python/test_storage.py index e797ede2..339a35e3 100644 --- a/visualdl/python/test_storage.py +++ b/visualdl/python/test_storage.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 __future__ import print_function import pprint import sys diff --git a/visualdl/server/__init__.py b/visualdl/server/__init__.py index 51523817..65a494a1 100644 --- a/visualdl/server/__init__.py +++ b/visualdl/server/__init__.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 __future__ import absolute_import from . import log diff --git a/visualdl/server/graph.py b/visualdl/server/graph.py index 0fa048d9..24f6d9f9 100644 --- a/visualdl/server/graph.py +++ b/visualdl/server/graph.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 __future__ import absolute_import import json import os diff --git a/visualdl/server/graph_test.py b/visualdl/server/graph_test.py index be0792a0..433cc576 100644 --- a/visualdl/server/graph_test.py +++ b/visualdl/server/graph_test.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 __future__ import absolute_import import unittest diff --git a/visualdl/server/graphviz_graph.py b/visualdl/server/graphviz_graph.py index b9bf850d..04e0d794 100644 --- a/visualdl/server/graphviz_graph.py +++ b/visualdl/server/graphviz_graph.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 __future__ import print_function import random import subprocess diff --git a/visualdl/server/lib.py b/visualdl/server/lib.py index 0fb38321..155ebe2e 100644 --- a/visualdl/server/lib.py +++ b/visualdl/server/lib.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 __future__ import absolute_import import re import sys diff --git a/visualdl/server/lib_test.py b/visualdl/server/lib_test.py index 696359f9..7f525d5f 100644 --- a/visualdl/server/lib_test.py +++ b/visualdl/server/lib_test.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 __future__ import print_function import pprint import unittest diff --git a/visualdl/server/log.py b/visualdl/server/log.py index 5199e96e..5ce2f500 100644 --- a/visualdl/server/log.py +++ b/visualdl/server/log.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 logging logger = logging diff --git a/visualdl/server/mock/__init__.py b/visualdl/server/mock/__init__.py index e69de29b..eabf5f1e 100644 --- a/visualdl/server/mock/__init__.py +++ b/visualdl/server/mock/__init__.py @@ -0,0 +1,14 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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. +# ======================================================================= diff --git a/visualdl/server/mock/data.py b/visualdl/server/mock/data.py index 23af7da1..29cb235b 100644 --- a/visualdl/server/mock/data.py +++ b/visualdl/server/mock/data.py @@ -1,3 +1,19 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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. +# ======================================================================= + + def sequence_data(): return [[1465980660.726887, 1, 0.07000000029802322], [1465980660.767164, 2, 0.18000000715255737], diff --git a/visualdl/server/mock/tags.py b/visualdl/server/mock/tags.py index f37de69c..54d017c3 100644 --- a/visualdl/server/mock/tags.py +++ b/visualdl/server/mock/tags.py @@ -1,3 +1,19 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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. +# ======================================================================= + + def data(): return { "test": { diff --git a/visualdl/server/setup.py b/visualdl/server/setup.py index a864d225..0364e726 100644 --- a/visualdl/server/setup.py +++ b/visualdl/server/setup.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 setuptools import setup packages = [ diff --git a/visualdl/server/storage_mock.py b/visualdl/server/storage_mock.py index a2c237a8..43457a9d 100644 --- a/visualdl/server/storage_mock.py +++ b/visualdl/server/storage_mock.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 random import numpy as np diff --git a/visualdl/server/visualDL b/visualdl/server/visualDL index 32a6d5d5..9e931c59 100644 --- a/visualdl/server/visualDL +++ b/visualdl/server/visualDL @@ -1,5 +1,20 @@ #!/user/bin/env python +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 json import os import time diff --git a/visualdl/test.py b/visualdl/test.py index d8aff108..91d55c17 100644 --- a/visualdl/test.py +++ b/visualdl/test.py @@ -1,3 +1,18 @@ +# Copyright (c) 2017 VisualDL Authors. All Rights Reserve. +# +# 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 sys import unittest -- GitLab