Skip to content

Commit ba5be09

Browse files
authored
Merge pull request #783 from nexB/712-695-large-data-file
License detection improvements
2 parents 7d12968 + bdf1046 commit ba5be09

File tree

600 files changed

+6049
-970
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

600 files changed

+6049
-970
lines changed

src/licensedcode/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
MIN_MATCH_LENGTH = 4
5252
MIN_MATCH_HIGH_LENGTH = 3
5353

54+
# FIXME: we should consider the length of two rules and two matches when considering MAX_DIST
55+
# eventually this should be skipped early right during the matching too
5456
# maximum distance between two matches to merge
5557
MAX_DIST = 120
5658

src/licensedcode/data/licenses/adapt-1.0.LICENSE

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -243,30 +243,30 @@ EXHIBIT A (to the Adaptive Public License)
243243

244244
PART 1: INITIAL CONTRIBUTOR AND DESIGNATED WEB SITE
245245

246-
The Initial Contributor is: ____________________________________________________
246+
The Initial Contributor is:
247247

248248
[Enter full name of Initial Contributor]
249249

250-
Address of Initial Contributor: ________________________________________________
251-
________________________________________________
252-
________________________________________________
250+
Address of Initial Contributor:
251+
252+
253253

254254
[Enter address above]
255255

256-
The Designated Web Site is: __________________________________________________
256+
The Designated Web Site is:
257257

258258
[Enter URL for Designated Web Site of Initial Contributor]
259259
NOTE: The Initial Contributor is to complete this Part 1, along with Parts 2, 3, and 5, and, if applicable, Parts 4 and 6.
260260

261261
PART 2: INITIAL WORK
262262

263-
The Initial Work comprises the computer program(s) distributed by the Initial Contributor having the following title(s): _______________________________________________.
263+
The Initial Work comprises the computer program(s) distributed by the Initial Contributor having the following title(s): .
264264

265-
The date on which the Initial Work was first available under this License: _________________
265+
The date on which the Initial Work was first available under this License:
266266

267267
PART 3: GOVERNING JURISDICTION
268268

269-
For the purposes of this License, the Governing Jurisdiction is _________________________________________________.
269+
For the purposes of this License, the Governing Jurisdiction is .
270270
[Initial Contributor to Enter Governing Jurisdiction here]
271271

272272
PART 4: THIRD PARTIES
@@ -288,7 +288,7 @@ The default definition of "THIRD PARTY" is the definition set forth in paragraph
288288

289289
PART 5: NOTICE
290290

