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