eigenhelm 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. eigenhelm-0.1.0/LICENSE +618 -0
  2. eigenhelm-0.1.0/PKG-INFO +221 -0
  3. eigenhelm-0.1.0/README.md +185 -0
  4. eigenhelm-0.1.0/pyproject.toml +67 -0
  5. eigenhelm-0.1.0/setup.cfg +4 -0
  6. eigenhelm-0.1.0/src/eigenhelm/__init__.py +29 -0
  7. eigenhelm-0.1.0/src/eigenhelm/cli/__init__.py +1 -0
  8. eigenhelm-0.1.0/src/eigenhelm/cli/evaluate.py +260 -0
  9. eigenhelm-0.1.0/src/eigenhelm/cli/harness.py +120 -0
  10. eigenhelm-0.1.0/src/eigenhelm/cli/inspect.py +86 -0
  11. eigenhelm-0.1.0/src/eigenhelm/cli/serve.py +76 -0
  12. eigenhelm-0.1.0/src/eigenhelm/cli/train.py +134 -0
  13. eigenhelm-0.1.0/src/eigenhelm/critic/__init__.py +165 -0
  14. eigenhelm-0.1.0/src/eigenhelm/critic/aesthetic_critic.py +254 -0
  15. eigenhelm-0.1.0/src/eigenhelm/critic/birkhoff.py +28 -0
  16. eigenhelm-0.1.0/src/eigenhelm/critic/compression.py +31 -0
  17. eigenhelm-0.1.0/src/eigenhelm/critic/entropy.py +30 -0
  18. eigenhelm-0.1.0/src/eigenhelm/eigenspace/__init__.py +96 -0
  19. eigenhelm-0.1.0/src/eigenhelm/eigenspace/projection.py +93 -0
  20. eigenhelm-0.1.0/src/eigenhelm/harness/__init__.py +6 -0
  21. eigenhelm-0.1.0/src/eigenhelm/harness/report.py +43 -0
  22. eigenhelm-0.1.0/src/eigenhelm/harness/runner.py +140 -0
  23. eigenhelm-0.1.0/src/eigenhelm/helm/__init__.py +137 -0
  24. eigenhelm-0.1.0/src/eigenhelm/helm/dynamic_helm.py +182 -0
  25. eigenhelm-0.1.0/src/eigenhelm/helm/models.py +111 -0
  26. eigenhelm-0.1.0/src/eigenhelm/helm/pid.py +72 -0
  27. eigenhelm-0.1.0/src/eigenhelm/metrics/__init__.py +1 -0
  28. eigenhelm-0.1.0/src/eigenhelm/metrics/cyclomatic.py +55 -0
  29. eigenhelm-0.1.0/src/eigenhelm/metrics/halstead.py +116 -0
  30. eigenhelm-0.1.0/src/eigenhelm/metrics/wl_hash.py +102 -0
  31. eigenhelm-0.1.0/src/eigenhelm/models.py +151 -0
  32. eigenhelm-0.1.0/src/eigenhelm/parsers/__init__.py +1 -0
  33. eigenhelm-0.1.0/src/eigenhelm/parsers/language_map.py +100 -0
  34. eigenhelm-0.1.0/src/eigenhelm/parsers/tree_sitter.py +209 -0
  35. eigenhelm-0.1.0/src/eigenhelm/serve/__init__.py +5 -0
  36. eigenhelm-0.1.0/src/eigenhelm/serve/app.py +89 -0
  37. eigenhelm-0.1.0/src/eigenhelm/serve/middleware/__init__.py +1 -0
  38. eigenhelm-0.1.0/src/eigenhelm/serve/middleware/size_limit.py +89 -0
  39. eigenhelm-0.1.0/src/eigenhelm/serve/middleware/timeout.py +61 -0
  40. eigenhelm-0.1.0/src/eigenhelm/serve/models.py +82 -0
  41. eigenhelm-0.1.0/src/eigenhelm/serve/routes/__init__.py +1 -0
  42. eigenhelm-0.1.0/src/eigenhelm/serve/routes/evaluate.py +115 -0
  43. eigenhelm-0.1.0/src/eigenhelm/serve/routes/health.py +36 -0
  44. eigenhelm-0.1.0/src/eigenhelm/training/__init__.py +195 -0
  45. eigenhelm-0.1.0/src/eigenhelm/training/corpus.py +75 -0
  46. eigenhelm-0.1.0/src/eigenhelm/training/pca.py +85 -0
  47. eigenhelm-0.1.0/src/eigenhelm/training/serialization.py +41 -0
  48. eigenhelm-0.1.0/src/eigenhelm/virtue_extractor.py +232 -0
  49. eigenhelm-0.1.0/src/eigenhelm.egg-info/PKG-INFO +221 -0
  50. eigenhelm-0.1.0/src/eigenhelm.egg-info/SOURCES.txt +52 -0
  51. eigenhelm-0.1.0/src/eigenhelm.egg-info/dependency_links.txt +1 -0
  52. eigenhelm-0.1.0/src/eigenhelm.egg-info/entry_points.txt +6 -0
  53. eigenhelm-0.1.0/src/eigenhelm.egg-info/requires.txt +15 -0
  54. eigenhelm-0.1.0/src/eigenhelm.egg-info/top_level.txt +1 -0