291-
THE LICENSED WORK IS PROVIDED UNDER THE TERMS OF THE ADAPTIVE PUBLIC LICENSE ("LICENSE") AS FIRST COMPLETED BY: ______________________ [Insert the name of the Initial Contributor here]. ANY USE, PUBLIC DISPLAY, PUBLIC PERFORMANCE, REPRODUCTION OR DISTRIBUTION OF, OR PREPARATION OF DERIVATIVE WORKS BASED ON, THE LICENSED WORK CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS LICENSE AND ITS TERMS, WHETHER OR NOT SUCH RECIPIENT READS THE TERMS OF THE LICENSE. "LICENSED WORK" AND "RECIPIENT" ARE DEFINED IN THE LICENSE. A COPY OF THE LICENSE IS LOCATED IN THE TEXT FILE ENTITLED "LICENSE.TXT" ACCOMPANYING THE CONTENTS OF THIS FILE. IF A COPY OF THE LICENSE DOES NOT ACCOMPANY THIS FILE, A COPY OF THE LICENSE MAY ALSO BE OBTAINED AT THE FOLLOWING WEB SITE: ___________________________________________________ [Insert Initial Contributor's Designated Web Site here]
291+
THE LICENSED WORK IS PROVIDED UNDER THE TERMS OF THE ADAPTIVE PUBLIC LICENSE ("LICENSE") AS FIRST COMPLETED BY: [Insert the name of the Initial Contributor here]. ANY USE, PUBLIC DISPLAY, PUBLIC PERFORMANCE, REPRODUCTION OR DISTRIBUTION OF, OR PREPARATION OF DERIVATIVE WORKS BASED ON, THE LICENSED WORK CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS LICENSE AND ITS TERMS, WHETHER OR NOT SUCH RECIPIENT READS THE TERMS OF THE LICENSE. "LICENSED WORK" AND "RECIPIENT" ARE DEFINED IN THE LICENSE. A COPY OF THE LICENSE IS LOCATED IN THE TEXT FILE ENTITLED "LICENSE.TXT" ACCOMPANYING THE CONTENTS OF THIS FILE. IF A COPY OF THE LICENSE DOES NOT ACCOMPANY THIS FILE, A COPY OF THE LICENSE MAY ALSO BE OBTAINED AT THE FOLLOWING WEB SITE: [Insert Initial Contributor's Designated Web Site here]
292292

293293
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
294294

src/licensedcode/data/licenses/adobe-eula.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ category: Proprietary
55
owner: Adobe Systems
66
homepage_url: http://www.adobe.com/products/eulas/
77
notes: This is a generic license for a large number of Adobe EULAs that are very long and proprietary.
8+
minimum_coverage: 70

src/licensedcode/data/licenses/autoit-eula.LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ AutoIt
33
Author : Jonathan Bennett and the AutoIt Team
44
WWW : https://www.autoitscript.com/site/autoit/
55
Email : support at autoitscript dot com
6-
________________________________________________________
6+
77
END-USER LICENSE AGREEMENT FOR THIS SOFTWARE
88
This End-User License Agreement ("EULA") is a legal agreement between you (either an individual or a single entity) and the mentioned author of this Software for the software product identified above, which includes computer software and may include associated media, printed materials, and "online" or electronic documentation ("SOFTWARE PRODUCT"). By installing, copying, or otherwise using the SOFTWARE PRODUCT, you agree to be bound by the terms of this EULA. If you do not agree to the terms of this EULA, do not install or use the SOFTWARE PRODUCT.
99

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
As a special exception, the copyright holders of this software give you
2+
permission to link this software with independent modules, and to copy
3+
and distribute the resulting executable under terms of your choice,
4+
provided that you also meet, for each linked independent module, the
5+
terms and conditions of the license of that module.
6+
7+
An independent module is a module which is not derived from this
8+
software. The special exception does not apply to any modifications of
9+
the software.
10+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
key: broadcom-linking-unmodified
2+
short_name: Broadcom Linking Exception if unmodified
3+
name: Broadcom Linking Exception if unmodified
4+
category: Copyleft Limited
5+
owner: Broadcom
6+
notes: The exception does not apply when modified

src/licensedcode/data/licenses/bsl-1.0.LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Change License: Version 2 or later of the GNU General Public License as publish
1212

1313
For information about alternative licensing arrangements for the Software, please visit: https://mariadb.com/products/mariadb-enterprise
1414

15-
_____________________________________________
15+
1616

1717
You are granted limited license to the Software under this Business Source License. Please read this Business Source License carefully, particularly the Use Limitation set forth above.
1818

src/licensedcode/data/licenses/cnri-jython.LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
3. In the event Licensee prepares a derivative work that is based on or incorporates the Software or any part thereof, and wants to make the derivative work available to the public as provided herein, then Licensee hereby agrees to indicate in any such work, in a prominently visible way, the nature of the modifications made to CNRI's Software.

77

8-
4. Licensee may not use CNRI trademarks or trade name, including JPython or CNRI, in a trademark sense to endorse or promote products or services of Licensee, or any third party. Licensee may use the mark JPython in connection with Licensee's derivative versions that are based on or incorporate the Software, but only in the form “JPython-based ___________________,” or equivalent.

8+
4. Licensee may not use CNRI trademarks or trade name, including JPython or CNRI, in a trademark sense to endorse or promote products or services of Licensee, or any third party. Licensee may use the mark JPython in connection with Licensee's derivative versions that are based on or incorporate the Software, but only in the form “JPython-based ,” or equivalent.

99

1010
5. CNRI is making the Software available to Licensee on an “AS IS” basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.

1111

src/licensedcode/data/licenses/cpal-1.0.LICENSE

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,20 +90,20 @@ The term “External Deployment” means the use, distribution, or communication
9090

9191

9292
EXHIBIT A. Common Public Attribution License Version 1.0.
93-
“The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at _____________. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
93+
“The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at . The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
9494
Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
95-
The Original Code is______________________.
96-
The Original Developer is not the Initial Developer and is __________. If left blank, the Original Developer is the Initial Developer.
97-
The Initial Developer of the Original Code is ____________. All portions of the code written by ___________ are Copyright (c) _____. All Rights Reserved.
98-
Contributor ______________________.
99-
Alternatively, the contents of this file may be used under the terms of the _____ license (the [___] License), in which case the provisions of [______] License are applicable instead of those above.
100-
If you wish to allow use of your version of this file only under the terms of the [____] License and not to allow others to use your version of this file under the CPAL, indicate your decision by deleting the provisions above and replace them with the notice and other provisions required by the [___] License. If you do not delete the provisions above, a recipient may use your version of this file under either the CPAL or the [___] License.”
95+
The Original Code is .
96+
The Original Developer is not the Initial Developer and is . If left blank, the Original Developer is the Initial Developer.
97+
The Initial Developer of the Original Code is . All portions of the code written by are Copyright (c) . All Rights Reserved.
98+
Contributor .
99+
Alternatively, the contents of this file may be used under the terms of the license (the [ ] License), in which case the provisions of [ ] License are applicable instead of those above.
100+
If you wish to allow use of your version of this file only under the terms of the [ ] License and not to allow others to use your version of this file under the CPAL, indicate your decision by deleting the provisions above and replace them with the notice and other provisions required by the [ ] License. If you do not delete the provisions above, a recipient may use your version of this file under either the CPAL or the [ ] License.”
101101
[NOTE: The text of this Exhibit A may differ slightly from the text of the notices in the Source Code files of the Original Code. You should use the text of this Exhibit A rather than the text found in the Original Code Source Code for Your Modifications.]
102102

103103

104104
EXHIBIT B. Attribution Information
105-
Attribution Copyright Notice: _______________________
106-
Attribution Phrase (not exceeding 10 words): _______________________
107-
Attribution URL: _______________________
105+
Attribution Copyright Notice:
106+
Attribution Phrase (not exceeding 10 words):
107+
Attribution URL:
108108
Graphic Image as provided in the Covered Code, if any.
109109
Display of Attribution Information is [required/not required] in Larger Works which are defined in the CPAL as a work which combines Covered Code or portions thereof with code not governed by the terms of the CPAL.

src/licensedcode/data/licenses/cua-opl-1.0.LICENSE

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -443,24 +443,24 @@ basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
443443
License for the specific language governing rights and limitations
444444
under the License.
445445

446-
The Original Code is ______________________________________.
446+
The Original Code is .
447447

448-
The Initial Developer of the Original Code is ________________________.
449-
Portions created by ______________________ are Copyright (C) ______
450-
_______________________. All Rights Reserved.
448+
The Initial Developer of the Original Code is .
449+
Portions created by are Copyright (C)
450+
. All Rights Reserved.
451451

452-
Contributor(s): ______________________________________.
452+
Contributor(s): .
453453

454454
Alternatively, the contents of this file may be used under the terms
455-
of the _____ license (the "[___] License"), in which case the
456-
provisions of [______] License are applicable instead of those
455+
of the license (the "[ ] License"), in which case the
456+
provisions of [ ] License are applicable instead of those
457457
above. If you wish to allow use of your version of this file only
458-
under the terms of the [____] License and not to allow others to use
458+
under the terms of the [ ] License and not to allow others to use
459459
your version of this file under the CUAPL, indicate your decision by
460460
deleting the provisions above and replace them with the notice and
461-
other provisions required by the [___] License. If you do not delete
461+
other provisions required by the [ ] License. If you do not delete
462462
the provisions above, a recipient may use your version of this file
463-
under either the CUAPL or the [___] License."
463+
under either the CUAPL or the [ ] License."
464464

465465
[NOTE: The text of this Exhibit A may differ slightly from the text of
466466
the notices in the Source Code files of the Original Code. You should

0 commit comments

Comments
 (0)