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