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