@@ -0,0 +1,618 @@
1
+ GNU AFFERO GENERAL PUBLIC LICENSE
2
+ Version 3, 19 November 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU Affero General Public License is a free, copyleft license for
11
+ software and other kinds of works, specifically designed to ensure
12
+ cooperation with the community in the case of network server software.
13
+
14
+ The licenses for most software and other practical works are designed
15
+ to take away your freedom to share and change the works. By contrast,
16
+ our General Public Licenses are intended to guarantee your freedom to
17
+ share and change all versions of a program--to make sure it remains free
18
+ software for all its users.
19
+
20
+ When we speak of free software, we are referring to freedom, not
21
+ price. Our General Public Licenses are designed to make sure that you
22
+ have the freedom to distribute copies of free software (and charge for
23
+ them if you wish), that you receive source code or can get it if you
24
+ want it, that you can change the software or use pieces of it in new
25
+ free programs, and that you know you can do these things.
26
+
27
+ Developers that use our General Public Licenses protect your rights
28
+ with two steps: (1) assert copyright on the software, and (2) offer
29
+ you this License which gives you legal permission to copy, distribute
30
+ and/or modify the software.
31
+
32
+ A secondary benefit of defending all users' freedom is that
33
+ improvements made in alternative versions of the program, if they
34
+ receive widespread use, become available for other developers to
35
+ incorporate. Many developers of free software are heartened and
36
+ encouraged by the resulting cooperation. However, in the case of
37
+ software used on network servers, this result may fail to come about.
38
+ The GNU General Public License permits making a modified version and
39
+ letting the public access it on a server without ever releasing its
40
+ source code to the public.
41
+
42
+ The GNU Affero General Public License is designed specifically to
43
+ ensure that, in such cases, the modified source code becomes available
44
+ to the community. It requires the operator of a network server to
45
+ provide the source code of the modified version running there to the
46
+ users of that server. Therefore, public use of a modified version, on
47
+ a publicly accessible server, gives the public access to the source
48
+ code of the modified version.
49
+
50
+ An older license, called the Affero General Public License and
51
+ published by Affero, Inc., was designed to accomplish similar goals.
52
+ This is a different license, not a version of the Affero GPL, but
53
+ Affero has released a new version of the Affero GPL which permits
54
+ relicensing under this license.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ TERMS AND CONDITIONS
60
+
61
+ 0. Definitions.
62
+
63
+ "This License" refers to version 3 of the GNU Affero General Public
64
+ License.
65
+
66
+ "Copyright" also means copyright-like laws that apply to other kinds
67
+ of works, such as semiconductor masks.
68
+
69
+ "The Program" refers to any copyrightable work licensed under this
70
+ License. Each licensee is addressed as "you". "Licensees" and
71
+ "recipients" may be individuals or organizations.
72
+
73
+ To "modify" a work means to copy from or adapt all or part of the work
74
+ in a fashion requiring copyright permission, other than the making of an
75
+ exact copy. The resulting work is called a "modified version" of the
76
+ earlier work or a work "based on" the earlier work.
77
+
78
+ A "covered work" means either the unmodified Program or a work based
79
+ on the Program.
80
+
81
+ To "propagate" a work means to do anything with it that, without
82
+ permission, would make you directly or indirectly liable for
83
+ infringement under applicable copyright law, except executing it on a
84
+ computer or modifying a private copy. Propagation includes copying,
85
+ distribution (with or without modification), making available to the
86
+ public, and in some countries other activities as well.
87
+
88
+ To "convey" a work means any kind of propagation that enables other
89
+ parties to make or receive copies. Mere interaction with a user through
90
+ a computer network, with no transfer of a copy, is not conveying.
91
+
92
+ An interactive user interface displays "Appropriate Legal Notices"
93
+ to the extent that it includes a convenient and prominently visible
94
+ feature that (1) displays an appropriate copyright notice, and (2)
95
+ tells the user that there is no warranty for the work (except to the
96
+ extent that warranties are provided), that licensees may convey the
97
+ work under this License, and how to view a copy of this License. If
98
+ the interface presents a list of user commands or other features, such
99
+ as a menu, a full list must include a notice of this kind in a user
100
+ interface that does nothing but display such information; the mere
101
+ presence of the interface does not count.
102
+
103
+ 1. Source Code.
104
+
105
+ The "source code" for a work means the preferred form of the work
106
+ for making modifications to it. "Object code" means any non-source
107
+ form of a work.
108
+
109
+ A "Standard Interface" means an interface that either is an official
110
+ standard defined by a recognized standards body, or, in the case of
111
+ interfaces specified for a particular programming language, one that
112
+ is widely used among developers working in that language.
113
+
114
+ The "System Libraries" of an executable work include anything, other
115
+ than the work as a whole, that (a) is included in the normal form of
116
+ packaging a Major Component, but which is not part of that Major
117
+ Component, and (b) serves only to enable use of the work with that
118
+ Major Component, or to implement a Standard Interface for which an
119
+ implementation is available to the public in source code form. A
120
+ "Major Component", in this context, means a major essential component
121
+ (kernel, window system, and so on) of the specific operating system
122
+ (on which the executable work runs), or a compiler used to produce
123
+ the work, or an object code interpreter used to run it.
124
+
125
+ The "Corresponding Source" for a work in object code form means all
126
+ the source code needed to generate, install, and (for an executable
127
+ work) run the object code and to modify the work, including scripts to
128
+ control those activities. However, it does not include the work's
129
+ System Libraries, or general-purpose tools or generally uncompiled
130
+ programs normally run as a part of building and environment preparation,
131
+ which are not part of the work and are not used for execution.
132
+
133
+ The Corresponding Source need not include anything that users
134
+ can automatically regenerate from other parts of the Corresponding
135
+ Source.
136
+
137
+ The Corresponding Source for a work in source form is that
138
+ same work.
139
+
140
+ 2. Basic Permissions.
141
+
142
+ All rights reserved to the copyright holder. This License explicitly
143
+ affirms your unlimited permission to run the unmodified Program. The
144
+ output from running a covered work is covered by this License only if
145
+ the output, given its content, constitutes a covered work. This License
146
+ acknowledges your rights of fair use or other equivalent, as provided by
147
+ copyright law.
148
+
149
+ You may make, run and propagate covered works that you do not
150
+ convey, without conditions so long as your license otherwise remains
151
+ in force. You may convey covered works to others for the sole purpose
152
+ of having them make modifications exclusively for you, or provide you
153
+ with facilities for running those works, provided that you comply with
154
+ the terms of this License in conveying all material for which you do
155
+ not control copyright. Those thus making or running the covered works
156
+ for you must do so exclusively on your behalf, under your direction
157
+ and control, on terms that prohibit them from making any copies of
158
+ your copyrighted material outside their relationship with you.
159
+
160
+ Conveying under any other circumstances is permitted solely under
161
+ the conditions stated below. Sublicensing is not allowed; section 10
162
+ makes it unnecessary.
163
+
164
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
165
+
166
+ No covered work shall be deemed part of an effective technological
167
+ measure under any applicable law fulfilling obligations under article
168
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
169
+ similar laws prohibiting or restricting circumvention of such measures.
170
+
171
+ When you convey a covered work, you waive any legal power to forbid
172
+ circumvention of technological measures to the extent such circumvention
173
+ is effected by exercising rights under this License with respect to
174
+ the covered work, and you disclaim any intention to limit operation or
175
+ modification of the work as a means of enforcing, against the work's
176
+ users, your legal rights or third parties' legal rights to prohibit
177
+ circumvention of technological measures.
178
+
179
+ 4. Conveying Verbatim Copies.
180
+
181
+ You may convey verbatim copies of the Program's source code as you
182
+ receive it, in any medium, provided that you conspicuously and
183
+ appropriately publish on each copy an appropriate copyright notice and
184
+ disclaimer of warranty; keep intact all the notices that say that this
185
+ License and any non-restriction terms added in accord with section 7
186
+ apply to the code; keep intact all notices of the absence of any
187
+ warranty; and give all recipients a copy of this License along with
188
+ the Program.
189
+
190
+ You may charge any price or no price for each copy that you convey,
191
+ and you may offer support or warranty protection for a fee.
192
+
193
+ 5. Conveying Modified Source Versions.
194
+
195
+ You may convey a work based on the Program, or the modifications to
196
+ produce it from the Program, in the form of source code under the
197
+ terms of section 4, provided that you also meet all of these conditions:
198
+
199
+ a) The work must carry prominent notices stating that you modified
200
+ it, and giving a relevant date.
201
+
202
+ b) The work must carry prominent notices stating that it is
203
+ released under this License and any conditions added under section
204
+ 7. This requirement modifies the requirement in section 4 to
205
+ "keep intact all notices".
206
+
207
+ c) You must license the entire work, as a whole, under this
208
+ License to anyone who comes into possession of a copy. This License will therefore apply, along
209
+ with any applicable section 7 additional terms, to the whole of
210
+ the work, and all its parts, regardless of how they are packaged.
211
+ This License gives no permission to license the work in any other
212
+ way, but it does not invalidate such permission if you have
213
+ separately received it.
214
+
215
+ d) If the work has interactive user interfaces, each must display
216
+ Appropriate Legal Notices; however, if the Program has interactive
217
+ interfaces that do not display Appropriate Legal Notices, your
218
+ work need not make them do so.
219
+
220
+ A compilation of a covered work with other separate and independent
221
+ works, which are not by their nature extensions of the covered work,
222
+ and which are not combined with it such as to form a larger program,
223
+ in a volume of a storage or distribution medium, is called an
224
+ "aggregate" if the compilation and its copyright are not used to
225
+ limit the access or legal rights of the compilation's users beyond
226
+ what the individual works permit. Inclusion of a covered work in an
227
+ aggregate does not cause this License to apply to the other parts of
228
+ the aggregate.
229
+
230
+ 6. Conveying Non-Source Forms.
231
+
232
+ You may convey a covered work in object code form under the terms
233
+ of sections 4 and 5, provided that you also convey the
234
+ machine-readable Corresponding Source under the terms of this License,
235
+ in one of these ways:
236
+
237
+ a) Convey the object code in, or embodied in, a physical product
238
+ (including a physical distribution medium), accompanied by the
239
+ Corresponding Source fixed on a durable physical medium
240
+ customarily used for software interchange.
241
+
242
+ b) Convey the object code in, or embodied in, a physical product
243
+ (including a physical distribution medium), accompanied by a
244
+ written offer, valid for at least three years and valid for
245
+ anyone who possesses the object code or that product, to provide
246
+ to anyone who possesses the object code either (1) a copy of the
247
+ Corresponding Source for all the software in the product that is
248
+ covered by this License, on a durable physical medium
249
+ customarily used for software interchange, for a price no more
250
+ than your reasonable cost of physically performing this
251
+ conveying of source, or (2) access to copy the
252
+ Corresponding Source from a network server at no charge.
253
+
254
+ c) Convey individual copies of the object code with a copy of the
255
+ written offer to provide the Corresponding Source. This
256
+ alternative is allowed only occasionally and noncommercially, and
257
+ only if you received the object code with such an offer, in accord
258
+ with subsection 6b.
259
+
260
+ d) Convey the object code by offering access from a designated
261
+ place (gratis or for a charge), and offer equivalent access to the
262
+ Corresponding Source in the same way through the same place at no
263
+ further charge. You need not require recipients to copy the
264
+ Corresponding Source along with the object code. If the place to
265
+ copy the object code is a network server, the Corresponding Source
266
+ may be on a different server (operated by you or a third party)
267
+ that supports equivalent copying facilities, provided you maintain
268
+ clear directions next to the object code saying where to find the
269
+ Corresponding Source. Regardless of what server hosts the
270
+ Corresponding Source, you remain obligated to ensure that it is
271
+ available for as long as needed to satisfy these requirements.
272
+
273
+ e) Convey the object code using peer-to-peer transmission, provided
274
+ you inform other peers where the object code and Corresponding
275
+ Source of the work are being offered to the public at no charge
276
+ under subsection 6d.
277
+
278
+ A separable portion of the object code, whose source code is excluded
279
+ from the Corresponding Source as a System Library, need not be
280
+ included in conveying the object code work.
281
+
282
+ A "User Product" is either (1) a "consumer product", which means any
283
+ tangible personal property which is normally acquired for consumer,
284
+ personal, family, or household purposes, or (2) anything designed or
285
+ sold for incorporation into a dwelling. In determining whether a
286
+ product is a consumer product, doubtful cases shall be resolved in
287
+ favor of coverage. For a particular user, "user product" includes
288
+ any product that the user has purchased in the right to install, and
289
+ specifically means any product that is designed to be
290
+ used with a computer or network.
291
+
292
+ "Installation Information" for a User Product means any methods,
293
+ procedures, authorization keys, or other information required to install
294
+ and execute modified versions of a covered work in that User Product from
295
+ a modified version of its Corresponding Source. The information must
296
+ suffice to ensure that the continued functioning of the modified object
297
+ code is in no way prevented or interfered with solely because modification
298
+ has been made.
299
+
300
+ If you convey an object code work under this section in, or with, or
301
+ specifically for use in, a User Product, and the conveying occurs as
302
+ part of a transaction in which the right of possession and use of the
303
+ User Product is transferred to the recipient in perpetuity or for a
304
+ fixed term (regardless of how the transaction is characterized), the
305
+ Corresponding Source conveyed under this section must be accompanied
306
+ by the Installation Information. But this requirement does not apply
307
+ if neither you nor any third party retains the ability to install
308
+ modified object code on the User Product (for example, the work has
309
+ been installed in ROM).
310
+
311
+ The requirement to provide Installation Information does not include a
312
+ requirement to continue to provide support service, warranty, or updates
313
+ for a work that has been modified or installed by the recipient, or for
314
+ the User Product in which it has been modified or installed. Access to a
315
+ network may be denied when the modification itself materially and
316
+ adversely affects the operation of the network or violates the rules and
317
+ protocols for communication across the network.
318
+
319
+ Corresponding Source conveyed, and Installation Information provided,
320
+ in accord with this section must be in a format that is publicly
321
+ documented (and with an implementation available to the public in
322
+ source code form), and must require no special password or key for
323
+ unpacking, reading or executing.
324
+
325
+ 7. Additional Terms.
326
+
327
+ "Additional permissions" are terms that supplement the terms of this
328
+ License by making exceptions from one or more of its conditions.
329
+ Additional permissions that are applicable to the entire Program shall
330
+ be treated as though they were included in this License, to the extent
331
+ that they are permitted under applicable law. If additional permissions
332
+ apply only to part of the Program, that part may be used separately
333
+ under those permissions, but the entire Program remains governed by
334
+ this License without regard to the additional permissions.
335
+
336
+ When you convey a copy of a covered work, you may at your option
337
+ remove any additional permissions from that copy, or from any part of
338
+ it. (Additional permissions may be written to require their own
339
+ removal in certain cases when you modify the work.) You may place
340
+ additional permissions on material, added by you to a covered work,
341
+ for which you have or can give appropriate copyright permission.
342
+
343
+ Notwithstanding any other provision of this License, for material you
344
+ add to a covered work, you have (or can give) permission to remove that
345
+ part in compliance with this License.
346
+
347
+ Notwithstanding any other provision of this License, you have
348
+ permission to link or combine any covered work with a work licensed
349
+ under version 3 of the GNU General Public License into a combined
350
+ work, and to convey the resulting work. The terms of this License
351
+ will continue to apply to the part which is the covered work, but
352
+ the work which you have combined will continue to be governed by
353
+ version 3 of the GNU General Public License.
354
+
355
+ 8. Termination.
356
+
357
+ You may not propagate or modify a covered work except as expressly
358
+ provided under this License. Any attempt otherwise to propagate or
359
+ modify it is void, and will automatically terminate your rights under
360
+ this License (including any patent licenses granted under the third
361
+ paragraph of section 11).
362
+
363
+ However, if you cease all violation of this License, then your
364
+ license from a particular copyright holder is reinstated (a)
365
+ provisionally, unless and until the copyright holder explicitly and
366
+ finally terminates your license, and (b) permanently, if the copyright
367
+ holder fails to notify you of the violation by some reasonable means
368
+ prior to 60 days after the cessation.
369
+
370
+ Moreover, your license from a particular copyright holder is
371
+ reinstated permanently if the copyright holder notifies you of the
372
+ violation by some reasonable means, this is the first time you have
373
+ received notice of violation of this License (for any work) from that
374
+ copyright holder, and you cure the violation prior to 30 days after
375
+ your receipt of the notice.
376
+
377
+ Termination of your rights under this section does not terminate the
378
+ licenses of parties who have received copies or rights from you under
379
+ this License. If your rights have been terminated and not permanently
380
+ reinstated, you do not have the right to receive new copies or licenses
381
+ for the covered material from that copyright holder.
382
+
383
+ 9. Acceptance Not Required for Having Copies.
384
+
385
+ You are not required to accept this License in order to receive or
386
+ run a copy of the Program. Ancillary propagation of a covered work
387
+ occurring solely as a consequence of using peer-to-peer transmission
388
+ to receive a copy likewise does not require acceptance. However,
389
+ nothing other than this License grants you permission to propagate or
390
+ modify any covered work. These actions infringe copyright if you
391
+ do not accept this License. Therefore, by modifying or propagating
392
+ a covered work, you indicate your acceptance of this License to do so.
393
+
394
+ 10. Automatic Licensing of Downstream Recipients.
395
+
396
+ Each time you convey a covered work, the recipient automatically
397
+ receives a license from the original licensors, to run, modify and
398
+ propagate that work, subject to this License. You are not responsible
399
+ for enforcing compliance by third parties with this License.
400
+
401
+ An "entity transaction" is a transaction transferring control of an
402
+ organization, or substantially all assets of one, or subdividing an
403
+ organization, or merging organizations. If propagation of a covered
404
+ work results from an entity transaction, each party to that transaction
405
+ who receives a copy of the work also receives whatever licenses to the
406
+ work the party's predecessor in interest had or could give under the
407
+ previous paragraph, plus a right to possession of the Corresponding
408
+ Source of the work from the predecessor in interest, if the predecessor
409
+ has it or can get it with reasonable efforts.
410
+
411
+ You may not impose any further restrictions on the exercise of the
412
+ rights granted or affirmed under this License. For example, you may
413
+ not impose a license fee, sublicensing fee, or other charge for
414
+ exercise of rights granted under this License, and you may not
415
+ initiate litigation (including a cross-claim or counterclaim in a
416
+ lawsuit) alleging that any patent claim is infringed by making,
417
+ copying, using, or selling the Program or any portion of it.
418
+
419
+ 11. Patents.
420
+
421
+ A "contributor" is a copyright holder who authorizes use under this
422
+ License of the Program or of a work on which the Program is based.
423
+ The work thus licensed is called the contributor's "version" of the
424
+ work.
425
+
426
+ A contributor's "essential patent claims" are all patent claims
427
+ owned or controlled by the contributor, whether already acquired or
428
+ hereafter acquired, that would be infringed by some manner, permitted
429
+ by this License, of making, using, or selling its contributor version,
430
+ but do not include claims that would be infringed only as a consequence
431
+ of further modification of the contributor version. For purposes of
432
+ this definition, "control" includes the right to grant patent
433
+ sublicenses in a manner consistent with the requirements of this
434
+ License.
435
+
436
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
437
+ patent license under the contributor's essential patent claims, to
438
+ make, use, sell, offer for sale, import and otherwise run, modify and
439
+ propagate the contents of its contributor version.
440
+
441
+ In the following three paragraphs, a "patent license" is any express
442
+ agreement or arrangement, not calling itself a license, by which a
443
+ party is granted an express permission to exercise patent rights. To
444
+ "grant" such a license to a party means to make such an agreement or
445
+ arrangement with that party.
446
+
447
+ If you convey a covered work, knowingly relying on a patent license,
448
+ and the Corresponding Source of the work is not available for anyone
449
+ to copy, free of charge and under the terms of this License, through a
450
+ publicly available network server or other readily accessible means,
451
+ then you must either (1) cause the Corresponding Source to be so
452
+ available, or (2) arrange to deprive yourself of the benefit of the
453
+ patent license for this particular work, or (3) arrange, in a manner
454
+ consistent with the requirements of this License, to extend the patent
455
+ license to downstream recipients. "Knowingly relying" means you have
456
+ actual knowledge that, but for the patent license, conveying the
457
+ covered work in a private jurisdiction would infringe one or more
458
+ identifiable patents in that jurisdiction that you have reason to
459
+ believe are valid.
460
+
461
+ If, pursuant to or in connection with a single transaction or
462
+ arrangement, you convey, or propagate by procuring conveyance of, a
463
+ covered work, and grant a patent license to some or all of the parties
464
+ receiving the covered work authorizing them to use, propagate, modify
465
+ or convey a specific copy of the covered work, then the patent license
466
+ you grant is automatically extended to all recipients of the covered
467
+ work and works based on it.
468
+
469
+ A patent license is "discriminatory" if it does not include within
470
+ the scope of its coverage, prohibits the exercise of, or is
471
+ conditioned on the non-exercise of one or more of the rights that are
472
+ specifically granted under this License. You may not convey a covered
473
+ work if you are a party to an arrangement with a third party that is
474
+ in the exclusive distribution of the work, that arranges for payment of
475
+ royalty to the third party by conveying (to those parties who receive
476
+ the covered work from you) with a discriminatory patent license.
477
+
478
+ Notwithstanding any other provision of this License, if you augment
479
+ or convey a covered work to encourage its use in a connection with such
480
+ an arrangement, you may exercise the patent license for this purpose.
481
+
482
+ 12. No Surrender of Others' Freedom.
483
+
484
+ If conditions are imposed on you (whether by court order, agreement or
485
+ otherwise) that contradict the conditions of this License, they do not
486
+ excuse you from the conditions of this License. If you cannot convey a
487
+ covered work so as to satisfy simultaneously your obligations under this
488
+ License and any other pertinent obligations, then as a consequence you
489
+ may not convey it at all. For example, if you agree to terms that
490
+ obligate you to collect a royalty for further conveying from those to
491
+ whom you convey the Program, the only way you could satisfy both those
492
+ terms and this License would be to refrain entirely from conveying the
493
+ Program.
494
+
495
+ 13. Use with the GNU Affero General Public License.
496
+
497
+ Notwithstanding any other provision of this License, you have
498
+ permission to link or combine any covered work with a work licensed
499
+ under version 3 of the GNU Affero General Public License into a
500
+ combined work, and to convey the resulting work. The terms of this
501
+ License will continue to apply to the part which is the covered work,
502
+ but the special requirements of the GNU Affero General Public License,
503
+ section 13, concerning interaction through a network will apply to the
504
+ combination as such.
505
+
506
+ 14. Revised Versions of this License.
507
+
508
+ The Free Software Foundation may publish revised and/or new versions
509
+ of the GNU General Public License from time to time. Such new versions
510
+ will be similar in spirit to the present version, but may address new
511
+ problems or concerns.
512
+
513
+ Each version is given a distinguishing version number. If the
514
+ Program specifies that a certain numbered version of the GNU General
515
+ Public License "or any later version" applies to it, you have the
516
+ option of following the terms and conditions either of that numbered
517
+ version or of any later version published by the Free Software
518
+ Foundation. If the Program does not specify a version number of the
519
+ GNU General Public License, you may use any published version.
520
+
521
+ If the Program specifies that a proxy can decide which future
522
+ versions of the GNU General Public License can be used, that proxy's
523
+ public statement of acceptance of a version permanently authorizes you
524
+ to choose that version for the Program.
525
+
526
+ Later license versions may give you additional permissions or impose
527
+ additional restrictions. As explained in Section 8, you may
528
+ remove additional permissions stated when you modify the work.
529
+
530
+ 15. Disclaimer of Warranty.
531
+
532
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
533
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
534
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
535
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
536
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
537
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
538
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU MUST ASSUME THE COST
539
+ OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
540
+
541
+ 16. Limitation of Liability.
542
+
543
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
544
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
545
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
546
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
547
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
548
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
549
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
550
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
551
+ SUCH DAMAGES.
552
+
553
+ 17. Interpretation of Sections 15 and 16.
554
+
555
+ If the disclaimer of warranty and limitation of liability provided
556
+ above cannot be given local legal effect according to their terms,
557
+ reviewing courts shall apply local law that most closely approximates
558
+ an absolute waiver of all civil liability in connection with the
559
+ Program, unless a warranty or liability assumption accompanies a copy
560
+ of the Program in exchange for a fee.
561
+
562
+ END OF TERMS AND CONDITIONS
563
+
564
+ How to Apply These Terms to Your New Programs
565
+
566
+ If you develop a new program, and you want it to be of the greatest
567
+ possible use to the public, the best way to achieve this is to make it
568
+ free software which everyone can redistribute and change under these terms.
569
+
570
+ To do so, attach the following notices to the program. It is safest
571
+ to attach them to the start of each source file to most effectively
572
+ state the exclusion of warranty; and each file should have at least
573
+ the "copyright" line and a pointer to where the full notice is found.
574
+
575
+ <one line to give the program's name and a brief idea of what it does.>
576
+ Copyright (C) <year> <name of author>
577
+
578
+ This program is free software: you can redistribute it and/or modify
579
+ it under the terms of the GNU Affero General Public License as published
580
+ by the Free Software Foundation, either version 3 of the License, or
581
+ (at your option) any later version.
582
+
583
+ This program is distributed in the hope that it will be useful,
584
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
585
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
586
+ GNU Affero General Public License for more details.
587
+
588
+ You should have received a copy of the GNU Affero General Public License
589
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
590
+
591
+ Also add information on how to contact you by electronic and print mail.
592
+
593
+ If your program interacts with users through a computer network, you should
594
+ also make sure that it provides a way for users to get its source. For
595
+ example, if your program is an HTTP server, you should make it output a
596
+ "Source" link that the user can see when accessing the server. For example,
597
+ a suitable notice would be:
598
+
599
+ eigenhelm Copyright (C) 2025 eigenhelm contributors
600
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
601
+ This is free software, and you are welcome to redistribute it
602
+ under certain conditions; type `show c' for details.
603
+
604
+ The hypothetical commands `show w' and `show c' should show the appropriate
605
+ parts of the General Public License. Of course, your program's commands
606
+ might be different; for a GUI interface, you would use an "about box".
607
+
608
+ You should also get your employer (if you work as a programmer) or school,
609
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
610
+ For more information on this, and how to apply and follow the GNU GPL, see
611
+ <https://www.gnu.org/licenses/>.
612
+
613
+ The GNU General Public License does not permit incorporating your program
614
+ into proprietary programs. If your program is a subroutine library, you
615
+ may consider it more useful to permit linking proprietary applications with
616
+ the library. If this is what you want to do, use the GNU Lesser General
617
+ Public License instead of this License. But first, please read
618
+ <https://www.gnu.org/licenses/why-not-lgpl.html>.