codekingpro/portable-devtools
114k
1## For ANS Enhancements
2
3Copyright (c) Meta Platforms, Inc. and affiliates.
4
5Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
7The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
9THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10
11## For Zstandard software
12
13Copyright (c) 2016-present, Facebook, Inc. All rights reserved.
14
15Redistribution and use in source and binary forms, with or without modification,
16are permitted provided that the following conditions are met:
17
18 * Redistributions of source code must retain the above copyright notice, this
19 list of conditions and the following disclaimer.
20
21 * Redistributions in binary form must reproduce the above copyright notice,
22 this list of conditions and the following disclaimer in the documentation
23 and/or other materials provided with the distribution.
24
25 * Neither the name Facebook nor the names of its contributors may be used to
26 endorse or promote products derived from this software without specific
27 prior written permission.
28
29THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
30ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
31WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
32DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
33ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
34(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
35LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
36ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
38SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
40## For Deflate decompression
41
42Copyright (C) 2002-2013 Mark Adler, all rights reserved
43version 2.3, 21 Jan 2013
44
45This software is provided 'as-is', without any express or implied
46warranty. In no event will the author be held liable for any damages
47arising from the use of this software.
48
49Permission is granted to anyone to use this software for any purpose,
50including commercial applications, and to alter it and redistribute it
51freely, subject to the following restrictions:
52
531. The origin of this software must not be misrepresented; you must not
54claim that you wrote the original software. If you use this software
55in a product, an acknowledgment in the product documentation would be
56appreciated but is not required.
572. Altered source versions must be plainly marked as such, and must not be
58misrepresented as being the original software.
593. This notice may not be removed or altered from any source distribution.
60
61Mark Adler madler@alumni.caltech.edu
62
63
64## For fmt
65
66Copyright (c) 2012 - present, Victor Zverovich and {fmt} contributors
67License text (https://github.com/fmtlib/fmt/blob/master/LICENSE)
68
69Permission is hereby granted, free of charge, to any person obtaining
70a copy of this software and associated documentation files (the
71"Software"), to deal in the Software without restriction, including
72without limitation the rights to use, copy, modify, merge, publish,
73distribute, sublicense, and/or sell copies of the Software, and to
74permit persons to whom the Software is furnished to do so, subject to
75the following conditions:
76
77The above copyright notice and this permission notice shall be
78included in all copies or substantial portions of the Software.
79
80THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
81EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
82MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
83NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
84LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
85OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
86WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
87
88--- Optional exception to the license ---
89
90As an exception, if, as a result of your compiling your source code, portions
91of this Software are embedded into a machine-executable object form of such
92source code, you may redistribute such embedded portions in such object form
93without including the above copyright and permission notices.
94
95## For pybind11
96
97Copyright (c) 2016 Wenzel Jakob <wenzel.jakob@epfl.ch>, All rights reserved.
98License text (https://github.com/pybind/pybind11/blob/master/LICENSE)
99
100Redistribution and use in source and binary forms, with or without
101modification, are permitted provided that the following conditions are met:
102
1031. Redistributions of source code must retain the above copyright notice, this
104 list of conditions and the following disclaimer.
105
1062. Redistributions in binary form must reproduce the above copyright notice,
107 this list of conditions and the following disclaimer in the documentation
108 and/or other materials provided with the distribution.
109
1103. Neither the name of the copyright holder nor the names of its contributors
111 may be used to endorse or promote products derived from this software
112 without specific prior written permission.
113
114THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
115ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
116WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
117DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
118FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
119DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
120SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
121CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
122OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
123OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
124
125Please also refer to the file .github/CONTRIBUTING.md, which clarifies licensing of
126external contributions to this project including patches, pull requests, etc.
127
128## For dlpack
129
130License text (https://github.com/dmlc/dlpack/blob/main/LICENSE)
131 Apache License
132 Version 2.0, January 2004
133 http://www.apache.org/licenses/
134
135TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
136
1371. Definitions.
138
139 "License" shall mean the terms and conditions for use, reproduction,
140 and distribution as defined by Sections 1 through 9 of this document.
141
142 "Licensor" shall mean the copyright owner or entity authorized by
143 the copyright owner that is granting the License.
144
145 "Legal Entity" shall mean the union of the acting entity and all
146 other entities that control, are controlled by, or are under common
147 control with that entity. For the purposes of this definition,
148 "control" means (i) the power, direct or indirect, to cause the
149 direction or management of such entity, whether by contract or
150 otherwise, or (ii) ownership of fifty percent (50%) or more of the
151 outstanding shares, or (iii) beneficial ownership of such entity.
152
153 "You" (or "Your") shall mean an individual or Legal Entity
154 exercising permissions granted by this License.
155
156 "Source" form shall mean the preferred form for making modifications,
157 including but not limited to software source code, documentation
158 source, and configuration files.
159
160 "Object" form shall mean any form resulting from mechanical
161 transformation or translation of a Source form, including but
162 not limited to compiled object code, generated documentation,
163 and conversions to other media types.
164
165 "Work" shall mean the work of authorship, whether in Source or
166 Object form, made available under the License, as indicated by a
167 copyright notice that is included in or attached to the work
168 (an example is provided in the Appendix below).
169
170 "Derivative Works" shall mean any work, whether in Source or Object
171 form, that is based on (or derived from) the Work and for which the
172 editorial revisions, annotations, elaborations, or other modifications
173 represent, as a whole, an original work of authorship. For the purposes
174 of this License, Derivative Works shall not include works that remain
175 separable from, or merely link (or bind by name) to the interfaces of,
176 the Work and Derivative Works thereof.
177
178 "Contribution" shall mean any work of authorship, including
179 the original version of the Work and any modifications or additions
180 to that Work or Derivative Works thereof, that is intentionally
181 submitted to Licensor for inclusion in the Work by the copyright owner
182 or by an individual or Legal Entity authorized to submit on behalf of
183 the copyright owner. For the purposes of this definition, "submitted"
184 means any form of electronic, verbal, or written communication sent
185 to the Licensor or its representatives, including but not limited to
186 communication on electronic mailing lists, source code control systems,
187 and issue tracking systems that are managed by, or on behalf of, the
188 Licensor for the purpose of discussing and improving the Work, but
189 excluding communication that is conspicuously marked or otherwise
190 designated in writing by the copyright owner as "Not a Contribution."
191
192 "Contributor" shall mean Licensor and any individual or Legal Entity
193 on behalf of whom a Contribution has been received by Licensor and
194 subsequently incorporated within the Work.
195
1962. Grant of Copyright License. Subject to the terms and conditions of
197 this License, each Contributor hereby grants to You a perpetual,
198 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
199 copyright license to reproduce, prepare Derivative Works of,
200 publicly display, publicly perform, sublicense, and distribute the
201 Work and such Derivative Works in Source or Object form.
202
2033. Grant of Patent License. Subject to the terms and conditions of
204 this License, each Contributor hereby grants to You a perpetual,
205 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
206 (except as stated in this section) patent license to make, have made,
207 use, offer to sell, sell, import, and otherwise transfer the Work,
208 where such license applies only to those patent claims licensable
209 by such Contributor that are necessarily infringed by their
210 Contribution(s) alone or by combination of their Contribution(s)
211 with the Work to which such Contribution(s) was submitted. If You
212 institute patent litigation against any entity (including a
213 cross-claim or counterclaim in a lawsuit) alleging that the Work
214 or a Contribution incorporated within the Work constitutes direct
215 or contributory patent infringement, then any patent licenses
216 granted to You under this License for that Work shall terminate
217 as of the date such litigation is filed.
218
2194. Redistribution. You may reproduce and distribute copies of the
220 Work or Derivative Works thereof in any medium, with or without
221 modifications, and in Source or Object form, provided that You
222 meet the following conditions:
223
224 (a) You must give any other recipients of the Work or
225 Derivative Works a copy of this License; and
226
227 (b) You must cause any modified files to carry prominent notices
228 stating that You changed the files; and
229
230 (c) You must retain, in the Source form of any Derivative Works
231 that You distribute, all copyright, patent, trademark, and
232 attribution notices from the Source form of the Work,
233 excluding those notices that do not pertain to any part of
234 the Derivative Works; and
235
236 (d) If the Work includes a "NOTICE" text file as part of its
237 distribution, then any Derivative Works that You distribute must
238 include a readable copy of the attribution notices contained
239 within such NOTICE file, excluding those notices that do not
240 pertain to any part of the Derivative Works, in at least one
241 of the following places: within a NOTICE text file distributed
242 as part of the Derivative Works; within the Source form or
243 documentation, if provided along with the Derivative Works; or,
244 within a display generated by the Derivative Works, if and
245 wherever such third-party notices normally appear. The contents
246 of the NOTICE file are for informational purposes only and
247 do not modify the License. You may add Your own attribution
248 notices within Derivative Works that You distribute, alongside
249 or as an addendum to the NOTICE text from the Work, provided
250 that such additional attribution notices cannot be construed
251 as modifying the License.
252
253 You may add Your own copyright statement to Your modifications and
254 may provide additional or different license terms and conditions
255 for use, reproduction, or distribution of Your modifications, or
256 for any such Derivative Works as a whole, provided Your use,
257 reproduction, and distribution of the Work otherwise complies with
258 the conditions stated in this License.
259
2605. Submission of Contributions. Unless You explicitly state otherwise,
261 any Contribution intentionally submitted for inclusion in the Work
262 by You to the Licensor shall be under the terms and conditions of
263 this License, without any additional terms or conditions.
264 Notwithstanding the above, nothing herein shall supersede or modify
265 the terms of any separate license agreement you may have executed
266 with Licensor regarding such Contributions.
267
2686. Trademarks. This License does not grant permission to use the trade
269 names, trademarks, service marks, or product names of the Licensor,
270 except as required for reasonable and customary use in describing the
271 origin of the Work and reproducing the content of the NOTICE file.
272
2737. Disclaimer of Warranty. Unless required by applicable law or
274 agreed to in writing, Licensor provides the Work (and each
275 Contributor provides its Contributions) on an "AS IS" BASIS,
276 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
277 implied, including, without limitation, any warranties or conditions
278 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
279 PARTICULAR PURPOSE. You are solely responsible for determining the
280 appropriateness of using or redistributing the Work and assume any
281 risks associated with Your exercise of permissions under this License.
282
2838. Limitation of Liability. In no event and under no legal theory,
284 whether in tort (including negligence), contract, or otherwise,
285 unless required by applicable law (such as deliberate and grossly
286 negligent acts) or agreed to in writing, shall any Contributor be
287 liable to You for damages, including any direct, indirect, special,
288 incidental, or consequential damages of any character arising as a
289 result of this License or out of the use or inability to use the
290 Work (including but not limited to damages for loss of goodwill,
291 work stoppage, computer failure or malfunction, or any and all
292 other commercial damages or losses), even if such Contributor
293 has been advised of the possibility of such damages.
294
2959. Accepting Warranty or Additional Liability. While redistributing
296 the Work or Derivative Works thereof, You may choose to offer,
297 and charge a fee for, acceptance of support, warranty, indemnity,
298 or other liability obligations and/or rights consistent with this
299 License. However, in accepting such obligations, You may act only
300 on Your own behalf and on Your sole responsibility, not on behalf
301 of any other Contributor, and only if You agree to indemnify,
302 defend, and hold each Contributor harmless for any liability
303 incurred by, or claims asserted against, such Contributor by reason
304 of your accepting any such warranty or additional liability.
305
306END OF TERMS AND CONDITIONS
307
308APPENDIX: How to apply the Apache License to your work.
309
310 To apply the Apache License to your work, attach the following
311 boilerplate notice, with the fields enclosed by brackets "{}"
312 replaced with your own identifying information. (Don't include
313 the brackets!) The text should be enclosed in the appropriate
314 comment syntax for the file format. We also recommend that a
315 file or class name and description of purpose be included on the
316 same "printed page" as the copyright notice for easier
317 identification within third-party archives.
318
319Copyright 2017 by Contributors
320
321Licensed under the Apache License, Version 2.0 (the "License");
322you may not use this file except in compliance with the License.
323You may obtain a copy of the License at
324
325 http://www.apache.org/licenses/LICENSE-2.0
326
327Unless required by applicable law or agreed to in writing, software
328distributed under the License is distributed on an "AS IS" BASIS,
329WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
330See the License for the specific language governing permissions and
331limitations under the License.
332
333## For LZ4 CPU library
334
335License text (https://github.com/lz4/lz4/blob/v1.10.0/lib/LICENSE)
336
337LZ4 Library
338Copyright (c) 2011-2020, Yann Collet
339All rights reserved.
340
341Redistribution and use in source and binary forms, with or without modification,
342are permitted provided that the following conditions are met:
343
344* Redistributions of source code must retain the above copyright notice, this
345 list of conditions and the following disclaimer.
346
347* Redistributions in binary form must reproduce the above copyright notice, this
348 list of conditions and the following disclaimer in the documentation and/or
349 other materials provided with the distribution.
350
351THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
352ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
353WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
354DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
355ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
356(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
357LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
358ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
359(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
360SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
361 