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