Debian Codegraph @

LICENSE

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