xref: /aosp_15_r20/external/licenseclassifier/v2/scenarios/159475529_2 (revision 46c4c49da23cae783fa41bf46525a6505638499a)
1Classifier induced match with AGPL
2EXPECTED:Copyright,GPL-2.0
3<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4<html>
5
6<head>
7
8<title>GNU General Public License</title>
9</head>
10
11<body>
12<div id="content">
13
14<h2>GNU General Public License</h2>
15
16<h3>Table of Contents</h3>
17<ul>
18  <li><a name="TOC1" href="#SEC1">GNU GENERAL PUBLIC LICENSE</a>
19      <ul>
20        <li><a name="TOC2" href="#SEC2">Preamble</a></li>
21        <li><a name="TOC3" href="#SEC3">TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</a></li>
22        <li><a name="TOC4" href="#SEC4">How to Apply These Terms to Your New Programs</a></li>
23      </ul>
24  </li>
25</ul>
26
27<hr>
28
29<h3><a name="SEC1" href="#TOC1">GNU GENERAL PUBLIC LICENSE</a></h3>
30<p>
31Version 2, June 1991
32</p>
33
34<pre>
35Copyright (C) 1989, 1991 Free Software Foundation, Inc.
3659 Temple Place, Suite 330, Boston, MA 02111-1307 USA
37
38Everyone is permitted to copy and distribute verbatim copies
39of this license document, but changing it is not allowed.
40</pre>
41
42<h3><a name="SEC2" href="#TOC2">Preamble</a></h3>
43
44<p>
45  The licenses for most software are designed to take away your
46freedom to share and change it.  By contrast, the GNU General Public
47License is intended to guarantee your freedom to share and change free
48software--to make sure the software is free for all its users.  This
49General Public License applies to most of the Free Software
50Foundation's software and to any other program whose authors commit to
51using it.  (Some other Free Software Foundation software is covered by
52the GNU Library General Public License instead.) You can apply it to
53your programs, too.
54</p>
55
56<p>
57  When we speak of free software, we are referring to freedom, not
58price.  Our General Public Licenses are designed to make sure that you
59have the freedom to distribute copies of free software (and charge for
60this service if you wish), that you receive source code or can get it
61if you want it, that you can change the software or use pieces of it
62in new free programs; and that you know you can do these things.
63</p>
64
65<p>
66  To protect your rights, we need to make restrictions that forbid
67anyone to deny you these rights or to ask you to surrender the rights.
68These restrictions translate to certain responsibilities for you if you
69distribute copies of the software, or if you modify it.
70</p>
71
72<p>
73  For example, if you distribute copies of such a program, whether
74gratis or for a fee, you must give the recipients all the rights that
75you have.  You must make sure that they, too, receive or can get the
76source code.  And you must show them these terms so they know their
77rights.
78</p>
79
80<p>
81  We protect your rights with two steps: (1) copyright the software, and
82(2) offer you this license which gives you legal permission to copy,
83distribute and/or modify the software.
84</p>
85
86<p>
87  Also, for each author's protection and ours, we want to make certain
88that everyone understands that there is no warranty for this free
89software.  If the software is modified by someone else and passed on, we
90want its recipients to know that what they have is not the original, so
91that any problems introduced by others will not reflect on the original
92authors' reputations.
93</p>
94
95<p>
96  Finally, any free program is threatened constantly by software
97patents.  We wish to avoid the danger that redistributors of a free
98program will individually obtain patent licenses, in effect making the
99program proprietary. To prevent this, we have made it clear that any
100patent must be licensed for everyone's free use or not licensed at all.
101</p>
102
103<p>
104  The precise terms and conditions for copying, distribution and
105modification follow.
106</p>
107
108
109<h3><a name="SEC3" href="#TOC3">TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</a></h3>
110
111
112<p>
113<strong>0.</strong>
114 This License applies to any program or other work which contains
115a notice placed by the copyright holder saying it may be distributed
116under the terms of this General Public License.  The "Program", below,
117refers to any such program or work, and a "work based on the Program"
118means either the Program or any derivative work under copyright law:
119that is to say, a work containing the Program or a portion of it,
120either verbatim or with modifications and/or translated into another
121language.  (Hereinafter, translation is included without limitation in
122the term "modification".) Each licensee is addressed as "you".
123</p>
124
125<p>
126Activities other than copying, distribution and modification are not
127covered by this License; they are outside its scope.  The act of
128running the Program is not restricted, and the output from the Program
129is covered only if its contents constitute a work based on the
130Program (independent of having been made by running the Program).
131Whether that is true depends on what the Program does.
132</p>
133
134<p>
135<strong>1.</strong>
136 You may copy and distribute verbatim copies of the Program's
137source code as you receive it, in any medium, provided that you
138conspicuously and appropriately publish on each copy an appropriate
139copyright notice and disclaimer of warranty; keep intact all the
140notices that refer to this License and to the absence of any warranty;
141and give any other recipients of the Program a copy of this License
142along with the Program.
143</p>
144
145<p>
146You may charge a fee for the physical act of transferring a copy, and
147you may at your option offer warranty protection in exchange for a fee.
148</p>
149
150<p>
151<strong>2.</strong>
152 You may modify your copy or copies of the Program or any portion
153of it, thus forming a work based on the Program, and copy and
154distribute such modifications or work under the terms of Section 1
155above, provided that you also meet all of these conditions:
156</p>
157
158<dl>
159  <dt></dt>
160    <dd>
161      <strong>a)</strong>
162      You must cause the modified files to carry prominent notices
163      stating that you changed the files and the date of any change.
164    </dd>
165  <dt></dt>
166    <dd>
167      <strong>b)</strong>
168      You must cause any work that you distribute or publish, that in
169      whole or in part contains or is derived from the Program or any
170      part thereof, to be licensed as a whole at no charge to all third
171      parties under the terms of this License.
172    </dd>
173  <dt></dt>
174    <dd>
175      <strong>c)</strong>
176      If the modified program normally reads commands interactively
177      when run, you must cause it, when started running for such
178      interactive use in the most ordinary way, to print or display an
179      announcement including an appropriate copyright notice and a
180      notice that there is no warranty (or else, saying that you provide
181      a warranty) and that users may redistribute the program under
182      these conditions, and telling the user how to view a copy of this
183      License.  (Exception: if the Program itself is interactive but
184      does not normally print such an announcement, your work based on
185      the Program is not required to print an announcement.)
186    </dd>
187</dl>
188
189<p>
190These requirements apply to the modified work as a whole.  If
191identifiable sections of that work are not derived from the Program,
192and can be reasonably considered independent and separate works in
193themselves, then this License, and its terms, do not apply to those
194sections when you distribute them as separate works.  But when you
195distribute the same sections as part of a whole which is a work based
196on the Program, the distribution of the whole must be on the terms of
197this License, whose permissions for other licensees extend to the
198entire whole, and thus to each and every part regardless of who wrote it.
199</p>
200
201<p>
202Thus, it is not the intent of this section to claim rights or contest
203your rights to work written entirely by you; rather, the intent is to
204exercise the right to control the distribution of derivative or
205collective works based on the Program.
206</p>
207
208<p>
209In addition, mere aggregation of another work not based on the Program
210with the Program (or with a work based on the Program) on a volume of
211a storage or distribution medium does not bring the other work under
212the scope of this License.
213</p>
214
215<p>
216<strong>3.</strong>
217 You may copy and distribute the Program (or a work based on it,
218under Section 2) in object code or executable form under the terms of
219Sections 1 and 2 above provided that you also do one of the following:
220</p>
221
222<!-- we use this doubled UL to get the sub-sections indented, -->
223<!-- while making the bullets as unobvious as possible. -->
224
225<dl>
226  <dt></dt>
227    <dd>
228      <strong>a)</strong>
229      Accompany it with the complete corresponding machine-readable
230      source code, which must be distributed under the terms of Sections
231      1 and 2 above on a medium customarily used for software interchange; or,
232    </dd>
233  <dt></dt>
234    <dd>
235      <strong>b)</strong>
236      Accompany it with a written offer, valid for at least three
237      years, to give any third party, for a charge no more than your
238      cost of physically performing source distribution, a complete
239      machine-readable copy of the corresponding source code, to be
240      distributed under the terms of Sections 1 and 2 above on a medium
241      customarily used for software interchange; or,
242    </dd>
243  <dt></dt>
244    <dd>
245      <strong>c)</strong>
246      Accompany it with the information you received as to the offer
247      to distribute corresponding source code.  (This alternative is
248      allowed only for noncommercial distribution and only if you
249      received the program in object code or executable form with such
250      an offer, in accord with Subsection b above.)
251    </dd>
252</dl>
253
254<p>
255The source code for a work means the preferred form of the work for
256making modifications to it.  For an executable work, complete source
257code means all the source code for all modules it contains, plus any
258associated interface definition files, plus the scripts used to
259control compilation and installation of the executable.  However, as a
260special exception, the source code distributed need not include
261anything that is normally distributed (in either source or binary
262form) with the major components (compiler, kernel, and so on) of the
263operating system on which the executable runs, unless that component
264itself accompanies the executable.
265</p>
266
267<p>
268If distribution of executable or object code is made by offering
269access to copy from a designated place, then offering equivalent
270access to copy the source code from the same place counts as
271distribution of the source code, even though third parties are not
272compelled to copy the source along with the object code.
273</p>
274
275<p>
276<strong>4.</strong>
277 You may not copy, modify, sublicense, or distribute the Program
278except as expressly provided under this License.  Any attempt
279otherwise to copy, modify, sublicense or distribute the Program is
280void, and will automatically terminate your rights under this License.
281However, parties who have received copies, or rights, from you under
282this License will not have their licenses terminated so long as such
283parties remain in full compliance.
284</p>
285
286<p>
287<strong>5.</strong>
288 You are not required to accept this License, since you have not
289signed it. However, nothing else grants you permission to modify or
290distribute the Program or its derivative works.  These actions are
291prohibited by law if you do not accept this License.  Therefore, by
292modifying or distributing the Program (or any work based on the
293Program), you indicate your acceptance of this License to do so, and
294all its terms and conditions for copying, distributing or modifying
295the Program or works based on it.
296</p>
297
298<p>
299<strong>6.</strong>
300 Each time you redistribute the Program (or any work based on the
301Program), the recipient automatically receives a license from the
302original licensor to copy, distribute or modify the Program subject to
303these terms and conditions. You may not impose any further
304restrictions on the recipients' exercise of the rights granted herein.
305You are not responsible for enforcing compliance by third parties to
306this License.
307</p>
308
309<p>
310<strong>7.</strong>
311 If, as a consequence of a court judgment or allegation of patent
312infringement or for any other reason (not limited to patent issues),
313conditions are imposed on you (whether by court order, agreement or
314otherwise) that contradict the conditions of this License, they do not
315excuse you from the conditions of this License.  If you cannot
316distribute so as to satisfy simultaneously your obligations under this
317License and any other pertinent obligations, then as a consequence you
318may not distribute the Program at all. For example, if a patent
319license would not permit royalty-free redistribution of the Program by
320all those who receive copies directly or indirectly through you, then
321the only way you could satisfy both it and this License would be to
322refrain entirely from distribution of the Program.
323</p>
324
325<p>
326If any portion of this section is held invalid or unenforceable under
327any particular circumstance, the balance of the section is intended to
328apply and the section as a whole is intended to apply in other
329circumstances.
330</p>
331
332<p>
333It is not the purpose of this section to induce you to infringe any
334patents or other property right claims or to contest validity of any
335such claims; this section has the sole purpose of protecting the
336integrity of the free software distribution system, which is
337implemented by public license practices.  Many people have made
338generous contributions to the wide range of software distributed
339through that system in reliance on consistent application of that
340system; it is up to the author/donor to decide if he or she is willing
341to distribute software through any other system and a licensee cannot
342impose that choice.
343</p>
344
345<p>
346This section is intended to make thoroughly clear what is believed to
347be a consequence of the rest of this License.
348</p>
349
350<p>
351<strong>8.</strong>
352 If the distribution and/or use of the Program is restricted in
353certain countries either by patents or by copyrighted interfaces, the
354original copyright holder who places the Program under this License
355may add an explicit geographical distribution limitation excluding
356those countries, so that distribution is permitted only in or among
357countries not thus excluded. In such case, this License incorporates
358the limitation as if written in the body of this License.
359</p>
360
361<p>
362<strong>9.</strong>
363 The Free Software Foundation may publish revised and/or new
364versions of the General Public License from time to time. Such new
365versions will be similar in spirit to the present version, but may
366differ in detail to address new problems or concerns.
367</p>
368
369<p>
370Each version is given a distinguishing version number. If the Program
371specifies a version number of this License which applies to it and
372"any later version", you have the option of following the terms and
373conditions either of that version or of any later version published by
374the Free Software Foundation. If the Program does not specify a
375version number of this License, you may choose any version ever
376published by the Free Software Foundation.
377</p>
378
379<p>
380<strong>10.</strong>
381 If you wish to incorporate parts of the Program into other free
382programs whose distribution conditions are different, write to the
383author to ask for permission. For software which is copyrighted by the
384Free Software Foundation, write to the Free Software Foundation; we
385sometimes make exceptions for this. Our decision will be guided by the
386two goals of preserving the free status of all derivatives of our free
387software and of promoting the sharing and reuse of software generally.
388</p>
389
390<p><strong>NO WARRANTY</strong></p>
391
392<p>
393<strong>11.</strong>
394 BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
395WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
396LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS
397AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF
398ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
399THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
400PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
401PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME
402THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
403</p>
404
405<p>
406<strong>12.</strong>
407 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
408WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
409AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU
410FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
411CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
412PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
413RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
414FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF
415SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
416DAMAGES.
417</p>
418
419<h3>END OF TERMS AND CONDITIONS</h3>
420
421<h3><a name="SEC4" href="#TOC4">How to Apply These Terms to Your New Programs</a></h3>
422
423<p>
424If you develop a new program, and you want it to be of the greatest
425possible use to the public, the best way to achieve this is to make it
426free software which everyone can redistribute and change under these
427terms.
428</p>
429
430<p>
431To do so, attach the following notices to the program. It is safest to
432attach them to the start of each source file to most effectively
433convey the exclusion of warranty; and each file should have at least
434the "copyright" line and a pointer to where the full notice is found.
435</p>
436
437<pre>
438<var>One line to give the program's name and a brief idea of what it does.</var>
439Copyright (C) &#060;year> &#060;name of author>
440
441This program is free software; you can redistribute it and/or
442modify it under the terms of the GNU General Public License
443as published by the Free Software Foundation; either version 2
444of the License, or (at your option) any later version.
445
446This program is distributed in the hope that it will be useful,
447but WITHOUT ANY WARRANTY; without even the implied warranty of
448MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
449General Public License for more details.
450
451You should have received a copy of the GNU General Public License
452along with this program; if not, write to the Free Software
453Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
45402111-1307 USA
455</pre>
456
457<p>
458Also add information on how to contact you by electronic and paper
459mail.
460</p>
461
462<p>
463If the program is interactive, make it output a short notice like this
464when it starts in an interactive mode:
465</p>
466
467<pre>
468    Gnomovision version 69, Copyright (C) year name of author
469    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type
470    'show w'. This is free software, and you are welcome to
471    redistribute it under certain conditions; type 'show c' for
472    details.
473</pre>
474
475<p>
476The hypothetical commands 'show w' and 'show c' should show the
477appropriate parts of the General Public License. Of course, the
478commands you use may be called something other than 'show w' and 'show
479c'; they could even be mouse-clicks or menu items--whatever suits your
480program.
481</p>
482
483<p>
484You should also get your employer (if you work as a programmer) or
485your school, if any, to sign a "copyright disclaimer" for the program,
486if necessary. Here is a sample; alter the names:
487</p>
488
489<pre>
490  Yoyodyne, Inc., hereby disclaims all  copyright interest in the
491  program 'Gnomovision' (which makes passes at compilers) written by
492  James Hacker.
493
494  <var>signature of Ty Coon</var>, 1 April 1989
495  Ty Coon, President of Vice
496</pre>
497
498<p>
499This General Public License does not permit incorporating your program
500into proprietary programs. If your program is a subroutine library,
501you may consider it more useful to permit linking proprietary
502applications with the library. If this is what you want to do, use the
503GNU Library General Public License instead of this License.
504</p>
505
506
507<h3>"CLASSPATH" EXCEPTION TO THE GPL</h3>
508
509<p>
510Certain source files distributed by Oracle are subject to
511the following clarification and special exception to the GPL, but only where
512Oracle has expressly included in the particular source file's header the words
513"Oracle designates this particular file as subject to the "Classpath" exception
514as provided by Oracle in the LICENSE file that accompanied this code."
515</p>
516
517<p>
518    Linking this library statically or dynamically with other modules is making
519    a combined work based on this library.  Thus, the terms and conditions of
520    the GNU General Public License cover the whole combination.
521</p>
522
523<p>
524    As a special exception, the copyright holders of this library give you
525    permission to link this library with independent modules to produce an
526    executable, regardless of the license terms of these independent modules,
527    and to copy and distribute the resulting executable under terms of your
528    choice, provided that you also meet, for each linked independent module,
529    the terms and conditions of the license of that module.  An independent
530    module is a module which is not derived from or based on this library.  If
531    you modify this library, you may extend this exception to your version of
532    the library, but you are not obligated to do so.  If you do not wish to do
533    so, delete this exception statement from your version.
534</p>
535
536</div>
537</body>
538</html>
539