Repository: climate Updated Branches: refs/heads/master 6e73c8a51 -> 511a7e175
CLIMATE-593 - Add ASF headers to config parser Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/4871e6d7 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/4871e6d7 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/4871e6d7 Branch: refs/heads/master Commit: 4871e6d74f0ae57c302121141127bdeb33f67c45 Parents: 6e73c8a Author: Michael Joyce <[email protected]> Authored: Fri Feb 27 10:01:00 2015 -0800 Committer: Michael Joyce <[email protected]> Committed: Fri Feb 27 10:01:00 2015 -0800 ---------------------------------------------------------------------- ocw-config-runner/configuration_parsing.py | 17 +++++++++++++++++ ocw-config-runner/evaluation_creation.py | 17 +++++++++++++++++ ocw-config-runner/plot_generation.py | 17 +++++++++++++++++ ocw-config-runner/tests/test_config_parsing.py | 17 +++++++++++++++++ .../tests/test_evaluation_creation.py | 18 +++++++++++++++++- 5 files changed, 85 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/4871e6d7/ocw-config-runner/configuration_parsing.py ---------------------------------------------------------------------- diff --git a/ocw-config-runner/configuration_parsing.py b/ocw-config-runner/configuration_parsing.py index 600d7ac..43285f7 100644 --- a/ocw-config-runner/configuration_parsing.py +++ b/ocw-config-runner/configuration_parsing.py @@ -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. + import logging import re import sys http://git-wip-us.apache.org/repos/asf/climate/blob/4871e6d7/ocw-config-runner/evaluation_creation.py ---------------------------------------------------------------------- diff --git a/ocw-config-runner/evaluation_creation.py b/ocw-config-runner/evaluation_creation.py index 66794d9..3502186 100644 --- a/ocw-config-runner/evaluation_creation.py +++ b/ocw-config-runner/evaluation_creation.py @@ -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. + import dateutil.parser from datetime import timedelta import logging http://git-wip-us.apache.org/repos/asf/climate/blob/4871e6d7/ocw-config-runner/plot_generation.py ---------------------------------------------------------------------- diff --git a/ocw-config-runner/plot_generation.py b/ocw-config-runner/plot_generation.py index c802af2..40c5718 100644 --- a/ocw-config-runner/plot_generation.py +++ b/ocw-config-runner/plot_generation.py @@ -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. + import logging import ocw.plotter as plots http://git-wip-us.apache.org/repos/asf/climate/blob/4871e6d7/ocw-config-runner/tests/test_config_parsing.py ---------------------------------------------------------------------- diff --git a/ocw-config-runner/tests/test_config_parsing.py b/ocw-config-runner/tests/test_config_parsing.py index d51bf43..36ef9be 100644 --- a/ocw-config-runner/tests/test_config_parsing.py +++ b/ocw-config-runner/tests/test_config_parsing.py @@ -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. + from mock import patch import unittest http://git-wip-us.apache.org/repos/asf/climate/blob/4871e6d7/ocw-config-runner/tests/test_evaluation_creation.py ---------------------------------------------------------------------- diff --git a/ocw-config-runner/tests/test_evaluation_creation.py b/ocw-config-runner/tests/test_evaluation_creation.py index 6fc79f8..41f998e 100644 --- a/ocw-config-runner/tests/test_evaluation_creation.py +++ b/ocw-config-runner/tests/test_evaluation_creation.py @@ -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. + from mock import patch import unittest @@ -6,7 +23,6 @@ import ocw.metrics import yaml - class TestMetricLoad(unittest.TestCase): def test_valid_metric_load(self): config = yaml.load("""
