You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by wl...@apache.org on 2015/11/27 08:43:03 UTC
[4/8] incubator-hawq git commit: HAWQ-184. Add license header to
source files
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/simplejson/tests/test_float.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/simplejson/tests/test_float.py b/tools/bin/ext/simplejson/tests/test_float.py
index ee93358..e33d3ac 100755
--- a/tools/bin/ext/simplejson/tests/test_float.py
+++ b/tools/bin/ext/simplejson/tests/test_float.py
@@ -1,3 +1,19 @@
+# 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.
def test_floats():
import simplejson
for num in [1617161771.7650001]:
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/simplejson/tests/test_indent.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/simplejson/tests/test_indent.py b/tools/bin/ext/simplejson/tests/test_indent.py
index 47dd4dc..74227bd 100755
--- a/tools/bin/ext/simplejson/tests/test_indent.py
+++ b/tools/bin/ext/simplejson/tests/test_indent.py
@@ -1,3 +1,19 @@
+# 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.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/simplejson/tests/test_pass1.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/simplejson/tests/test_pass1.py b/tools/bin/ext/simplejson/tests/test_pass1.py
index 4eda192..87658fd 100755
--- a/tools/bin/ext/simplejson/tests/test_pass1.py
+++ b/tools/bin/ext/simplejson/tests/test_pass1.py
@@ -1,3 +1,19 @@
+# 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 http://json.org/JSON_checker/test/pass1.json
JSON = r'''
[
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/simplejson/tests/test_pass2.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/simplejson/tests/test_pass2.py b/tools/bin/ext/simplejson/tests/test_pass2.py
index ae74abb..72bcfd0 100755
--- a/tools/bin/ext/simplejson/tests/test_pass2.py
+++ b/tools/bin/ext/simplejson/tests/test_pass2.py
@@ -1,3 +1,19 @@
+# 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 http://json.org/JSON_checker/test/pass2.json
JSON = r'''
[[[[[[[[[[[[[[[[[[["Not too deep"]]]]]]]]]]]]]]]]]]]
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/simplejson/tests/test_pass3.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/simplejson/tests/test_pass3.py b/tools/bin/ext/simplejson/tests/test_pass3.py
index d94893f..2446aa9 100755
--- a/tools/bin/ext/simplejson/tests/test_pass3.py
+++ b/tools/bin/ext/simplejson/tests/test_pass3.py
@@ -1,3 +1,19 @@
+# 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 http://json.org/JSON_checker/test/pass3.json
JSON = r'''
{
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/simplejson/tests/test_recursion.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/simplejson/tests/test_recursion.py b/tools/bin/ext/simplejson/tests/test_recursion.py
index 756b066..24e013c 100755
--- a/tools/bin/ext/simplejson/tests/test_recursion.py
+++ b/tools/bin/ext/simplejson/tests/test_recursion.py
@@ -1,3 +1,19 @@
+# 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 simplejson
def test_listrecursion():
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/simplejson/tests/test_separators.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/simplejson/tests/test_separators.py b/tools/bin/ext/simplejson/tests/test_separators.py
index a615354..f088e09 100755
--- a/tools/bin/ext/simplejson/tests/test_separators.py
+++ b/tools/bin/ext/simplejson/tests/test_separators.py
@@ -1,3 +1,19 @@
+# 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.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/simplejson/tests/test_unicode.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/simplejson/tests/test_unicode.py b/tools/bin/ext/simplejson/tests/test_unicode.py
index 88d0939..430bcd3 100755
--- a/tools/bin/ext/simplejson/tests/test_unicode.py
+++ b/tools/bin/ext/simplejson/tests/test_unicode.py
@@ -1,3 +1,19 @@
+# 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 simplejson as S
def test_encoding1():
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/yaml/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/yaml/__init__.py b/tools/bin/ext/yaml/__init__.py
index bd233a8..b6c84f9 100644
--- a/tools/bin/ext/yaml/__init__.py
+++ b/tools/bin/ext/yaml/__init__.py
@@ -1,3 +1,19 @@
+# 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 error import *
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/yaml/composer.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/yaml/composer.py b/tools/bin/ext/yaml/composer.py
index 9f5cd87..a3fb797 100644
--- a/tools/bin/ext/yaml/composer.py
+++ b/tools/bin/ext/yaml/composer.py
@@ -1,3 +1,19 @@
+# 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.
__all__ = ['Composer', 'ComposerError']
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/yaml/constructor.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/yaml/constructor.py b/tools/bin/ext/yaml/constructor.py
index a1295c8..e66dd2c 100644
--- a/tools/bin/ext/yaml/constructor.py
+++ b/tools/bin/ext/yaml/constructor.py
@@ -1,3 +1,19 @@
+# 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.
__all__ = ['BaseConstructor', 'SafeConstructor', 'Constructor',
'ConstructorError']
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/yaml/cyaml.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/yaml/cyaml.py b/tools/bin/ext/yaml/cyaml.py
index 14acb07..c3eaf77 100644
--- a/tools/bin/ext/yaml/cyaml.py
+++ b/tools/bin/ext/yaml/cyaml.py
@@ -1,3 +1,19 @@
+# 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.
__all__ = ['CBaseLoader', 'CSafeLoader', 'CLoader',
'CBaseDumper', 'CSafeDumper', 'CDumper']
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/yaml/dumper.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/yaml/dumper.py b/tools/bin/ext/yaml/dumper.py
index 355c1e2..a955200 100644
--- a/tools/bin/ext/yaml/dumper.py
+++ b/tools/bin/ext/yaml/dumper.py
@@ -1,3 +1,19 @@
+# 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.
__all__ = ['BaseDumper', 'SafeDumper', 'Dumper']
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/yaml/emitter.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/yaml/emitter.py b/tools/bin/ext/yaml/emitter.py
index d9d1bf8..23730d8 100644
--- a/tools/bin/ext/yaml/emitter.py
+++ b/tools/bin/ext/yaml/emitter.py
@@ -1,3 +1,19 @@
+# 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.
# Emitter expects events obeying the following grammar:
# stream ::= STREAM-START document* STREAM-END
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/yaml/error.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/yaml/error.py b/tools/bin/ext/yaml/error.py
index 577686d..89e4a6a 100644
--- a/tools/bin/ext/yaml/error.py
+++ b/tools/bin/ext/yaml/error.py
@@ -1,3 +1,19 @@
+# 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.
__all__ = ['Mark', 'YAMLError', 'MarkedYAMLError']
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/yaml/events.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/yaml/events.py b/tools/bin/ext/yaml/events.py
index f79ad38..f57b773 100644
--- a/tools/bin/ext/yaml/events.py
+++ b/tools/bin/ext/yaml/events.py
@@ -1,3 +1,19 @@
+# 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 classes.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/yaml/loader.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/yaml/loader.py b/tools/bin/ext/yaml/loader.py
index 293ff46..29461f4 100644
--- a/tools/bin/ext/yaml/loader.py
+++ b/tools/bin/ext/yaml/loader.py
@@ -1,3 +1,19 @@
+# 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.
__all__ = ['BaseLoader', 'SafeLoader', 'Loader']
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/yaml/nodes.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/yaml/nodes.py b/tools/bin/ext/yaml/nodes.py
index c4f070c..3fdfbe6 100644
--- a/tools/bin/ext/yaml/nodes.py
+++ b/tools/bin/ext/yaml/nodes.py
@@ -1,3 +1,19 @@
+# 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.
class Node(object):
def __init__(self, tag, value, start_mark, end_mark):
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/yaml/parser.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/yaml/parser.py b/tools/bin/ext/yaml/parser.py
index a46bb9e..a1228f6 100644
--- a/tools/bin/ext/yaml/parser.py
+++ b/tools/bin/ext/yaml/parser.py
@@ -1,3 +1,19 @@
+# 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.
# The following YAML grammar is LL(1) and is parsed by a recursive descent
# parser.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/yaml/reader.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/yaml/reader.py b/tools/bin/ext/yaml/reader.py
index 1d4667c..f36e647 100644
--- a/tools/bin/ext/yaml/reader.py
+++ b/tools/bin/ext/yaml/reader.py
@@ -1,3 +1,19 @@
+# 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.
# This module contains abstractions for the input stream. You don't have to
# looks further, there are no pretty code.
#
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/yaml/representer.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/yaml/representer.py b/tools/bin/ext/yaml/representer.py
index 1f4fe59..b83cc4b 100644
--- a/tools/bin/ext/yaml/representer.py
+++ b/tools/bin/ext/yaml/representer.py
@@ -1,3 +1,19 @@
+# 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.
__all__ = ['BaseRepresenter', 'SafeRepresenter', 'Representer',
'RepresenterError']
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/yaml/resolver.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/yaml/resolver.py b/tools/bin/ext/yaml/resolver.py
index 5cbf6b3..0feb12b 100644
--- a/tools/bin/ext/yaml/resolver.py
+++ b/tools/bin/ext/yaml/resolver.py
@@ -1,3 +1,19 @@
+# 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.
__all__ = ['BaseResolver', 'Resolver']
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/yaml/scanner.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/yaml/scanner.py b/tools/bin/ext/yaml/scanner.py
index a3ecdd0..369c027 100644
--- a/tools/bin/ext/yaml/scanner.py
+++ b/tools/bin/ext/yaml/scanner.py
@@ -1,3 +1,19 @@
+# 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.
# Scanner produces tokens of the following types:
# STREAM-START
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/yaml/serializer.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/yaml/serializer.py b/tools/bin/ext/yaml/serializer.py
index 2101f95..eb70372 100644
--- a/tools/bin/ext/yaml/serializer.py
+++ b/tools/bin/ext/yaml/serializer.py
@@ -1,3 +1,19 @@
+# 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.
__all__ = ['Serializer', 'SerializerError']
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/ext/yaml/tokens.py
----------------------------------------------------------------------
diff --git a/tools/bin/ext/yaml/tokens.py b/tools/bin/ext/yaml/tokens.py
index 4d0b48a..41ee0fb 100644
--- a/tools/bin/ext/yaml/tokens.py
+++ b/tools/bin/ext/yaml/tokens.py
@@ -1,3 +1,19 @@
+# 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.
class Token(object):
def __init__(self, start_mark, end_mark):
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/generate-greenplum-path.sh
----------------------------------------------------------------------
diff --git a/tools/bin/generate-greenplum-path.sh b/tools/bin/generate-greenplum-path.sh
index 6bf5eae..92c458d 100755
--- a/tools/bin/generate-greenplum-path.sh
+++ b/tools/bin/generate-greenplum-path.sh
@@ -1,4 +1,20 @@
#!/bin/bash
+# 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.
if [ x$1 != x ] ; then
GPHOME_PATH=$1
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/generate_load_tpch.pl
----------------------------------------------------------------------
diff --git a/tools/bin/generate_load_tpch.pl b/tools/bin/generate_load_tpch.pl
index a03c74d..ae18344 100755
--- a/tools/bin/generate_load_tpch.pl
+++ b/tools/bin/generate_load_tpch.pl
@@ -1,4 +1,20 @@
#!/usr/bin/env perl
+# 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.
####################################################
#Author : Bharath
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gp_df
----------------------------------------------------------------------
diff --git a/tools/bin/gp_df b/tools/bin/gp_df
index 555a51c..4663cbf 100755
--- a/tools/bin/gp_df
+++ b/tools/bin/gp_df
@@ -1,4 +1,20 @@
#!/usr/bin/env python
+# 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.
'''
USAGE: gp_df [-m]
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gpcheck
----------------------------------------------------------------------
diff --git a/tools/bin/gpcheck b/tools/bin/gpcheck
index 29f5183..5b7dcff 100755
--- a/tools/bin/gpcheck
+++ b/tools/bin/gpcheck
@@ -1,6 +1,20 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2010. All Rights Reserved.
+# 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 os, sys, re, tempfile, shutil, pickle, getpass, subprocess, time, glob, ConfigParser
from xml.dom import minidom
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gpcheckperf
----------------------------------------------------------------------
diff --git a/tools/bin/gpcheckperf b/tools/bin/gpcheckperf
index 33e059b..1949e45 100755
--- a/tools/bin/gpcheckperf
+++ b/tools/bin/gpcheckperf
@@ -1,4 +1,21 @@
#!/usr/bin/env python
+# 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.
+
"""
gpcheckperf -- Check the hardware for Greenplum Database
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gpextract
----------------------------------------------------------------------
diff --git a/tools/bin/gpextract b/tools/bin/gpextract
index 2379b84..9a2e182 100644
--- a/tools/bin/gpextract
+++ b/tools/bin/gpextract
@@ -1,5 +1,22 @@
#!/usr/bin/env python
# -*- coding: 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.
+
'''
gpextract [options] tablename
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gpload
----------------------------------------------------------------------
diff --git a/tools/bin/gpload b/tools/bin/gpload
index 56f310b..8fc7358 100755
--- a/tools/bin/gpload
+++ b/tools/bin/gpload
@@ -1,4 +1,21 @@
#!/bin/sh
+# 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.
+
if [ ! -z "$GPHOME" ]; then
. $GPHOME/greenplum_path.sh
fi
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gpload.py
----------------------------------------------------------------------
diff --git a/tools/bin/gpload.py b/tools/bin/gpload.py
index 1b1fe70..bde5d6c 100755
--- a/tools/bin/gpload.py
+++ b/tools/bin/gpload.py
@@ -1,7 +1,23 @@
#!/usr/bin/env python
+# 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.
+
# -*- coding: utf-8 -*-
# gpload - load file(s) into Greenplum Database
-# Copyright Greenplum 2008
'''gpload [options] -f configuration file
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gplogfilter
----------------------------------------------------------------------
diff --git a/tools/bin/gplogfilter b/tools/bin/gplogfilter
index ef24398..675b00e 100755
--- a/tools/bin/gplogfilter
+++ b/tools/bin/gplogfilter
@@ -1,9 +1,25 @@
#!/usr/bin/env python
# -*- coding: 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.
+
#
# gplogfilter [options] [inputfile]...
#
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved.
#
# import Python standard library modules
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppkg
----------------------------------------------------------------------
diff --git a/tools/bin/gppkg b/tools/bin/gppkg
index 24a09b2..b9b5fc0 100755
--- a/tools/bin/gppkg
+++ b/tools/bin/gppkg
@@ -1,7 +1,21 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2010. All Rights Reserved.
-#
+# 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 mainUtils FIRST to get python version check
# THIS IMPORT SHOULD COME FIRST
from gppylib.mainUtils import *
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/__init__.py b/tools/bin/gppylib/__init__.py
index bb0e52c..3ac40b9 100644
--- a/tools/bin/gppylib/__init__.py
+++ b/tools/bin/gppylib/__init__.py
@@ -1,3 +1,19 @@
+# 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.
# $Id: $
# Make sure Python loads the modules of this package via absolute paths.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/commands/base.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/commands/base.py b/tools/bin/gppylib/commands/base.py
index 6ca6ddc..801d85f 100755
--- a/tools/bin/gppylib/commands/base.py
+++ b/tools/bin/gppylib/commands/base.py
@@ -1,7 +1,21 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved.
-#
+# 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.
+
'''
base.py
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/commands/dca.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/commands/dca.py b/tools/bin/gppylib/commands/dca.py
index 3bde8e3..3d46ed5 100644
--- a/tools/bin/gppylib/commands/dca.py
+++ b/tools/bin/gppylib/commands/dca.py
@@ -1,7 +1,20 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2011. All Rights Reserved.
-#
+# 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.
"""
Module for commands that are DCA specific
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/commands/gp.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/commands/gp.py b/tools/bin/gppylib/commands/gp.py
index b68886f..9eae460 100644
--- a/tools/bin/gppylib/commands/gp.py
+++ b/tools/bin/gppylib/commands/gp.py
@@ -1,7 +1,20 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved.
-#
+# 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.
"""
TODO: docs!
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/commands/pg.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/commands/pg.py b/tools/bin/gppylib/commands/pg.py
index 3631615..2a0ca5c 100644
--- a/tools/bin/gppylib/commands/pg.py
+++ b/tools/bin/gppylib/commands/pg.py
@@ -1,7 +1,20 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved.
-#
+# 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.
"""
TODO: docs
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/commands/san.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/commands/san.py b/tools/bin/gppylib/commands/san.py
index b328a05..07d0b00 100644
--- a/tools/bin/gppylib/commands/san.py
+++ b/tools/bin/gppylib/commands/san.py
@@ -1,7 +1,21 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved.
-#
+# 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.
+
# Greenplum SAN related utility commands
from gppylib.commands.base import *
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/commands/test/regress/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/commands/test/regress/__init__.py b/tools/bin/gppylib/commands/test/regress/__init__.py
index 303655b..8a9ff7b 100644
--- a/tools/bin/gppylib/commands/test/regress/__init__.py
+++ b/tools/bin/gppylib/commands/test/regress/__init__.py
@@ -1,3 +1,19 @@
+# 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.
# Make sure Python loads the modules of this package via absolute paths.
from os.path import abspath as _abspath
__path__[0] = _abspath(__path__[0])
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/commands/test/regress/test_regress_pg.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/commands/test/regress/test_regress_pg.py b/tools/bin/gppylib/commands/test/regress/test_regress_pg.py
index 22c0473..2cb6fbb 100755
--- a/tools/bin/gppylib/commands/test/regress/test_regress_pg.py
+++ b/tools/bin/gppylib/commands/test/regress/test_regress_pg.py
@@ -1,4 +1,20 @@
#!/usr/bin/env python
+# 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) Greenplum Inc 2008. All Rights Reserved.
#
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/commands/unix.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/commands/unix.py b/tools/bin/gppylib/commands/unix.py
index 830b531..5260f55 100644
--- a/tools/bin/gppylib/commands/unix.py
+++ b/tools/bin/gppylib/commands/unix.py
@@ -1,7 +1,21 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved.
-#
+# 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.
+
"""
Set of Classes for executing unix commands.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/datetimeutils.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/datetimeutils.py b/tools/bin/gppylib/datetimeutils.py
index 94549eb..e41b108 100644
--- a/tools/bin/gppylib/datetimeutils.py
+++ b/tools/bin/gppylib/datetimeutils.py
@@ -1,4 +1,20 @@
#!/usr/bin/env python
+# 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.
# $Id: $
# $Change: $
# $DateTime: $
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/db/catalog.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/db/catalog.py b/tools/bin/gppylib/db/catalog.py
index 4c05cff..8ca6f35 100644
--- a/tools/bin/gppylib/db/catalog.py
+++ b/tools/bin/gppylib/db/catalog.py
@@ -1,7 +1,21 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved.
-#
+# 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.
+
""" Provides Access Utilities for Examining and Modifying the GP Catalog.
"""
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/db/dbconn.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/db/dbconn.py b/tools/bin/gppylib/db/dbconn.py
index 916cd56..6a474ce 100644
--- a/tools/bin/gppylib/db/dbconn.py
+++ b/tools/bin/gppylib/db/dbconn.py
@@ -1,6 +1,20 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved.
+# 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.
#
"""
TODO: module docs
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/db/test/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/db/test/__init__.py b/tools/bin/gppylib/db/test/__init__.py
index 687a965..a6bed21 100644
--- a/tools/bin/gppylib/db/test/__init__.py
+++ b/tools/bin/gppylib/db/test/__init__.py
@@ -1,3 +1,19 @@
+# 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 unittest2 as unittest
from gppylib.db.dbconn import connect, DbURL
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/db/test/regress/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/db/test/regress/__init__.py b/tools/bin/gppylib/db/test/regress/__init__.py
index 303655b..8a9ff7b 100644
--- a/tools/bin/gppylib/db/test/regress/__init__.py
+++ b/tools/bin/gppylib/db/test/regress/__init__.py
@@ -1,3 +1,19 @@
+# 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.
# Make sure Python loads the modules of this package via absolute paths.
from os.path import abspath as _abspath
__path__[0] = _abspath(__path__[0])
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/db/test/regress/test_regress_catalog.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/db/test/regress/test_regress_catalog.py b/tools/bin/gppylib/db/test/regress/test_regress_catalog.py
index 33dc39c..fd67db5 100644
--- a/tools/bin/gppylib/db/test/regress/test_regress_catalog.py
+++ b/tools/bin/gppylib/db/test/regress/test_regress_catalog.py
@@ -1,6 +1,21 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved.
+# 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.
+
#
# Unit Testing of catalog module.
#
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/db/test/test_catalog.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/db/test/test_catalog.py b/tools/bin/gppylib/db/test/test_catalog.py
index f7bf53c..874a06c 100644
--- a/tools/bin/gppylib/db/test/test_catalog.py
+++ b/tools/bin/gppylib/db/test/test_catalog.py
@@ -1,7 +1,21 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved.
-#
+# 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.
+
# Unit Testing of catalog module.
#
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/db/test/test_dbconn.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/db/test/test_dbconn.py b/tools/bin/gppylib/db/test/test_dbconn.py
index 385ddb4..86ea4d3 100755
--- a/tools/bin/gppylib/db/test/test_dbconn.py
+++ b/tools/bin/gppylib/db/test/test_dbconn.py
@@ -1,7 +1,20 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved.
-#
+# 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.
""" Unittesting for dbconn module
"""
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/db/test/unit/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/db/test/unit/__init__.py b/tools/bin/gppylib/db/test/unit/__init__.py
index 303655b..8a9ff7b 100644
--- a/tools/bin/gppylib/db/test/unit/__init__.py
+++ b/tools/bin/gppylib/db/test/unit/__init__.py
@@ -1,3 +1,19 @@
+# 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.
# Make sure Python loads the modules of this package via absolute paths.
from os.path import abspath as _abspath
__path__[0] = _abspath(__path__[0])
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/db/test/unit/test_unit_dbconn.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/db/test/unit/test_unit_dbconn.py b/tools/bin/gppylib/db/test/unit/test_unit_dbconn.py
index 9c9d9e4..a755d89 100755
--- a/tools/bin/gppylib/db/test/unit/test_unit_dbconn.py
+++ b/tools/bin/gppylib/db/test/unit/test_unit_dbconn.py
@@ -1,7 +1,22 @@
#!/usr/bin/env python
+# 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) Greenplum Inc 2008. All Rights Reserved.
-#
+
""" Unittesting for dbconn module
"""
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/fault_injection.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/fault_injection.py b/tools/bin/gppylib/fault_injection.py
index 756ac0a..59961a0 100644
--- a/tools/bin/gppylib/fault_injection.py
+++ b/tools/bin/gppylib/fault_injection.py
@@ -1,4 +1,20 @@
#!/usr/bin/env python
+# 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 os
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/gpMgmttest/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/gpMgmttest/__init__.py b/tools/bin/gppylib/gpMgmttest/__init__.py
index 18e2a4e..eca86ca 100644
--- a/tools/bin/gppylib/gpMgmttest/__init__.py
+++ b/tools/bin/gppylib/gpMgmttest/__init__.py
@@ -1,3 +1,19 @@
+# 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 unittest2 as unittest
import time
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/gp_contentnum.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/gp_contentnum.py b/tools/bin/gppylib/gp_contentnum.py
index c4b7ee3..6e68df9 100644
--- a/tools/bin/gppylib/gp_contentnum.py
+++ b/tools/bin/gppylib/gp_contentnum.py
@@ -1,10 +1,25 @@
#!/usr/bin/env python
+# 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.
# Line too long - pylint: disable=C0301
# Invalid name - pylint: disable=C0103
"""
gp_contentnum.py
- Copyright (c) EMC/Greenplum Inc 2013. All Rights Reserved.
"""
import re
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/gp_dbid.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/gp_dbid.py b/tools/bin/gppylib/gp_dbid.py
index 5cc1b99..54d79aa 100644
--- a/tools/bin/gppylib/gp_dbid.py
+++ b/tools/bin/gppylib/gp_dbid.py
@@ -1,10 +1,25 @@
#!/usr/bin/env python
+# 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.
# Line too long - pylint: disable=C0301
# Invalid name - pylint: disable=C0103
"""
gp_dbid.py
- Copyright (c) EMC/Greenplum Inc 2011. All Rights Reserved.
"""
import re
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/gp_era.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/gp_era.py b/tools/bin/gppylib/gp_era.py
index 18a4cc4..be136f2 100644
--- a/tools/bin/gppylib/gp_era.py
+++ b/tools/bin/gppylib/gp_era.py
@@ -1,10 +1,25 @@
#!/usr/bin/env python
+# 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.
# Line too long - pylint: disable=C0301
# Invalid name - pylint: disable=C0103
"""
gp_era.py, based on gp_dbid.py
- Copyright (c) EMC/Greenplum Inc 2011. All Rights Reserved.
"""
import sys, os, stat, re
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/gparray.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/gparray.py b/tools/bin/gppylib/gparray.py
index 1ab9214..e793f86 100755
--- a/tools/bin/gppylib/gparray.py
+++ b/tools/bin/gppylib/gparray.py
@@ -1,7 +1,21 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved.
-#
+# 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.
+
"""
gparray.py:
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/gpcatalog.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/gpcatalog.py b/tools/bin/gppylib/gpcatalog.py
index 2d2c6a9..45bf513 100644
--- a/tools/bin/gppylib/gpcatalog.py
+++ b/tools/bin/gppylib/gpcatalog.py
@@ -1,7 +1,21 @@
#!/usr/bin/env python
-#
-# Copyright (c) 2010-2011 EMC Corporation. All Rights Reserved
-#
+# 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.
+
"""
gpcatalog.py
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/gpcheckutil.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/gpcheckutil.py b/tools/bin/gppylib/gpcheckutil.py
index 8c8b9b1..9956990 100755
--- a/tools/bin/gppylib/gpcheckutil.py
+++ b/tools/bin/gppylib/gpcheckutil.py
@@ -1,4 +1,20 @@
#!/usr/bin/env python
+# 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.
class HostType:
GPCHECK_HOSTTYPE_UNDEFINED = 0
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/gpcoverage.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/gpcoverage.py b/tools/bin/gppylib/gpcoverage.py
index f20884c..422bfb9 100644
--- a/tools/bin/gppylib/gpcoverage.py
+++ b/tools/bin/gppylib/gpcoverage.py
@@ -1,3 +1,19 @@
+# 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.
"""
This file is a wrapper around figleaf and will start/stop coverage as
needed. It also includes a method for generating the HTML reports.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/gphostcache.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/gphostcache.py b/tools/bin/gppylib/gphostcache.py
index 5825bd1..55a5b8e 100644
--- a/tools/bin/gppylib/gphostcache.py
+++ b/tools/bin/gppylib/gphostcache.py
@@ -1,7 +1,21 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved.
-#
+# 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.
+
'''
Greenplum hostcache file facilities.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/gplog.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/gplog.py b/tools/bin/gppylib/gplog.py
index b8cf62a..b603d94 100644
--- a/tools/bin/gppylib/gplog.py
+++ b/tools/bin/gppylib/gplog.py
@@ -1,7 +1,21 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved.
-#
+# 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.
+
'''
Greenplum logging facilities.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/gpparseopts.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/gpparseopts.py b/tools/bin/gppylib/gpparseopts.py
index b478cb2..b56550c 100644
--- a/tools/bin/gppylib/gpparseopts.py
+++ b/tools/bin/gppylib/gpparseopts.py
@@ -1,7 +1,21 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved.
-#
+# 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.
+
"""
Standard set of helper functions for gp utilities for parsing command line options.
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/gpsubprocess.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/gpsubprocess.py b/tools/bin/gppylib/gpsubprocess.py
index b082318..2703eb9 100644
--- a/tools/bin/gppylib/gpsubprocess.py
+++ b/tools/bin/gppylib/gpsubprocess.py
@@ -1,7 +1,20 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved.
-#
+# 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.
"""
The gpsubprocess is a subclass of subprocess that allows for non-blocking
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/gpversion.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/gpversion.py b/tools/bin/gppylib/gpversion.py
index 1587041..faaf70c 100644
--- a/tools/bin/gppylib/gpversion.py
+++ b/tools/bin/gppylib/gpversion.py
@@ -1,7 +1,21 @@
#!/usr/bin/env python
-#
-# Copyright (c) Greenplum Inc 2008. All Rights Reserved.
-#
+# 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.
+
"""
gpversion.py:
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f28a25b6/tools/bin/gppylib/logfilter.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/logfilter.py b/tools/bin/gppylib/logfilter.py
index da5e1b0..9298cba 100644
--- a/tools/bin/gppylib/logfilter.py
+++ b/tools/bin/gppylib/logfilter.py
@@ -1,4 +1,20 @@
#!/usr/bin/env python
+# 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.
# $Id: $
# $Change: $
# $DateTime: $