1Apache License 2Version 2.0, January 2004 3http://www.apache.org/licenses/ 4 5TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 71. Definitions. 8 9"License" shall mean the terms and conditions for use, reproduction, and 10distribution as defined by Sections 1 through 9 of this document. 11 12"Licensor" shall mean the copyright owner or entity authorized by the 13copyright owner that is granting the License. 14 15"Legal Entity" shall mean the union of the acting entity and all other 16entities that control, are controlled by, or are under common control with 17that entity. For the purposes of this definition, "control" means (i) the 18power, direct or indirect, to cause the direction or management of such 19entity, whether by contract or otherwise, or (ii) ownership of fifty 20percent (50%) or more of the outstanding shares, or (iii) beneficial 21ownership of such entity. 22 23"You" (or "Your") shall mean an individual or Legal Entity exercising 24permissions granted by this License. 25 26"Source" form shall mean the preferred form for making modifications, 27including but not limited to software source code, documentation source, 28and configuration files. 29 30"Object" form shall mean any form resulting from mechanical transformation 31or translation of a Source form, including but not limited to compiled 32object code, generated documentation, and conversions to other media types. 33 34"Work" shall mean the work of authorship, whether in Source or Object form, 35made available under the License, as indicated by a copyright notice that 36is included in or attached to the work (an example is provided in the 37Appendix below). 38 39"Derivative Works" shall mean any work, whether in Source or Object form, 40that is based on (or derived from) the Work and for which the editorial 41revisions, annotations, elaborations, or other modifications represent, as 42a whole, an original work of authorship. For the purposes of this License, 43Derivative Works shall not include works that remain separable from, or 44merely link (or bind by name) to the interfaces of, the Work and Derivative 45Works thereof. 46 47"Contribution" shall mean any work of authorship, including the original 48version of the Work and any modifications or additions to that Work or 49Derivative Works thereof, that is intentionally submitted to Licensor for 50inclusion in the Work by the copyright owner or by an individual or Legal 51Entity authorized to submit on behalf of the copyright owner. For the 52purposes of this definition, "submitted" means any form of electronic, 53verbal, or written communication sent to the Licensor or its 54representatives, including but not limited to communication on electronic 55mailing lists, source code control systems, and issue tracking systems that 56are managed by, or on behalf of, the Licensor for the purpose of discussing 57and improving the Work, but excluding communication that is conspicuously 58marked or otherwise designated in writing by the copyright owner as "Not a 59Contribution." 60 61"Contributor" shall mean Licensor and any individual or Legal Entity on 62behalf of whom a Contribution has been received by Licensor and 63subsequently incorporated within the Work. 64 652. Grant of Copyright License. Subject to the terms and conditions of this 66License, each Contributor hereby grants to You a perpetual, worldwide, 67non-exclusive, no-charge, royalty-free, irrevocable copyright license to 68reproduce, prepare Derivative Works of, publicly display, publicly perform, 69sublicense, and distribute the Work and such Derivative Works in Source or 70Object form. 71 723. Grant of Patent License. Subject to the terms and conditions of this 73License, each Contributor hereby grants to You a perpetual, worldwide, 74non-exclusive, no-charge, royalty-free, irrevocable (except as stated in 75this section) patent license to make, have made, use, offer to sell, sell, 76import, and otherwise transfer the Work, where such license applies only to 77those patent claims licensable by such Contributor that are necessarily 78infringed by their Contribution(s) alone or by combination of their 79Contribution(s) with the Work to which such Contribution(s) was submitted. 80If You institute patent litigation against any entity (including a 81cross-claim or counterclaim in a lawsuit) alleging that the Work or a 82Contribution incorporated within the Work constitutes direct or 83contributory patent infringement, then any patent licenses granted to You 84under this License for that Work shall terminate as of the date such 85litigation is filed. 86 874. Redistribution. You may reproduce and distribute copies of the Work or 88Derivative Works thereof in any medium, with or without modifications, and 89in Source or Object form, provided that You meet the following conditions: 90 91 1. You must give any other recipients of the Work or Derivative Works a 92copy of this License; and 93 94 2. You must cause any modified files to carry prominent notices stating 95that You changed the files; and 96 97 3. You must retain, in the Source form of any Derivative Works that You 98distribute, all copyright, patent, trademark, and attribution notices from 99the Source form of the Work, excluding those notices that do not pertain to 100any part of the Derivative Works; and 101 102 4. If the Work includes a "NOTICE" text file as part of its 103distribution, then any Derivative Works that You distribute must include a 104readable copy of the attribution notices contained within such NOTICE file, 105excluding those notices that do not pertain to any part of the Derivative 106Works, in at least one of the following places: within a NOTICE text file 107distributed as part of the Derivative Works; within the Source form or 108documentation, if provided along with the Derivative Works; or, within a 109display generated by the Derivative Works, if and wherever such third-party 110notices normally appear. The contents of the NOTICE file are for 111informational purposes only and do not modify the License. You may add Your 112own attribution notices within Derivative Works that You distribute, 113alongside or as an addendum to the NOTICE text from the Work, provided that 114such additional attribution notices cannot be construed as modifying the 115License. 116 117You may add Your own copyright statement to Your modifications and may 118provide additional or different license terms and conditions for use, 119reproduction, or distribution of Your modifications, or for any such 120Derivative Works as a whole, provided Your use, reproduction, and 121distribution of the Work otherwise complies with the conditions stated in 122this License. 123 1245. Submission of Contributions. Unless You explicitly state otherwise, any 125Contribution intentionally submitted for inclusion in the Work by You to 126the Licensor shall be under the terms and conditions of this License, 127without any additional terms or conditions. Notwithstanding the above, 128nothing herein shall supersede or modify the terms of any separate license 129agreement you may have executed with Licensor regarding such Contributions. 130 1316. Trademarks. This License does not grant permission to use the trade 132names, trademarks, service marks, or product names of the Licensor, except 133as required for reasonable and customary use in describing the origin of 134the Work and reproducing the content of the NOTICE file. 135 1367. Disclaimer of Warranty. Unless required by applicable law or agreed to 137in writing, Licensor provides the Work (and each Contributor provides its 138Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 139KIND, either express or implied, including, without limitation, any 140warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or 141FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for 142determining the appropriateness of using or redistributing the Work and 143assume any risks associated with Your exercise of permissions under this 144License. 145 1468. Limitation of Liability. In no event and under no legal theory, whether 147in tort (including negligence), contract, or otherwise, unless required by 148applicable law (such as deliberate and grossly negligent acts) or agreed to 149in writing, shall any Contributor be liable to You for damages, including 150any direct, indirect, special, incidental, or consequential damages of any 151character arising as a result of this License or out of the use or 152inability to use the Work (including but not limited to damages for loss of 153goodwill, work stoppage, computer failure or malfunction, or any and all 154other commercial damages or losses), even if such Contributor has been 155advised of the possibility of such damages. 156 1579. Accepting Warranty or Additional Liability. While redistributing the 158Work or Derivative Works thereof, You may choose to offer, and charge a fee 159for, acceptance of support, warranty, indemnity, or other liability 160obligations and/or rights consistent with this License. However, in 161accepting such obligations, You may act only on Your own behalf and on Your 162sole responsibility, not on behalf of any other Contributor, and only if 163You agree to indemnify, defend, and hold each Contributor harmless for any 164liability incurred by, or claims asserted against, such Contributor by 165reason of your accepting any such warranty or additional liability. 166 167END OF TERMS AND CONDITIONS 168 169APPENDIX: How to apply the Apache License to your work 170 171To apply the Apache License to your work, attach the following boilerplate 172notice, with the fields enclosed by brackets "[]" replaced with your own 173identifying information. (Don't include the brackets!) The text should be 174enclosed in the appropriate comment syntax for the file format. We also 175recommend that a file or class name and description of purpose be included 176on the same "printed page" as the copyright notice for easier 177identification within third-party archives. 178 179 Copyright [yyyy] [name of copyright owner] 180 181 Licensed under the Apache License, Version 2.0 (the "License"); you may 182 not use this file except in compliance with the License. You may obtain a 183 copy of the License at 184 185 http://www.apache.org/licenses/LICENSE-2.0 186 187 Unless required by applicable 188 law or agreed to in writing, software distributed under the License is 189 distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 190 KIND, either express or implied. See the License for the specific language 191 governing permissions and limitations under the License. 192