From 50b543df74f5b79b919e1afa4478eef13be52edf Mon Sep 17 00:00:00 2001 From: Ryan Timmons <119094+rtimmons@users.noreply.github.com> Date: Fri, 11 Jan 2019 17:30:24 -0500 Subject: [PATCH] Add Apache2 License (#105) --- LICENSE.txt | 202 +++++++++++++ THIRD-PARTY-NOTICES.txt | 268 ++++++++++++++++++ scripts/create-new-actor.sh | 44 +++ src/CMakeLists.txt | 14 + src/cast_core/CMakeLists.txt | 14 + .../include/cast_core/actors/HelloWorld.hpp | 14 + .../include/cast_core/actors/Insert.hpp | 14 + .../include/cast_core/actors/InsertRemove.hpp | 14 + .../include/cast_core/actors/Loader.hpp | 14 + .../cast_core/actors/MultiCollectionQuery.hpp | 14 + .../actors/MultiCollectionUpdate.hpp | 14 + .../include/cast_core/actors/RunCommand.hpp | 14 + .../cast_core/config/RunCommandConfig.hpp | 14 + src/cast_core/src/actors/HelloWorld.cpp | 14 + src/cast_core/src/actors/Insert.cpp | 14 + src/cast_core/src/actors/InsertRemove.cpp | 14 + src/cast_core/src/actors/Loader.cpp | 14 + .../src/actors/MultiCollectionQuery.cpp | 14 + .../src/actors/MultiCollectionUpdate.cpp | 14 + src/cast_core/src/actors/RunCommand.cpp | 14 + src/cast_core/src/cast_core.cpp | 14 + src/driver/CMakeLists.txt | 14 + src/driver/src/DefaultDriver.cpp | 14 + src/driver/src/DefaultDriver.hpp | 14 + src/driver/src/main.cpp | 14 + src/driver/test/Driver_test.cpp | 14 + src/gennylib/CMakeLists.txt | 14 + src/gennylib/include/gennylib/Actor.hpp | 14 + .../include/gennylib/ActorProducer.hpp | 14 + src/gennylib/include/gennylib/ActorVector.hpp | 14 + src/gennylib/include/gennylib/Cast.hpp | 14 + .../include/gennylib/DefaultRandom.hpp | 14 + .../include/gennylib/ExecutionStrategy.hpp | 14 + .../InvalidConfigurationException.hpp | 14 + .../include/gennylib/MetricsReporter.hpp | 14 + .../include/gennylib/MongoException.hpp | 14 + .../include/gennylib/Orchestrator.hpp | 14 + src/gennylib/include/gennylib/PhaseLoop.hpp | 14 + src/gennylib/include/gennylib/PoolFactory.hpp | 14 + .../config/ExecutionStrategyOptions.hpp | 14 + src/gennylib/include/gennylib/context.hpp | 14 + src/gennylib/include/gennylib/conventions.hpp | 14 + src/gennylib/include/gennylib/metrics.hpp | 14 + .../include/gennylib/value_generators.hpp | 14 + src/gennylib/include/gennylib/version.hpp | 14 + src/gennylib/src/Actor.cpp | 14 + src/gennylib/src/ActorProducer.cpp | 14 + src/gennylib/src/Cast.cpp | 14 + src/gennylib/src/DefaultRandom.cpp | 14 + src/gennylib/src/ExecutionStrategy.cpp | 14 + src/gennylib/src/Orchestrator.cpp | 14 + src/gennylib/src/PoolFactory.cpp | 14 + src/gennylib/src/context.cpp | 14 + .../value_generators/generators-private.cpp | 14 + src/gennylib/src/value_generators/parser.cpp | 14 + .../src/value_generators/value_generators.cpp | 14 + src/gennylib/src/version.cpp | 14 + src/gennylib/test/ActorHelper.cpp | 14 + src/gennylib/test/ActorHelper.hpp | 14 + src/gennylib/test/ActorHelper_test.cpp | 14 + src/gennylib/test/Cast_test.cpp | 14 + src/gennylib/test/DefaultRandom_test.cpp | 14 + src/gennylib/test/ExecutionStrategy_test.cpp | 14 + src/gennylib/test/MongoTestFixture.cpp | 14 + src/gennylib/test/MongoTestFixture.hpp | 14 + src/gennylib/test/PhaseLoop_benchmark.cpp | 14 + src/gennylib/test/PhaseLoop_test.cpp | 14 + src/gennylib/test/PoolFactory_test.cpp | 14 + src/gennylib/test/RunCommandActor_test.cpp | 14 + src/gennylib/test/actors_test.cpp | 14 + src/gennylib/test/context_test.cpp | 14 + src/gennylib/test/conventions_test.cpp | 14 + src/gennylib/test/document_test.cpp | 14 + src/gennylib/test/metrics_test.cpp | 14 + src/gennylib/test/orchestrator_benchmark.cpp | 14 + src/gennylib/test/orchestrator_test.cpp | 14 + src/gennylib/test/version_test.cpp | 14 + src/python/genny/__init__.py | 14 + src/python/genny/metrics_output_parser.py | 14 + src/python/genny/perf_json.py | 14 + src/python/setup.py | 14 + src/python/tests/__init__.py | 14 + .../tests/metrics_output_parser_test.py | 14 + src/python/tests/parser_test_lib.py | 14 + src/python/tests/perf_json_test.py | 14 + 85 files changed, 1662 insertions(+) create mode 100644 LICENSE.txt create mode 100644 THIRD-PARTY-NOTICES.txt mode change 100755 => 100644 src/python/genny/metrics_output_parser.py diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000000..d645695673 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/THIRD-PARTY-NOTICES.txt b/THIRD-PARTY-NOTICES.txt new file mode 100644 index 0000000000..827d892bd0 --- /dev/null +++ b/THIRD-PARTY-NOTICES.txt @@ -0,0 +1,268 @@ +MongoDB uses third-party libraries or other resources that may be +distributed under licenses different than the MongoDB software. + +In the event that we accidentally failed to list a required notice, please +bring it to our attention by creating a pull-request or filing a github +issue with the genny project. + +The attached notices are provided for information only. + +For any licenses that require disclosure of source, sources are available at +https://github.com/mongodb/genny. + + +1) License Notice for the Catch library +--------------------------------------- +[Note: Catch is used only for testing.] + +Copyright (c) 2018 Two Blue Cubes Ltd. All rights reserved. + +Distributed under the Boost Software License, Version 1.0. +(http://www.boost.org/LICENSE_1_0.txt) + + +2) License Notice for the Yaml CPP Library +------------------------------------------ + +Copyright (c) 2008-2015 Jesse Beder. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +3) License Notice for the Loki Library +-------------------------------------- + +Copyright (c) 2006 Richard Sposato +Copyright (c) 2006 Peter Kümmel + +Permission to use, copy, modify, distribute and sell this software for any +purpose is hereby granted without fee, provided that the above copyright +notice appear in all copies and that both that copyright notice and this +permission notice appear in supporting documentation. + +The authors make no representations about the suitability of this software +for any purpose. It is provided "as is" without express or implied warranty. + + +4) License Notice for the GRPC Library +-------------------------------------- + + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2016 gRPC Authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + diff --git a/scripts/create-new-actor.sh b/scripts/create-new-actor.sh index 4524e5a7d6..f6f6c5d047 100755 --- a/scripts/create-new-actor.sh +++ b/scripts/create-new-actor.sh @@ -2,6 +2,8 @@ set -eou pipefail +year="$(date '+%Y')" + usage() { echo "Usage:" echo "" @@ -17,6 +19,20 @@ create_header_text() { uuid_tag="$1" actor_name="$2" + echo "// Copyright ${year}-present MongoDB Inc." + echo "//" + echo "// Licensed under the Apache License, Version 2.0 (the \"License\");" + echo "// you may not use this file except in compliance with the License." + echo "// You may obtain a copy of the License at" + echo "//" + echo "// http://www.apache.org/licenses/LICENSE-2.0" + echo "//" + echo "// Unless required by applicable law or agreed to in writing, software" + echo "// distributed under the License is distributed on an \"AS IS\" BASIS," + echo "// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied." + echo "// See the License for the specific language governing permissions and" + echo "// limitations under the License." + echo "" echo "#ifndef $uuid_tag" echo "#define $uuid_tag" echo "" @@ -67,6 +83,20 @@ create_impl_text() { uuid_tag="$1" actor_name="$2" + echo "// Copyright ${year}-present MongoDB Inc." + echo "//" + echo "// Licensed under the Apache License, Version 2.0 (the \"License\");" + echo "// you may not use this file except in compliance with the License." + echo "// You may obtain a copy of the License at" + echo "//" + echo "// http://www.apache.org/licenses/LICENSE-2.0" + echo "//" + echo "// Unless required by applicable law or agreed to in writing, software" + echo "// distributed under the License is distributed on an \"AS IS\" BASIS," + echo "// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied." + echo "// See the License for the specific language governing permissions and" + echo "// limitations under the License." + echo "" echo "#include " echo "" echo "#include " @@ -180,6 +210,20 @@ create_test() { actor_name="$1" cat << EOF > "$(dirname "$0")/../src/gennylib/test/${actor_name}_test.cpp" +// Copyright ${year}-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "test.h" #include diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index dcd3546761..63dcc054ac 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2019-present MongoDB Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + add_subdirectory(third_party) add_subdirectory(gennylib) diff --git a/src/cast_core/CMakeLists.txt b/src/cast_core/CMakeLists.txt index b505ff9fc6..4136907186 100644 --- a/src/cast_core/CMakeLists.txt +++ b/src/cast_core/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2019-present MongoDB Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + project(cast_core VERSION 0.0.1 LANGUAGES CXX) # Pacify the CLion diff --git a/src/cast_core/include/cast_core/actors/HelloWorld.hpp b/src/cast_core/include/cast_core/actors/HelloWorld.hpp index 6450fbb56b..7261bb9efa 100644 --- a/src/cast_core/include/cast_core/actors/HelloWorld.hpp +++ b/src/cast_core/include/cast_core/actors/HelloWorld.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_FF3E897B_C747_468B_AAAC_EA6421DB0902_INCLUDED #define HEADER_FF3E897B_C747_468B_AAAC_EA6421DB0902_INCLUDED diff --git a/src/cast_core/include/cast_core/actors/Insert.hpp b/src/cast_core/include/cast_core/actors/Insert.hpp index ab3f8c2990..752f8915ea 100644 --- a/src/cast_core/include/cast_core/actors/Insert.hpp +++ b/src/cast_core/include/cast_core/actors/Insert.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_C7F4E568_590C_4D4D_B46F_766447E6AE31_INCLUDED #define HEADER_C7F4E568_590C_4D4D_B46F_766447E6AE31_INCLUDED diff --git a/src/cast_core/include/cast_core/actors/InsertRemove.hpp b/src/cast_core/include/cast_core/actors/InsertRemove.hpp index 326e1c945a..598a42d63c 100644 --- a/src/cast_core/include/cast_core/actors/InsertRemove.hpp +++ b/src/cast_core/include/cast_core/actors/InsertRemove.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_A5170346_CB57_4438_854F_20C3D99FF187_INCLUDED #define HEADER_A5170346_CB57_4438_854F_20C3D99FF187_INCLUDED diff --git a/src/cast_core/include/cast_core/actors/Loader.hpp b/src/cast_core/include/cast_core/actors/Loader.hpp index 6a401466a0..cb2a57a753 100644 --- a/src/cast_core/include/cast_core/actors/Loader.hpp +++ b/src/cast_core/include/cast_core/actors/Loader.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_1E8F3397_B82B_4814_9BB1_6C6D2E046E3A #define HEADER_1E8F3397_B82B_4814_9BB1_6C6D2E046E3A diff --git a/src/cast_core/include/cast_core/actors/MultiCollectionQuery.hpp b/src/cast_core/include/cast_core/actors/MultiCollectionQuery.hpp index 826b726404..4fc1f41701 100644 --- a/src/cast_core/include/cast_core/actors/MultiCollectionQuery.hpp +++ b/src/cast_core/include/cast_core/actors/MultiCollectionQuery.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_F86B8CA3_F0C0_4973_9FC8_3875A76D7610 #define HEADER_F86B8CA3_F0C0_4973_9FC8_3875A76D7610 diff --git a/src/cast_core/include/cast_core/actors/MultiCollectionUpdate.hpp b/src/cast_core/include/cast_core/actors/MultiCollectionUpdate.hpp index dcdc0e4f1e..516587f265 100644 --- a/src/cast_core/include/cast_core/actors/MultiCollectionUpdate.hpp +++ b/src/cast_core/include/cast_core/actors/MultiCollectionUpdate.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_D112CCC3_DF60_434E_A038_5A7AADED0E46 #define HEADER_D112CCC3_DF60_434E_A038_5A7AADED0E46 diff --git a/src/cast_core/include/cast_core/actors/RunCommand.hpp b/src/cast_core/include/cast_core/actors/RunCommand.hpp index 2a6df586ee..abcf3bf3e9 100644 --- a/src/cast_core/include/cast_core/actors/RunCommand.hpp +++ b/src/cast_core/include/cast_core/actors/RunCommand.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_32412A69_F128_4BC8_8335_520EE35F5381 #define HEADER_32412A69_F128_4BC8_8335_520EE35F5381 diff --git a/src/cast_core/include/cast_core/config/RunCommandConfig.hpp b/src/cast_core/include/cast_core/config/RunCommandConfig.hpp index 2e005a21ac..378654ff79 100644 --- a/src/cast_core/include/cast_core/config/RunCommandConfig.hpp +++ b/src/cast_core/include/cast_core/config/RunCommandConfig.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_AB6A8E35_4B60_43C7_BAD7_01B540596111 #define HEADER_AB6A8E35_4B60_43C7_BAD7_01B540596111 diff --git a/src/cast_core/src/actors/HelloWorld.cpp b/src/cast_core/src/actors/HelloWorld.cpp index e476510cbf..a26bdb9eb3 100644 --- a/src/cast_core/src/actors/HelloWorld.cpp +++ b/src/cast_core/src/actors/HelloWorld.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include #include diff --git a/src/cast_core/src/actors/Insert.cpp b/src/cast_core/src/actors/Insert.cpp index 40c962d978..e5963d500a 100644 --- a/src/cast_core/src/actors/Insert.cpp +++ b/src/cast_core/src/actors/Insert.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include #include diff --git a/src/cast_core/src/actors/InsertRemove.cpp b/src/cast_core/src/actors/InsertRemove.cpp index 6e0770e703..dba0a3de80 100644 --- a/src/cast_core/src/actors/InsertRemove.cpp +++ b/src/cast_core/src/actors/InsertRemove.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include #include diff --git a/src/cast_core/src/actors/Loader.cpp b/src/cast_core/src/actors/Loader.cpp index c6ca3cbc57..7b7f1430f3 100644 --- a/src/cast_core/src/actors/Loader.cpp +++ b/src/cast_core/src/actors/Loader.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include #include diff --git a/src/cast_core/src/actors/MultiCollectionQuery.cpp b/src/cast_core/src/actors/MultiCollectionQuery.cpp index 7d7ae2132f..ae0e448590 100644 --- a/src/cast_core/src/actors/MultiCollectionQuery.cpp +++ b/src/cast_core/src/actors/MultiCollectionQuery.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include #include diff --git a/src/cast_core/src/actors/MultiCollectionUpdate.cpp b/src/cast_core/src/actors/MultiCollectionUpdate.cpp index 9fea042107..07dd5068d2 100644 --- a/src/cast_core/src/actors/MultiCollectionUpdate.cpp +++ b/src/cast_core/src/actors/MultiCollectionUpdate.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include #include diff --git a/src/cast_core/src/actors/RunCommand.cpp b/src/cast_core/src/actors/RunCommand.cpp index 61d2b6e7f6..c5bfbb343d 100644 --- a/src/cast_core/src/actors/RunCommand.cpp +++ b/src/cast_core/src/actors/RunCommand.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include #include diff --git a/src/cast_core/src/cast_core.cpp b/src/cast_core/src/cast_core.cpp index e58c2b1f94..dcf2c6b84c 100644 --- a/src/cast_core/src/cast_core.cpp +++ b/src/cast_core/src/cast_core.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + /** * @namespace genny::actor All Genny Actors live in the genny::actor namespace. */ diff --git a/src/driver/CMakeLists.txt b/src/driver/CMakeLists.txt index 32997199ed..f2db072208 100644 --- a/src/driver/CMakeLists.txt +++ b/src/driver/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2019-present MongoDB Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + project(driver VERSION 0.0.1 LANGUAGES CXX) # Define an underlying core compilation unit diff --git a/src/driver/src/DefaultDriver.cpp b/src/driver/src/DefaultDriver.cpp index 7ca91a8c96..df9263ec2f 100644 --- a/src/driver/src/DefaultDriver.cpp +++ b/src/driver/src/DefaultDriver.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include #include #include diff --git a/src/driver/src/DefaultDriver.hpp b/src/driver/src/DefaultDriver.hpp index ba694c5960..f0761e04aa 100644 --- a/src/driver/src/DefaultDriver.hpp +++ b/src/driver/src/DefaultDriver.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_81A374DA_8E23_4E4D_96D2_619F27016F2A_INCLUDED #define HEADER_81A374DA_8E23_4E4D_96D2_619F27016F2A_INCLUDED diff --git a/src/driver/src/main.cpp b/src/driver/src/main.cpp index ab0986c434..ea0641c92f 100644 --- a/src/driver/src/main.cpp +++ b/src/driver/src/main.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include #include #include diff --git a/src/driver/test/Driver_test.cpp b/src/driver/test/Driver_test.cpp index 041216c4c5..d28452a75c 100644 --- a/src/driver/test/Driver_test.cpp +++ b/src/driver/test/Driver_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include #include #include diff --git a/src/gennylib/CMakeLists.txt b/src/gennylib/CMakeLists.txt index 913202a711..483e375cea 100644 --- a/src/gennylib/CMakeLists.txt +++ b/src/gennylib/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2019-present MongoDB Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # NB: this version number is duplicated in # src/CMakeList.txt, src/gennylib/CMakeLists.txt and src/gennylib/src/version.cpp project(gennylib VERSION 0.0.1 LANGUAGES CXX) diff --git a/src/gennylib/include/gennylib/Actor.hpp b/src/gennylib/include/gennylib/Actor.hpp index 0f391e7efa..b7cd094979 100644 --- a/src/gennylib/include/gennylib/Actor.hpp +++ b/src/gennylib/include/gennylib/Actor.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_00818641_6D7B_4A3D_AFC6_38CC0DBAD99B_INCLUDED #define HEADER_00818641_6D7B_4A3D_AFC6_38CC0DBAD99B_INCLUDED diff --git a/src/gennylib/include/gennylib/ActorProducer.hpp b/src/gennylib/include/gennylib/ActorProducer.hpp index bb268218c9..26426027b5 100644 --- a/src/gennylib/include/gennylib/ActorProducer.hpp +++ b/src/gennylib/include/gennylib/ActorProducer.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_F7182B1D_27AF_4F90_9BB0_1ADF86FD1AEC_INCLUDED #define HEADER_F7182B1D_27AF_4F90_9BB0_1ADF86FD1AEC_INCLUDED diff --git a/src/gennylib/include/gennylib/ActorVector.hpp b/src/gennylib/include/gennylib/ActorVector.hpp index 3aa58a60fb..6d6e1ee2c7 100644 --- a/src/gennylib/include/gennylib/ActorVector.hpp +++ b/src/gennylib/include/gennylib/ActorVector.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_728E42F5_3C88_4288_9D4A_945FA85DD895_INCLUDED #define HEADER_728E42F5_3C88_4288_9D4A_945FA85DD895_INCLUDED diff --git a/src/gennylib/include/gennylib/Cast.hpp b/src/gennylib/include/gennylib/Cast.hpp index 3c00cbf1a3..ffdca1e351 100644 --- a/src/gennylib/include/gennylib/Cast.hpp +++ b/src/gennylib/include/gennylib/Cast.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #pragma once #include diff --git a/src/gennylib/include/gennylib/DefaultRandom.hpp b/src/gennylib/include/gennylib/DefaultRandom.hpp index efa20abfcf..14d36c0ebe 100644 --- a/src/gennylib/include/gennylib/DefaultRandom.hpp +++ b/src/gennylib/include/gennylib/DefaultRandom.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_EBA231D0_AA7A_4008_A9E8_BD1C98D9023E_INCLUDED #define HEADER_EBA231D0_AA7A_4008_A9E8_BD1C98D9023E_INCLUDED diff --git a/src/gennylib/include/gennylib/ExecutionStrategy.hpp b/src/gennylib/include/gennylib/ExecutionStrategy.hpp index 13950a4117..d0a5b9d995 100644 --- a/src/gennylib/include/gennylib/ExecutionStrategy.hpp +++ b/src/gennylib/include/gennylib/ExecutionStrategy.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_0BE8D22D_E93B_48FE_BC5A_CFFF2E05D861 #define HEADER_0BE8D22D_E93B_48FE_BC5A_CFFF2E05D861 diff --git a/src/gennylib/include/gennylib/InvalidConfigurationException.hpp b/src/gennylib/include/gennylib/InvalidConfigurationException.hpp index d63711bd01..87db9e7c38 100644 --- a/src/gennylib/include/gennylib/InvalidConfigurationException.hpp +++ b/src/gennylib/include/gennylib/InvalidConfigurationException.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_E4B4F388_CF15_44CC_8782_EA61F79FC2A0_INCLUDED #define HEADER_E4B4F388_CF15_44CC_8782_EA61F79FC2A0_INCLUDED diff --git a/src/gennylib/include/gennylib/MetricsReporter.hpp b/src/gennylib/include/gennylib/MetricsReporter.hpp index 3ae4c14dd4..f8de5786e2 100644 --- a/src/gennylib/include/gennylib/MetricsReporter.hpp +++ b/src/gennylib/include/gennylib/MetricsReporter.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_1EB08DF5_3853_4277_8B3D_4542552B8154_INCLUDED #define HEADER_1EB08DF5_3853_4277_8B3D_4542552B8154_INCLUDED diff --git a/src/gennylib/include/gennylib/MongoException.hpp b/src/gennylib/include/gennylib/MongoException.hpp index 7edb42b740..4841902b3e 100644 --- a/src/gennylib/include/gennylib/MongoException.hpp +++ b/src/gennylib/include/gennylib/MongoException.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_200B4990_6EF5_4516_98E7_41033D1BDCF7_INCLUDED #define HEADER_200B4990_6EF5_4516_98E7_41033D1BDCF7_INCLUDED diff --git a/src/gennylib/include/gennylib/Orchestrator.hpp b/src/gennylib/include/gennylib/Orchestrator.hpp index 6cf7d21e5e..0e5120c9b4 100644 --- a/src/gennylib/include/gennylib/Orchestrator.hpp +++ b/src/gennylib/include/gennylib/Orchestrator.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_8615FA7A_9344_43E1_A102_889F47CCC1A6_INCLUDED #define HEADER_8615FA7A_9344_43E1_A102_889F47CCC1A6_INCLUDED diff --git a/src/gennylib/include/gennylib/PhaseLoop.hpp b/src/gennylib/include/gennylib/PhaseLoop.hpp index d22f505e3b..4dce104042 100644 --- a/src/gennylib/include/gennylib/PhaseLoop.hpp +++ b/src/gennylib/include/gennylib/PhaseLoop.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_10276107_F885_4F2C_B99B_014AF3B4504A_INCLUDED #define HEADER_10276107_F885_4F2C_B99B_014AF3B4504A_INCLUDED diff --git a/src/gennylib/include/gennylib/PoolFactory.hpp b/src/gennylib/include/gennylib/PoolFactory.hpp index 384c9868dc..8aef14bc3d 100644 --- a/src/gennylib/include/gennylib/PoolFactory.hpp +++ b/src/gennylib/include/gennylib/PoolFactory.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_3BB17688_900D_4AFB_B736_C9EC8DA9E33B #define HEADER_3BB17688_900D_4AFB_B736_C9EC8DA9E33B diff --git a/src/gennylib/include/gennylib/config/ExecutionStrategyOptions.hpp b/src/gennylib/include/gennylib/config/ExecutionStrategyOptions.hpp index 1a22b99b52..2489512131 100644 --- a/src/gennylib/include/gennylib/config/ExecutionStrategyOptions.hpp +++ b/src/gennylib/include/gennylib/config/ExecutionStrategyOptions.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_4E5CB3A4_FE6D_49B3_A31A_4237238C5A31 #define HEADER_4E5CB3A4_FE6D_49B3_A31A_4237238C5A31 diff --git a/src/gennylib/include/gennylib/context.hpp b/src/gennylib/include/gennylib/context.hpp index 08f571393c..5e822b37f0 100644 --- a/src/gennylib/include/gennylib/context.hpp +++ b/src/gennylib/include/gennylib/context.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_0E802987_B910_4661_8FAB_8B952A1E453B_INCLUDED #define HEADER_0E802987_B910_4661_8FAB_8B952A1E453B_INCLUDED diff --git a/src/gennylib/include/gennylib/conventions.hpp b/src/gennylib/include/gennylib/conventions.hpp index 1205e124ad..5aeb8beca2 100644 --- a/src/gennylib/include/gennylib/conventions.hpp +++ b/src/gennylib/include/gennylib/conventions.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_CC9B7EF0_9FB9_4AD4_B64C_DC7AE48F72A6_INCLUDED #define HEADER_CC9B7EF0_9FB9_4AD4_B64C_DC7AE48F72A6_INCLUDED diff --git a/src/gennylib/include/gennylib/metrics.hpp b/src/gennylib/include/gennylib/metrics.hpp index 1768dae1a0..1178a652ae 100644 --- a/src/gennylib/include/gennylib/metrics.hpp +++ b/src/gennylib/include/gennylib/metrics.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_058638D3_7069_42DC_809F_5DB533FCFBA3_INCLUDED #define HEADER_058638D3_7069_42DC_809F_5DB533FCFBA3_INCLUDED diff --git a/src/gennylib/include/gennylib/value_generators.hpp b/src/gennylib/include/gennylib/value_generators.hpp index 52e907a8c9..9c22ee3311 100644 --- a/src/gennylib/include/gennylib/value_generators.hpp +++ b/src/gennylib/include/gennylib/value_generators.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_E6E05F14_BE21_4A9B_822D_FFD669CFB1B4_INCLUDED #define HEADER_E6E05F14_BE21_4A9B_822D_FFD669CFB1B4_INCLUDED diff --git a/src/gennylib/include/gennylib/version.hpp b/src/gennylib/include/gennylib/version.hpp index d1a067bc63..c675c98744 100644 --- a/src/gennylib/include/gennylib/version.hpp +++ b/src/gennylib/include/gennylib/version.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_92D78FE6_A97C_4F86_A282_3A27352A24F6_INCLUDED #define HEADER_92D78FE6_A97C_4F86_A282_3A27352A24F6_INCLUDED diff --git a/src/gennylib/src/Actor.cpp b/src/gennylib/src/Actor.cpp index 768a3d3f8a..36eabd1877 100644 --- a/src/gennylib/src/Actor.cpp +++ b/src/gennylib/src/Actor.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include #include diff --git a/src/gennylib/src/ActorProducer.cpp b/src/gennylib/src/ActorProducer.cpp index 989814a73d..355005047f 100644 --- a/src/gennylib/src/ActorProducer.cpp +++ b/src/gennylib/src/ActorProducer.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include #include diff --git a/src/gennylib/src/Cast.cpp b/src/gennylib/src/Cast.cpp index ca52195db5..70c1751400 100644 --- a/src/gennylib/src/Cast.cpp +++ b/src/gennylib/src/Cast.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include #include diff --git a/src/gennylib/src/DefaultRandom.cpp b/src/gennylib/src/DefaultRandom.cpp index 5389cfd2a7..98df0587d0 100644 --- a/src/gennylib/src/DefaultRandom.cpp +++ b/src/gennylib/src/DefaultRandom.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "gennylib/DefaultRandom.hpp" namespace genny::V1 { diff --git a/src/gennylib/src/ExecutionStrategy.cpp b/src/gennylib/src/ExecutionStrategy.cpp index f764af1298..f00eb06839 100644 --- a/src/gennylib/src/ExecutionStrategy.cpp +++ b/src/gennylib/src/ExecutionStrategy.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include #include diff --git a/src/gennylib/src/Orchestrator.cpp b/src/gennylib/src/Orchestrator.cpp index 97199e8214..ab94c8a37d 100644 --- a/src/gennylib/src/Orchestrator.cpp +++ b/src/gennylib/src/Orchestrator.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include // std::max #include #include diff --git a/src/gennylib/src/PoolFactory.cpp b/src/gennylib/src/PoolFactory.cpp index 75e08a181c..257918dce7 100644 --- a/src/gennylib/src/PoolFactory.cpp +++ b/src/gennylib/src/PoolFactory.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include #include diff --git a/src/gennylib/src/context.cpp b/src/gennylib/src/context.cpp index 5f8c69b372..be96f4594d 100644 --- a/src/gennylib/src/context.cpp +++ b/src/gennylib/src/context.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include #include diff --git a/src/gennylib/src/value_generators/generators-private.cpp b/src/gennylib/src/value_generators/generators-private.cpp index 4c8117b54f..7ddb8735d2 100644 --- a/src/gennylib/src/value_generators/generators-private.cpp +++ b/src/gennylib/src/value_generators/generators-private.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "generators-private.hh" #include "../log.hh" #include diff --git a/src/gennylib/src/value_generators/parser.cpp b/src/gennylib/src/value_generators/parser.cpp index de441cecb7..c9895ec925 100644 --- a/src/gennylib/src/value_generators/parser.cpp +++ b/src/gennylib/src/value_generators/parser.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "parser.hh" #include diff --git a/src/gennylib/src/value_generators/value_generators.cpp b/src/gennylib/src/value_generators/value_generators.cpp index cb6d9a91c6..dd76bfc538 100644 --- a/src/gennylib/src/value_generators/value_generators.cpp +++ b/src/gennylib/src/value_generators/value_generators.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "generators-private.hh" #include diff --git a/src/gennylib/src/version.cpp b/src/gennylib/src/version.cpp index a23a680ebc..15e1320a31 100644 --- a/src/gennylib/src/version.cpp +++ b/src/gennylib/src/version.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include #include "log.hh" diff --git a/src/gennylib/test/ActorHelper.cpp b/src/gennylib/test/ActorHelper.cpp index f75dddbaf9..f116094e69 100644 --- a/src/gennylib/test/ActorHelper.cpp +++ b/src/gennylib/test/ActorHelper.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "ActorHelper.hpp" #include diff --git a/src/gennylib/test/ActorHelper.hpp b/src/gennylib/test/ActorHelper.hpp index 556232ff08..0853d98dcc 100644 --- a/src/gennylib/test/ActorHelper.hpp +++ b/src/gennylib/test/ActorHelper.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_C4365A3F_5581_470B_8B54_B46A42795A62_INCLUDED #define HEADER_C4365A3F_5581_470B_8B54_B46A42795A62_INCLUDED diff --git a/src/gennylib/test/ActorHelper_test.cpp b/src/gennylib/test/ActorHelper_test.cpp index 71b8e9664c..b3aef8b39a 100644 --- a/src/gennylib/test/ActorHelper_test.cpp +++ b/src/gennylib/test/ActorHelper_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "test.h" #include diff --git a/src/gennylib/test/Cast_test.cpp b/src/gennylib/test/Cast_test.cpp index 3411e8023d..b4240a4b9f 100644 --- a/src/gennylib/test/Cast_test.cpp +++ b/src/gennylib/test/Cast_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "test.h" #include diff --git a/src/gennylib/test/DefaultRandom_test.cpp b/src/gennylib/test/DefaultRandom_test.cpp index ee51536fdf..e67c0ed725 100644 --- a/src/gennylib/test/DefaultRandom_test.cpp +++ b/src/gennylib/test/DefaultRandom_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "test.h" #include diff --git a/src/gennylib/test/ExecutionStrategy_test.cpp b/src/gennylib/test/ExecutionStrategy_test.cpp index 67e5c0f108..67145ffb0c 100644 --- a/src/gennylib/test/ExecutionStrategy_test.cpp +++ b/src/gennylib/test/ExecutionStrategy_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "test.h" #include "ActorHelper.hpp" diff --git a/src/gennylib/test/MongoTestFixture.cpp b/src/gennylib/test/MongoTestFixture.cpp index a660414314..5539f8091c 100644 --- a/src/gennylib/test/MongoTestFixture.cpp +++ b/src/gennylib/test/MongoTestFixture.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "MongoTestFixture.hpp" #include diff --git a/src/gennylib/test/MongoTestFixture.hpp b/src/gennylib/test/MongoTestFixture.hpp index 248a32df17..f31fece7a6 100644 --- a/src/gennylib/test/MongoTestFixture.hpp +++ b/src/gennylib/test/MongoTestFixture.hpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #ifndef HEADER_D9091084_CB09_4108_A553_5D0EC18C132F_INCLUDED #define HEADER_D9091084_CB09_4108_A553_5D0EC18C132F_INCLUDED diff --git a/src/gennylib/test/PhaseLoop_benchmark.cpp b/src/gennylib/test/PhaseLoop_benchmark.cpp index 34593a98de..ae1df5390f 100644 --- a/src/gennylib/test/PhaseLoop_benchmark.cpp +++ b/src/gennylib/test/PhaseLoop_benchmark.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "test.h" #include diff --git a/src/gennylib/test/PhaseLoop_test.cpp b/src/gennylib/test/PhaseLoop_test.cpp index ce9ce5a14c..482dbaee79 100644 --- a/src/gennylib/test/PhaseLoop_test.cpp +++ b/src/gennylib/test/PhaseLoop_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "test.h" #include diff --git a/src/gennylib/test/PoolFactory_test.cpp b/src/gennylib/test/PoolFactory_test.cpp index 90d8d36a18..dd14c249f2 100644 --- a/src/gennylib/test/PoolFactory_test.cpp +++ b/src/gennylib/test/PoolFactory_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "test.h" #include diff --git a/src/gennylib/test/RunCommandActor_test.cpp b/src/gennylib/test/RunCommandActor_test.cpp index 214f7e0385..36451641d5 100644 --- a/src/gennylib/test/RunCommandActor_test.cpp +++ b/src/gennylib/test/RunCommandActor_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "ActorHelper.hpp" #include "test.h" diff --git a/src/gennylib/test/actors_test.cpp b/src/gennylib/test/actors_test.cpp index aeb56e0248..a8704ed65c 100644 --- a/src/gennylib/test/actors_test.cpp +++ b/src/gennylib/test/actors_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "test.h" #include diff --git a/src/gennylib/test/context_test.cpp b/src/gennylib/test/context_test.cpp index d70be22e38..ca03206514 100644 --- a/src/gennylib/test/context_test.cpp +++ b/src/gennylib/test/context_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "test.h" #include diff --git a/src/gennylib/test/conventions_test.cpp b/src/gennylib/test/conventions_test.cpp index 6a32c7b191..f56b2ddac7 100644 --- a/src/gennylib/test/conventions_test.cpp +++ b/src/gennylib/test/conventions_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "test.h" #include diff --git a/src/gennylib/test/document_test.cpp b/src/gennylib/test/document_test.cpp index 01c1fc03bb..baac3142b8 100644 --- a/src/gennylib/test/document_test.cpp +++ b/src/gennylib/test/document_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "test.h" #include diff --git a/src/gennylib/test/metrics_test.cpp b/src/gennylib/test/metrics_test.cpp index fb84374393..2aae304d91 100644 --- a/src/gennylib/test/metrics_test.cpp +++ b/src/gennylib/test/metrics_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "test.h" #include diff --git a/src/gennylib/test/orchestrator_benchmark.cpp b/src/gennylib/test/orchestrator_benchmark.cpp index b9721fcf90..3a694b30ab 100644 --- a/src/gennylib/test/orchestrator_benchmark.cpp +++ b/src/gennylib/test/orchestrator_benchmark.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "test.h" #include diff --git a/src/gennylib/test/orchestrator_test.cpp b/src/gennylib/test/orchestrator_test.cpp index 7c86a364ee..d071f49411 100644 --- a/src/gennylib/test/orchestrator_test.cpp +++ b/src/gennylib/test/orchestrator_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "test.h" #include diff --git a/src/gennylib/test/version_test.cpp b/src/gennylib/test/version_test.cpp index 54de0cbea5..c6b7090085 100644 --- a/src/gennylib/test/version_test.cpp +++ b/src/gennylib/test/version_test.cpp @@ -1,3 +1,17 @@ +// Copyright 2019-present MongoDB Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #include "test.h" #include diff --git a/src/python/genny/__init__.py b/src/python/genny/__init__.py index e69de29bb2..0b40b31d23 100644 --- a/src/python/genny/__init__.py +++ b/src/python/genny/__init__.py @@ -0,0 +1,14 @@ +# Copyright 2019-present MongoDB Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + diff --git a/src/python/genny/metrics_output_parser.py b/src/python/genny/metrics_output_parser.py old mode 100755 new mode 100644 index 7b24759e18..6e2b40a49b --- a/src/python/genny/metrics_output_parser.py +++ b/src/python/genny/metrics_output_parser.py @@ -1,3 +1,17 @@ +# Copyright 2019-present MongoDB Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #!/usr/bin/env python import json diff --git a/src/python/genny/perf_json.py b/src/python/genny/perf_json.py index fd6b5a09a6..2ec8298775 100644 --- a/src/python/genny/perf_json.py +++ b/src/python/genny/perf_json.py @@ -1,3 +1,17 @@ +# Copyright 2019-present MongoDB Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Module for interacting with the (legacy) perf.json output format for metrics data. """ diff --git a/src/python/setup.py b/src/python/setup.py index b43ae3b97b..2976503ffa 100644 --- a/src/python/setup.py +++ b/src/python/setup.py @@ -1,3 +1,17 @@ +# Copyright 2019-present MongoDB Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from setuptools import setup setup(name='genny', diff --git a/src/python/tests/__init__.py b/src/python/tests/__init__.py index e69de29bb2..0b40b31d23 100644 --- a/src/python/tests/__init__.py +++ b/src/python/tests/__init__.py @@ -0,0 +1,14 @@ +# Copyright 2019-present MongoDB Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + diff --git a/src/python/tests/metrics_output_parser_test.py b/src/python/tests/metrics_output_parser_test.py index 874bbf17ac..674b9fcd9c 100644 --- a/src/python/tests/metrics_output_parser_test.py +++ b/src/python/tests/metrics_output_parser_test.py @@ -1,3 +1,17 @@ +# Copyright 2019-present MongoDB Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Tests for metrics_output_parser""" import unittest diff --git a/src/python/tests/parser_test_lib.py b/src/python/tests/parser_test_lib.py index 8adeca9131..f6ef805a20 100644 --- a/src/python/tests/parser_test_lib.py +++ b/src/python/tests/parser_test_lib.py @@ -1,3 +1,17 @@ +# Copyright 2019-present MongoDB Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os import genny.metrics_output_parser as parser diff --git a/src/python/tests/perf_json_test.py b/src/python/tests/perf_json_test.py index 482b91d262..16b322664e 100644 --- a/src/python/tests/perf_json_test.py +++ b/src/python/tests/perf_json_test.py @@ -1,3 +1,17 @@ +# Copyright 2019-present MongoDB Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import unittest import genny.perf_json as perf_json