Skip to content

Commit 53eaf6b

Browse files
rscpombredanne
authored andcommitted
licensecheck: add all versions of Creative Commons licenses
This helps in particular with CC-BY-3.0, mentioned by some copies of github.com/google/go-github, which was instead showing up as 86% CC-BY-SA-3.0. Unfortunately, adding these licenses cuts the recognition speed by 24% (6 MB/s -> 4.6 MB/s), paid for in full (and then some) by the optimization in the previous commit.
1 parent d1c00bc commit 53eaf6b

29 files changed

Lines changed: 5912 additions & 3 deletions

testdata/CC-BY-1.0.t1

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
100%
2+
CC-BY-1.0 100% 0,$
3+
4+
Creative Commons Attribution 1.0 License
5+
6+
THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS
7+
PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR
8+
OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS
9+
LICENSE IS PROHIBITED.
10+
11+
BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO
12+
BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE RIGHTS
13+
CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
14+
15+
1. Definitions
16+
17+
a. "Collective Work" means a work, such as a periodical issue, anthology or
18+
encyclopedia, in which the Work in its entirety in unmodified form, along
19+
with a number of other contributions, constituting separate and independent
20+
works in themselves, are assembled into a collective whole. A work that constitutes
21+
a Collective Work will not be considered a Derivative Work (as defined below)
22+
for the purposes of this License.
23+
24+
b. "Derivative Work" means a work based upon the Work or upon the Work and
25+
other pre-existing works, such as a translation, musical arrangement, dramatization,
26+
fictionalization, motion picture version, sound recording, art reproduction,
27+
abridgment, condensation, or any other form in which the Work may be recast,
28+
transformed, or adapted, except that a work that constitutes a Collective
29+
Work will not be considered a Derivative Work for the purpose of this License.
30+
31+
c. "Licensor" means the individual or entity that offers the Work under the
32+
terms of this License.
33+
34+
d. "Original Author" means the individual or entity who created the Work.
35+
36+
e. "Work" means the copyrightable work of authorship offered under the terms
37+
of this License.
38+
39+
f. "You" means an individual or entity exercising rights under this License
40+
who has not previously violated the terms of this License with respect to
41+
the Work, or who has received express permission from the Licensor to exercise
42+
rights under this License despite a previous violation.
43+
44+
2. Fair Use Rights. Nothing in this license is intended to reduce, limit,
45+
or restrict any rights arising from fair use, first sale or other limitations
46+
on the exclusive rights of the copyright owner under copyright law or other
47+
applicable laws.
48+
49+
3. License Grant. Subject to the terms and conditions of this License, Licensor
50+
hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for
51+
the duration of the applicable copyright) license to exercise the rights in
52+
the Work as stated below:
53+
54+
a. to reproduce the Work, to incorporate the Work into one or more Collective
55+
Works, and to reproduce the Work as incorporated in the Collective Works;
56+
57+
b. to create and reproduce Derivative Works;
58+
59+
c. to distribute copies or phonorecords of, display publicly, perform publicly,
60+
and perform publicly by means of a digital audio transmission the Work including
61+
as incorporated in Collective Works;
62+
63+
d. to distribute copies or phonorecords of, display publicly, perform publicly,
64+
and perform publicly by means of a digital audio transmission Derivative Works;
65+
66+
The above rights may be exercised in all media and formats whether now known
67+
or hereafter devised. The above rights include the right to make such modifications
68+
as are technically necessary to exercise the rights in other media and formats.
69+
All rights not expressly granted by Licensor are hereby reserved.
70+
71+
4. Restrictions. The license granted in Section 3 above is expressly made
72+
subject to and limited by the following restrictions:
73+
74+
a. You may distribute, publicly display, publicly perform, or publicly digitally
75+
perform the Work only under the terms of this License, and You must include
76+
a copy of, or the Uniform Resource Identifier for, this License with every
77+
copy or phonorecord of the Work You distribute, publicly display, publicly
78+
perform, or publicly digitally perform. You may not offer or impose any terms
79+
on the Work that alter or restrict the terms of this License or the recipients'
80+
exercise of the rights granted hereunder. You may not sublicense the Work.
81+
You must keep intact all notices that refer to this License and to the disclaimer
82+
of warranties. You may not distribute, publicly display, publicly perform,
83+
or publicly digitally perform the Work with any technological measures that
84+
control access or use of the Work in a manner inconsistent with the terms
85+
of this License Agreement. The above applies to the Work as incorporated in
86+
a Collective Work, but this does not require the Collective Work apart from
87+
the Work itself to be made subject to the terms of this License. If You create
88+
a Collective Work, upon notice from any Licensor You must, to the extent practicable,
89+
remove from the Collective Work any reference to such Licensor or the Original
90+
Author, as requested. If You create a Derivative Work, upon notice from any
91+
Licensor You must, to the extent practicable, remove from the Derivative Work
92+
any reference to such Licensor or the Original Author, as requested.
93+
94+
b. If you distribute, publicly display, publicly perform, or publicly digitally
95+
perform the Work or any Derivative Works or Collective Works, You must keep
96+
intact all copyright notices for the Work and give the Original Author credit
97+
reasonable to the medium or means You are utilizing by conveying the name
98+
(or pseudonym if applicable) of the Original Author if supplied; the title
99+
of the Work if supplied; in the case of a Derivative Work, a credit identifying
100+
the use of the Work in the Derivative Work (e.g., "French translation of the
101+
Work by Original Author," or "Screenplay based on original Work by Original
102+
Author"). Such credit may be implemented in any reasonable manner; provided,
103+
however, that in the case of a Derivative Work or Collective Work, at a minimum
104+
such credit will appear where any other comparable authorship credit appears
105+
and in a manner at least as prominent as such other comparable authorship
106+
credit.
107+
108+
5. Representations, Warranties and Disclaimer
109+
110+
a. By offering the Work for public release under this License, Licensor represents
111+
and warrants that, to the best of Licensor's knowledge after reasonable inquiry:
112+
113+
i. Licensor has secured all rights in the Work necessary to grant the license
114+
rights hereunder and to permit the lawful exercise of the rights granted hereunder
115+
without You having any obligation to pay any royalties, compulsory license
116+
fees, residuals or any other payments;
117+
118+
ii. The Work does not infringe the copyright, trademark, publicity rights,
119+
common law rights or any other right of any third party or constitute defamation,
120+
invasion of privacy or other tortious injury to any third party.
121+
122+
b. EXCEPT AS EXPRESSLY STATED IN THIS LICENSE OR OTHERWISE AGREED IN WRITING
123+
OR REQUIRED BY APPLICABLE LAW, THE WORK IS LICENSED ON AN "AS IS" BASIS, WITHOUT
124+
WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION,
125+
ANY WARRANTIES REGARDING THE CONTENTS OR ACCURACY OF THE WORK.
126+
127+
6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW,
128+
AND EXCEPT FOR DAMAGES ARISING FROM LIABILITY TO A THIRD PARTY RESULTING FROM
129+
BREACH OF THE WARRANTIES IN SECTION 5, IN NO EVENT WILL LICENSOR BE LIABLE
130+
TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE
131+
OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN
132+
IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
133+
134+
7. Termination
135+
136+
a. This License and the rights granted hereunder will terminate automatically
137+
upon any breach by You of the terms of this License. Individuals or entities
138+
who have received Derivative Works or Collective Works from You under this
139+
License, however, will not have their licenses terminated provided such individuals
140+
or entities remain in full compliance with those licenses. Sections 1, 2,
141+
5, 6, 7, and 8 will survive any termination of this License.
142+
143+
b. Subject to the above terms and conditions, the license granted here is
144+
perpetual (for the duration of the applicable copyright in the Work). Notwithstanding
145+
the above, Licensor reserves the right to release the Work under different
146+
license terms or to stop distributing the Work at any time; provided, however
147+
that any such election will not serve to withdraw this License (or any other
148+
license that has been, or is required to be, granted under the terms of this
149+
License), and this License will continue in full force and effect unless terminated
150+
as stated above.
151+
152+
8. Miscellaneous
153+
154+
a. Each time You distribute or publicly digitally perform the Work or a Collective
155+
Work, the Licensor offers to the recipient a license to the Work on the same
156+
terms and conditions as the license granted to You under this License.
157+
158+
b. Each time You distribute or publicly digitally perform a Derivative Work,
159+
Licensor offers to the recipient a license to the original Work on the same
160+
terms and conditions as the license granted to You under this License.
161+
162+
c. If any provision of this License is invalid or unenforceable under applicable
163+
law, it shall not affect the validity or enforceability of the remainder of
164+
the terms of this License, and without further action by the parties to this
165+
agreement, such provision shall be reformed to the minimum extent necessary
166+
to make such provision valid and enforceable.
167+
168+
d. No term or provision of this License shall be deemed waived and no breach
169+
consented to unless such waiver or consent shall be in writing and signed
170+
by the party to be charged with such waiver or consent.
171+
172+
e. This License constitutes the entire agreement between the parties with
173+
respect to the Work licensed here. There are no understandings, agreements
174+
or representations with respect to the Work not specified here. Licensor shall
175+
not be bound by any additional provisions that may appear in any communication
176+
from You. This License may not be modified without the mutual written agreement
177+
of the Licensor and You.

0 commit comments

Comments
 (0)