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