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