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