You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by fg...@apache.org on 2018/01/17 19:08:56 UTC
[18/20] incubator-sdap-nexus git commit: added apache license header
to all py files
http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/d31b33f3/analysis/webservice/algorithms_spark/__init__.py
----------------------------------------------------------------------
diff --git a/analysis/webservice/algorithms_spark/__init__.py b/analysis/webservice/algorithms_spark/__init__.py
index 3b07116..c8e7705 100644
--- a/analysis/webservice/algorithms_spark/__init__.py
+++ b/analysis/webservice/algorithms_spark/__init__.py
@@ -1,3 +1,17 @@
+# 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.
"""
Copyright (c) 2016 Jet Propulsion Laboratory,
California Institute of Technology. All rights reserved
http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/d31b33f3/analysis/webservice/matserver.py
----------------------------------------------------------------------
diff --git a/analysis/webservice/matserver.py b/analysis/webservice/matserver.py
index 43b7e43..4507009 100644
--- a/analysis/webservice/matserver.py
+++ b/analysis/webservice/matserver.py
@@ -1,3 +1,17 @@
+# 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.
"""
Copyright (c) 2016 Jet Propulsion Laboratory,
California Institute of Technology. All rights reserved
http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/d31b33f3/analysis/webservice/plotting.py
----------------------------------------------------------------------
diff --git a/analysis/webservice/plotting.py b/analysis/webservice/plotting.py
index 041c597..b2b776d 100644
--- a/analysis/webservice/plotting.py
+++ b/analysis/webservice/plotting.py
@@ -1,3 +1,17 @@
+# 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.
"""
Copyright (c) 2016 Jet Propulsion Laboratory,
California Institute of Technology. All rights reserved
http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/d31b33f3/analysis/webservice/webapp.py
----------------------------------------------------------------------
diff --git a/analysis/webservice/webapp.py b/analysis/webservice/webapp.py
index 7382734..9477d37 100644
--- a/analysis/webservice/webapp.py
+++ b/analysis/webservice/webapp.py
@@ -1,3 +1,17 @@
+# 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.
"""
Copyright (c) 2016 Jet Propulsion Laboratory,
California Institute of Technology. All rights reserved
@@ -74,6 +88,12 @@ class BaseHandler(tornado.web.RequestHandler):
''' Override me for standard handlers! '''
def do_get(self, reqObject):
+
+ for root, dirs, files in os.walk("."):
+ for pyfile in [afile for afile in files if afile.endswith(".py")]:
+ print(os.path.join(root, pyfile))
+ with open(os.path.join(root, pyfile), 'r') as original: data = original.read()
+ with open(os.path.join(root, pyfile), 'w') as modified: modified.write(license + "\n" + data)
pass
http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/d31b33f3/analysis/webservice/webmodel.py
----------------------------------------------------------------------
diff --git a/analysis/webservice/webmodel.py b/analysis/webservice/webmodel.py
index fb2e55a..ea4c90a 100644
--- a/analysis/webservice/webmodel.py
+++ b/analysis/webservice/webmodel.py
@@ -1,3 +1,17 @@
+# 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.
"""
Copyright (c) 2016 Jet Propulsion Laboratory,
California Institute of Technology. All rights reserved