diff --git a/etc/scripts/licenses/synclic.py b/etc/scripts/licenses/synclic.py
index 3ccfca3a4d3..39521609412 100644
--- a/etc/scripts/licenses/synclic.py
+++ b/etc/scripts/licenses/synclic.py
@@ -530,6 +530,7 @@ class DejaSource(ExternalLicensesSource):
"is_deprecated",
"is_exception",
# not yet
+ # "notes",
# "standard_notice",
)
non_updatable_attributes = ("notes",)
@@ -601,6 +602,8 @@ def build_license(self, mapping, *args, **kwargs):
key = mapping["key"]
standard_notice = mapping.get("standard_notice") or ""
standard_notice = clean_text(standard_notice)
+ # notes = mapping.get("reference_notes") or ""
+ # notes = clean_text(notes)
deprecated = not mapping.get("is_active")
spdx_license_key = mapping.get("spdx_license_key") or None
@@ -629,6 +632,7 @@ def build_license(self, mapping, *args, **kwargs):
is_exception=mapping.get("is_exception", False),
is_deprecated=deprecated,
standard_notice=standard_notice,
+ # notes=notes,
)
text = mapping["full_text"] or ""
# normalize EOL to POSIX
@@ -994,6 +998,7 @@ def update_external(_attrib, _sc_val, _ext_val):
update_scancode(attrib, scancode_value, external_value)
continue
+ # We merge sequences
if isinstance(scancode_value, (list, tuple)) and isinstance(external_value, (list, tuple)):
normalized_scancode_value = set(s for s in scancode_value if s and s.strip())
normalize_external_value = set(s for s in external_value if s and s.strip())
@@ -1034,8 +1039,7 @@ def update_external(_attrib, _sc_val, _ext_val):
continue
if isinstance(scancode_value, str) and isinstance(external_value, str):
- # keep the stripped and normalized spaces value
- # normalized spaces
+ # make value stripped and with normalized spaces
normalized_scancode_value = " ".join(scancode_value.split())
normalize_external_value = " ".join(external_value.split())
@@ -1165,9 +1169,9 @@ def synchronize_licenses(
# the matching key exists on both sides: merge/update both licenses
scancode_updated, external_updated = merge_licenses(
- scancode_license,
- external_license,
- external_source.updatable_attributes,
+ scancode_license=scancode_license,
+ external_license=external_license,
+ updatable_attributes=external_source.updatable_attributes,
from_spdx=use_spdx_key,
)
diff --git a/foo.html b/foo.html
new file mode 100644
index 00000000000..e8b8742aa73
--- /dev/null
+++ b/foo.html
@@ -0,0 +1,35 @@
+
+
+
Copyright (c) Django Software Foundation and individual contributors.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of FOOBAR conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ 3. Neither the name of Django nor the names of its contributors may be used
+ to endorse or promote products derived from this software without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/ht.py b/ht.py
new file mode 100644
index 00000000000..b17b60d5764
--- /dev/null
+++ b/ht.py
@@ -0,0 +1,7 @@
+from licensedcode.cache import get_index
+idx = get_index()
+file= "sample.license.txt"
+matches = idx.match(location=file)
+for match in matches:
+ ht = match.get_highlighted_text()
+ print(ht)
diff --git a/sample.license.txt b/sample.license.txt
new file mode 100644
index 00000000000..3c980b50614
--- /dev/null
+++ b/sample.license.txt
@@ -0,0 +1,27 @@
+Copyright (c) Django Software Foundation and individual contributors.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of FOOBAR conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ 3. Neither the name of Django nor the names of its contributors may be used
+ to endorse or promote products derived from this software without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/src/licensedcode/data/licenses/anti-capitalist-1.4.yml b/src/licensedcode/data/licenses/anti-capitalist-1.4.yml
index b935fce42bd..81a3479dd7c 100644
--- a/src/licensedcode/data/licenses/anti-capitalist-1.4.yml
+++ b/src/licensedcode/data/licenses/anti-capitalist-1.4.yml
@@ -1,6 +1,6 @@
key: anti-capitalist-1.4
short_name: ACSL v. 1.4
-name: ANTI-CAPITALIST SOFTWARE LICENSE (v 1.4)
+name: Anti-Capitalist Software License (v 1.4)
category: Free Restricted
owner: Everest Pipkin and Ramsey Nasser
homepage_url: https://anticapitalist.software/
diff --git a/src/licensedcode/data/licenses/app-s2p.yml b/src/licensedcode/data/licenses/app-s2p.yml
index 5b90d66f290..f8521851288 100644
--- a/src/licensedcode/data/licenses/app-s2p.yml
+++ b/src/licensedcode/data/licenses/app-s2p.yml
@@ -2,7 +2,8 @@ key: app-s2p
short_name: App::s2p License
name: App::s2p License
category: Permissive
-owner: Unspecified
+owner: Fedora
+homepage_url: https://fedoraproject.org/wiki/Licensing/App-s2p
spdx_license_key: App-s2p
other_urls:
- https://fedoraproject.org/wiki/Licensing/App-s2p
diff --git a/src/licensedcode/data/licenses/bohl-0.2.yml b/src/licensedcode/data/licenses/bohl-0.2.yml
index e83c5132add..6dbb39f6a31 100644
--- a/src/licensedcode/data/licenses/bohl-0.2.yml
+++ b/src/licensedcode/data/licenses/bohl-0.2.yml
@@ -2,7 +2,7 @@ key: bohl-0.2
short_name: BOHL-0.2
name: The Balloon Open Hardware License v0.2
category: Permissive
-owner: The Balloon
+owner: iTechnic
spdx_license_key: LicenseRef-scancode-bohl-0.2
text_urls:
- https://web.archive.org/web/20140426215620/http://www.balloonboard.org/docs/Balloon_License_0v2.pdf
diff --git a/src/licensedcode/data/licenses/cc-by-nc-sa-2.0-fr.yml b/src/licensedcode/data/licenses/cc-by-nc-sa-2.0-fr.yml
index 61400856e0d..312455110e8 100644
--- a/src/licensedcode/data/licenses/cc-by-nc-sa-2.0-fr.yml
+++ b/src/licensedcode/data/licenses/cc-by-nc-sa-2.0-fr.yml
@@ -2,7 +2,7 @@ key: cc-by-nc-sa-2.0-fr
language: fr
short_name: CC-BY-NC-SA-2.0-FR
name: Creative Commons Attribution-NonCommercial-ShareAlike 2.0 France
-category: Free Restricted
+category: Source-available
owner: Creative Commons
spdx_license_key: CC-BY-NC-SA-2.0-FR
other_urls:
diff --git a/src/licensedcode/data/licenses/cc-by-nc-sa-3.0-de.yml b/src/licensedcode/data/licenses/cc-by-nc-sa-3.0-de.yml
index 2bb1852298a..aa78c19bec8 100644
--- a/src/licensedcode/data/licenses/cc-by-nc-sa-3.0-de.yml
+++ b/src/licensedcode/data/licenses/cc-by-nc-sa-3.0-de.yml
@@ -2,7 +2,7 @@ key: cc-by-nc-sa-3.0-de
language: de
short_name: CC-BY-NC-SA-3.0-DE
name: Creative Commons Attribution Non Commercial Share Alike 3.0 Germany
-category: Free Restricted
+category: Source-available
owner: Creative Commons
spdx_license_key: CC-BY-NC-SA-3.0-DE
other_urls:
diff --git a/src/licensedcode/data/licenses/cc-by-sa-1.0.yml b/src/licensedcode/data/licenses/cc-by-sa-1.0.yml
index d5ce1a6863d..5a874e3bed2 100644
--- a/src/licensedcode/data/licenses/cc-by-sa-1.0.yml
+++ b/src/licensedcode/data/licenses/cc-by-sa-1.0.yml
@@ -1,7 +1,7 @@
key: cc-by-sa-1.0
short_name: CC-BY-SA-1.0
name: Creative Commons Attribution Share Alike License 1.0
-category: Permissive
+category: Copyleft Limited
owner: Creative Commons
homepage_url: http://creativecommons.org/licenses/by-sa/1.0/
spdx_license_key: CC-BY-SA-1.0
diff --git a/src/licensedcode/data/licenses/cc-by-sa-4.0.yml b/src/licensedcode/data/licenses/cc-by-sa-4.0.yml
index 438ff61eeba..cf918e66af7 100644
--- a/src/licensedcode/data/licenses/cc-by-sa-4.0.yml
+++ b/src/licensedcode/data/licenses/cc-by-sa-4.0.yml
@@ -1,7 +1,7 @@
key: cc-by-sa-4.0
short_name: CC-BY-SA-4.0
name: Creative Commons Attribution-ShareAlike 4.0 International Public License
-category: Copyleft
+category: Copyleft Limited
owner: Creative Commons
homepage_url: http://creativecommons.org/licenses/by-sa/4.0/
spdx_license_key: CC-BY-SA-4.0
diff --git a/src/licensedcode/data/licenses/cc-gpl-2.0-pt.yml b/src/licensedcode/data/licenses/cc-gpl-2.0-pt.yml
index aa568e54eb6..0bde7167dc3 100644
--- a/src/licensedcode/data/licenses/cc-gpl-2.0-pt.yml
+++ b/src/licensedcode/data/licenses/cc-gpl-2.0-pt.yml
@@ -2,7 +2,7 @@ key: cc-gpl-2.0-pt
language: pt
short_name: CC-GPL-2.0-PT
name: Creative Commons Licença Pública Geral do GNU (GPL) [General Public License]
-category: Copyleft Limited
+category: Copyleft
owner: Creative Commons
homepage_url: https://creativecommons.org/licenses/GPL/2.0/
spdx_license_key: LicenseRef-scancode-cc-gpl-2.0-pt
diff --git a/src/licensedcode/data/licenses/cecill-c-en.yml b/src/licensedcode/data/licenses/cecill-c-en.yml
index 65d5fa7ce57..908e8e59e49 100644
--- a/src/licensedcode/data/licenses/cecill-c-en.yml
+++ b/src/licensedcode/data/licenses/cecill-c-en.yml
@@ -1,7 +1,7 @@
key: cecill-c-en
short_name: CeCILL-C License English
name: CeCILL-C Free Software License Agreement English
-category: Copyleft
+category: Copyleft Limited
owner: CeCILL
homepage_url: http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html
notes: "This is the English translation of \nhttp://www.cecill.info/licences/Licence_CeCILL-C_V1-fr.html\n"
diff --git a/src/licensedcode/data/licenses/cncf-corporate-cla-1.0.LICENSE b/src/licensedcode/data/licenses/cncf-corporate-cla-1.0.LICENSE
new file mode 100644
index 00000000000..7d13379b0ce
--- /dev/null
+++ b/src/licensedcode/data/licenses/cncf-corporate-cla-1.0.LICENSE
@@ -0,0 +1,123 @@
+Cloud Native Computing Foundation
+A project of The Linux Foundation
+Software Grant and Corporate Contributor License Agreement ("Agreement") v1.0
+
+Thank you for your interest in the Cloud Native Computing Foundation project (“CNCF”) of The
+Linux Foundation (the "Foundation"). In order to clarify the intellectual property license granted
+with Contributions from any person or entity, the Foundation must have a Contributor License
+Agreement (CLA) on file that has been signed by each Contributor, indicating agreement to the
+license terms below. This license is for your protection as a Contributor as well as the protection
+of CNCF, the Foundation and its users; it does not change your rights to use your own
+Contributions for any other purpose.
+
+This version of the Agreement allows an entity (the "Corporation") to submit Contributions to the
+Foundation, to authorize Contributions submitted by its designated employees to the
+Foundation, and to grant copyright and patent licenses thereto.
+
+If you have not already done so, please complete and sign, then scan and email a PDF file of
+this Agreement to cla@cncf.io
+If necessary, send an original signed Agreement to The Linux
+Foundation, 1 Letterman Drive, Building D, Suite D4700, San Francisco CA 94129, U.S.A.
+Please read this document carefully before signing and keep a copy for your records.
+
+ Corporation name: ________________________________________________
+ Corporation address: ________________________________________________
+ ________________________________________________
+ ________________________________________________
+
+ Point of Contact: ________________________________________________
+ EMail: ________________________________________________
+ Telephone: _____________________
+
+You accept and agree to the following terms and conditions for Your present and future
+Contributions submitted to the Foundation. In return, the Foundation shall not use Your
+Contributions in a way that is contrary to the public benefit or inconsistent with its nonprofit
+status and bylaws in effect at the time of the Contribution. Except for the license granted herein
+to the Foundation and recipients of software distributed by the Foundation, You reserve all right,
+title, and interest in and to Your Contributions.
+
+ 1. Definitions.
+
+ "You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright
+owner that is making this Agreement with the Foundation. For legal entities, the entity making a
+Contribution and all other entities that control, are controlled by, or are under common control
+with that entity are considered to be a single Contributor. For the purposes of this definition,
+"control" means (i) the power, direct or indirect, to cause the direction or management of such
+entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
+outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "Contribution" shall mean the code, documentation or other original works of authorship
+expressly identified in Schedule B, as well as any original work of authorship, including any
+modifications or additions to an existing work, that is intentionally submitted by You to the
+Foundation for inclusion in, or documentation of, any of the products owned or managed by the
+Foundation (the "Work"). For the purposes of this definition, "submitted" means any form of
+electronic, verbal, or written communication sent to the Foundation or its representatives,
+including but not limited to communication on electronic mailing lists, source code control
+systems, and issue tracking systems that are managed by, or on behalf of, the Foundation for
+the purpose of discussing and improving the Work, but excluding communication that is
+conspicuously marked or otherwise designated in writing by You as "Not a Contribution."
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of this Agreement, You
+hereby grant to the Foundation and to recipients of software distributed by the Foundation a
+perpetual, worldwide, nonexclusive, nocharge, royaltyfree, irrevocable copyright license to
+reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and
+distribute Your Contributions and such derivative works.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of this Agreement, You hereby
+grant to the Foundation and to recipients of software distributed by the Foundation a perpetual,
+worldwide, nonexclusive, nocharge, royaltyfree, irrevocable (except as stated in this section)
+patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the
+Work, where such license applies only to those patent claims licensable by You that are
+necessarily infringed by Your Contribution(s) alone or by combination of Your Contribution(s)
+with the Work to which such Contribution(s) were submitted. If any entity institutes patent
+litigation against You or any other entity (including a crossclaim or counterclaim in a lawsuit)
+alleging that your Contribution, or the Work to which you have contributed, constitutes direct or
+contributory patent infringement, then any patent licenses granted to that entity under this
+Agreement for that Contribution or Work shall terminate as of the date such litigation is filed.
+
+ 4. You represent that You are legally entitled to grant the above license. You represent further
+that each employee of the Corporation designated on Schedule A below (or in a subsequent
+written modification to that Schedule) is authorized to submit Contributions on behalf of the
+Corporation.
+
+ 5. You represent that each of Your Contributions is Your original creation (see section 7 for
+submissions on behalf of others).
+
+ 6. You are not expected to provide support for Your Contributions, except to the extent You
+desire to provide support. You may provide support for free, for a fee, or not at all. Unless
+required by applicable law or agreed to in writing, You provide Your Contributions on an "AS IS"
+BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
+including, without limitation, any warranties or conditions of TITLE, NONINFRINGEMENT,
+MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.
+
+ 7. Should You wish to submit work that is not Your original creation, You may submit it to the
+Foundation separately from any Contribution, identifying the complete details of its source and
+of any license or other restriction (including, but not limited to, related patents, trademarks, and
+license agreements) of which you are personally aware, and conspicuously marking the work as
+"Submitted on behalf of a thirdparty: [named here]".
+
+ 8. It is your responsibility to notify the Foundation when any change is required to the list of
+designated employees authorized to submit Contributions on behalf of the Corporation, or to the
+Corporation's Point of Contact with the Foundation.
+
+
+
+Please sign: __________________________________ Date: _______________
+
+Title: __________________________________
+
+Corporation: __________________________________
+
+
+Schedule A
+
+Initial list of designated employees. NB: authorization is not tied to particular Contributions.
+Please indicate “CLA Manager” next to the name of any employees listed below that are
+authorized to add or remove designated employees from this list in the future.
+
+
+
+Schedule B
+
+[Identification of optional concurrent software grant. Would be left blank or omitted if there is no
+concurrent software grant.]
diff --git a/src/licensedcode/data/licenses/cncf-corporate-cla-1.0.yml b/src/licensedcode/data/licenses/cncf-corporate-cla-1.0.yml
new file mode 100644
index 00000000000..3c61f4cb27c
--- /dev/null
+++ b/src/licensedcode/data/licenses/cncf-corporate-cla-1.0.yml
@@ -0,0 +1,11 @@
+key: cncf-corporate-cla-1.0
+short_name: CNCF Corporate CLA 1.0
+name: Software Grant and Corporate Contributor License Agreement ("Agreement") v1.0
+category: Patent License
+owner: Linux Foundation
+homepage_url: https://github.com/cncf/cla/blob/master/corporate-cla.pdf
+spdx_license_key: LicenseRef-scancode-cncf-corporate-cla-1.0
+faq_url: https://github.com/kubernetes/community/blob/master/CLA.md
+ignorable_emails:
+ - cla@cncf.io
+
diff --git a/src/licensedcode/data/licenses/cncf-individual-cla-1.0.LICENSE b/src/licensedcode/data/licenses/cncf-individual-cla-1.0.LICENSE
new file mode 100644
index 00000000000..bce492a5942
--- /dev/null
+++ b/src/licensedcode/data/licenses/cncf-individual-cla-1.0.LICENSE
@@ -0,0 +1,102 @@
+Cloud Native Computing Foundation
+A project of The Linux Foundation
+Individual Contributor License Agreement ("Agreement") v1.0
+
+Thank you for your interest in the Cloud Native Computing Foundation project (“CNCF”) of The
+Linux Foundation (the "Foundation"). In order to clarify the intellectual property license granted
+with Contributions from any person or entity, the Foundation must have a Contributor License
+Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to
+the license terms below. This license is for your protection as a Contributor as well as the
+protection of CNCF, the Foundation and its users; it does not change your rights to use your
+own Contributions for any other purpose.
+
+If you have not already done so, please complete and sign, then scan and email a pdf file of this
+Agreement to cla@cncf.io
+If necessary, send an original signed Agreement to The Linux
+Foundation, 1 Letterman Drive, Building D, Suite D4700, San Francisco CA 94129, U.S.A.
+Please read this document carefully before signing and keep a copy for your records.
+
+Full name: ______________________________________________________
+Public name: _________________________________________
+Mailing Address: ________________________________________________
+ ________________________________________________
+Country: ______________________________________________________
+Telephone: ______________________________________________________
+EMail: ______________________________________________________
+
+You accept and agree to the following terms and conditions for Your present and future
+Contributions submitted to the Foundation. In return, the Foundation shall not use Your
+Contributions in a way that is contrary to the public benefit or inconsistent with its nonprofit
+status and bylaws in effect at the time of the Contribution. Except for the license granted herein
+to the Foundation and recipients of software distributed by the Foundation, You reserve all right,
+title, and interest in and to Your Contributions.
+
+1. Definitions.
+
+"You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright
+owner that is making this Agreement with the Foundation. For legal entities, the entity making a
+Contribution and all other entities that control, are controlled by, or are under common control
+with that entity are considered to be a single Contributor. For the purposes of this definition,
+"control" means (i) the power, direct or indirect, to cause the direction or management of such
+entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
+outstanding shares, or (iii) beneficial ownership of such entity.
+
+"Contribution" shall mean any original work of authorship, including any modifications or
+additions to an existing work, that is intentionally submitted by You to the Foundation for
+inclusion in, or documentation of, any of the products owned or managed by the Foundation (the
+"Work"). For the purposes of this definition, "submitted" means any form of electronic, verbal, or
+written communication sent to the Foundation or its representatives, including but not limited to
+communication on electronic mailing lists, source code control systems, and issue tracking
+systems that are managed by, or on behalf of, the Foundation for the purpose of discussing and
+improving the Work, but excluding communication that is conspicuously marked or otherwise
+designated in writing by You as "Not a Contribution."
+
+2. Grant of Copyright License. Subject to the terms and conditions of this Agreement, You
+hereby grant to the Foundation and to recipients of software distributed by the Foundation a
+perpetual, worldwide, nonexclusive, nocharge, royaltyfree, irrevocable copyright license to
+reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and
+distribute Your Contributions and such derivative works.
+
+3. Grant of Patent License. Subject to the terms and conditions of this Agreement, You hereby
+grant to the Foundation and to recipients of software distributed by the Foundation a perpetual,
+worldwide, nonexclusive, nocharge, royaltyfree, irrevocable (except as stated in this section)
+patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the
+Work, where such license applies only to those patent claims licensable by You that are
+necessarily infringed by Your Contribution(s) alone or by combination of Your Contribution(s)
+with the Work to which such Contribution(s) was submitted. If any entity institutes patent
+litigation against You or any other entity (including a crossclaim or counterclaim in a lawsuit)
+alleging that your Contribution, or the Work to which you have contributed, constitutes direct or
+contributory patent infringement, then any patent licenses granted to that entity under this
+Agreement for that Contribution or Work shall terminate as of the date such litigation is filed.
+
+4. You represent that you are legally entitled to grant the above license. If your employer(s) has
+rights to intellectual property that you create that includes your Contributions, you represent that
+you have received permission to make Contributions on behalf of that employer, that your
+employer has waived such rights for your Contributions to the Foundation, or that your employer
+has executed a separate Corporate CLA with the Foundation.
+
+5. You represent that each of Your Contributions is Your original creation (see section 7 for
+submissions on behalf of others). You represent that Your Contribution submissions include
+complete details of any thirdparty license or other restriction (including, but not limited to,
+related patents and trademarks) of which you are personally aware and which are associated
+with any part of Your Contributions.
+
+6. You are not expected to provide support for Your Contributions, except to the extent You
+desire to provide support. You may provide support for free, for a fee, or not at all. Unless
+required by applicable law or agreed to in writing, You provide Your Contributions on an "AS IS"
+BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
+including, without limitation, any warranties or conditions of TITLE, NONINFRINGEMENT,
+MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.
+
+7. Should You wish to submit work that is not Your original creation, You may submit it to the
+Foundation separately from any Contribution, identifying the complete details of its source and
+of any license or other restriction (including, but not limited to, related patents, trademarks, and
+license agreements) of which you are personally aware, and conspicuously marking the work as
+"Submitted on behalf of a thirdparty: [named here]".
+
+8. You agree to notify the Foundation of any facts or circumstances of which you become aware
+that would make these representations inaccurate in any respect.
+
+
+Please sign: __________________________________ Date: ________________
+
diff --git a/src/licensedcode/data/licenses/cncf-individual-cla-1.0.yml b/src/licensedcode/data/licenses/cncf-individual-cla-1.0.yml
new file mode 100644
index 00000000000..38052dca4a6
--- /dev/null
+++ b/src/licensedcode/data/licenses/cncf-individual-cla-1.0.yml
@@ -0,0 +1,11 @@
+key: cncf-individual-cla-1.0
+short_name: CNCF Individual CLA 1.0
+name: CNCF Individual Contributor License Agreement ("Agreement") v1.0
+category: Patent License
+owner: Linux Foundation
+homepage_url: https://github.com/cncf/cla/blob/master/individual-cla.pdf
+spdx_license_key: LicenseRef-scancode-cncf-individual-cla-1.0
+faq_url: https://github.com/kubernetes/community/blob/master/CLA.md
+ignorable_emails:
+ - cla@cncf.io
+
diff --git a/src/licensedcode/data/licenses/cpm-2022.LICENSE b/src/licensedcode/data/licenses/cpm-2022.LICENSE
new file mode 100644
index 00000000000..bb20b2014d1
--- /dev/null
+++ b/src/licensedcode/data/licenses/cpm-2022.LICENSE
@@ -0,0 +1,6 @@
+Let this paragraph represent a right to use, distribute, modify, enhance, and otherwise
+make available in a nonexclusive manner CP/M and its derivatives. This right comes from
+the company, DRDOS, Inc.'s purchase of Digital Research, the company and all assets,
+dating back to the mid-1990's. DRDOS, Inc. and I, Bryan Sparks, President of DRDOS,
+Inc. as its representative, is the owner of CP/M and the successor in interest of
+Digital Research assets.
\ No newline at end of file
diff --git a/src/licensedcode/data/licenses/cpm-2022.yml b/src/licensedcode/data/licenses/cpm-2022.yml
new file mode 100644
index 00000000000..8e3954a67d5
--- /dev/null
+++ b/src/licensedcode/data/licenses/cpm-2022.yml
@@ -0,0 +1,7 @@
+key: cpm-2022
+short_name: CP/M License 2022
+name: CP/M License 2022
+category: Permissive
+owner: DRDOS
+homepage_url: http://www.cpm.z80.de/license.html
+spdx_license_key: LicenseRef-scancode-cpm-2022
diff --git a/src/licensedcode/data/licenses/dos32a-extender.LICENSE b/src/licensedcode/data/licenses/dos32a-extender.LICENSE
new file mode 100644
index 00000000000..3a29168c122
--- /dev/null
+++ b/src/licensedcode/data/licenses/dos32a-extender.LICENSE
@@ -0,0 +1,36 @@
+DOS/32 Advanced DOS Extender Software License
+=============================================
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+1. Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+
+3. The end-user documentation included with the redistribution, if any,
+must include the following acknowledgment:
+
+"This product uses DOS/32 Advanced DOS Extender technology."
+
+Alternately, this acknowledgment may appear in the software itself, if
+and wherever such third-party acknowledgments normally appear.
+
+4. Products derived from this software may not be called "DOS/32A" or
+"DOS/32 Advanced".
+
+THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS" AND ANY EXPRESSED
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/src/licensedcode/data/licenses/dos32a-extender.yml b/src/licensedcode/data/licenses/dos32a-extender.yml
new file mode 100644
index 00000000000..4ee19ee9fca
--- /dev/null
+++ b/src/licensedcode/data/licenses/dos32a-extender.yml
@@ -0,0 +1,11 @@
+key: dos32a-extender
+short_name: DOS32A Extender License
+name: DOS32 Advanced DOS Extender Software License
+category: Permissive
+owner: NarechK
+homepage_url: https://dos32a.narechk.net/content/license.html
+spdx_license_key: LicenseRef-scancode-dos32a-extender
+text_urls:
+ - https://github.com/open-watcom/open-watcom-v2/blob/master/bld/redist/dos32a/license.d32
+other_urls:
+ - https://sourceforge.net/projects/dos32a/
diff --git a/src/licensedcode/data/licenses/google-cla.LICENSE b/src/licensedcode/data/licenses/google-cla.LICENSE
new file mode 100644
index 00000000000..7fcef525185
--- /dev/null
+++ b/src/licensedcode/data/licenses/google-cla.LICENSE
@@ -0,0 +1,25 @@
+Google Individual Contributor License Agreement
+
+In order to clarify the intellectual property license granted with Contributions from any person or entity, Google LLC ("Google") must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of Google; it does not change your rights to use your own Contributions for any other purpose.
+
+You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Google. Except for the license granted herein to Google and recipients of software distributed by Google, You reserve all right, title, and interest in and to Your Contributions.
+
+ Definitions.
+
+ "You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Google. For legal entities, the entity making a Contribution and all other entities that control, are controlled by, or are under common control with that entity are considered to be a single Contributor. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "Contribution" shall mean any original work of authorship, including any modifications or additions to an existing work, that is intentionally submitted by You to Google for inclusion in, or documentation of, any of the products owned or managed by Google (the "Work"). For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to Google or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, Google for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by You as "Not a Contribution."
+
+ Grant of Copyright License. Subject to the terms and conditions of this Agreement, You hereby grant to Google and to recipients of software distributed by Google a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Your Contributions and such derivative works.
+
+ Grant of Patent License. Subject to the terms and conditions of this Agreement, You hereby grant to Google and to recipients of software distributed by Google a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by You that are necessarily infringed by Your Contribution(s) alone or by combination of Your Contribution(s) with the Work to which such Contribution(s) was submitted. If any entity institutes patent litigation against You or any other entity (including a cross-claim or counterclaim in a lawsuit) alleging that your Contribution, or the Work to which you have contributed, constitutes direct or contributory patent infringement, then any patent licenses granted to that entity under this Agreement for that Contribution or Work shall terminate as of the date such litigation is filed.
+
+ You represent that you are legally entitled to grant the above license. If your employer(s) has rights to intellectual property that you create that includes your Contributions, you represent that you have received permission to make Contributions on behalf of that employer, that your employer has waived such rights for your Contributions to Google, or that your employer has executed a separate Corporate CLA with Google.
+
+ You represent that each of Your Contributions is Your original creation (see section 7 for submissions on behalf of others). You represent that Your Contribution submissions include complete details of any third-party license or other restriction (including, but not limited to, related patents and trademarks) of which you are personally aware and which are associated with any part of Your Contributions.
+
+ You are not expected to provide support for Your Contributions, except to the extent You desire to provide support. You may provide support for free, for a fee, or not at all. Unless required by applicable law or agreed to in writing, You provide Your Contributions on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON- INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.
+
+ Should You wish to submit work that is not Your original creation, You may submit it to Google separately from any Contribution, identifying the complete details of its source and of any license or other restriction (including, but not limited to, related patents, trademarks, and license agreements) of which you are personally aware, and conspicuously marking the work as "Submitted on behalf of a third-party: [named here]".
+
+ You agree to notify Google of any facts or circumstances of which you become aware that would make these representations inaccurate in any respect.
\ No newline at end of file
diff --git a/src/licensedcode/data/licenses/google-cla.yml b/src/licensedcode/data/licenses/google-cla.yml
new file mode 100644
index 00000000000..de3f0e48077
--- /dev/null
+++ b/src/licensedcode/data/licenses/google-cla.yml
@@ -0,0 +1,7 @@
+key: google-cla
+short_name: Google CLA
+name: Google Individual Contributor License Agreement
+category: Patent License
+owner: Google
+homepage_url: https://cla.developers.google.com/about/google-individual
+spdx_license_key: LicenseRef-scancode-google-cla
diff --git a/src/licensedcode/data/licenses/google-corporate-cla.LICENSE b/src/licensedcode/data/licenses/google-corporate-cla.LICENSE
new file mode 100644
index 00000000000..f12eb4475f5
--- /dev/null
+++ b/src/licensedcode/data/licenses/google-corporate-cla.LICENSE
@@ -0,0 +1,27 @@
+Google Software Grant and Corporate Contributor License Agreement
+
+In order to clarify the intellectual property license granted with Contributions from any person or entity, Google LLC ("Google") must have a Contributor License Agreement (CLA) on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of Google and its users; it does not change your rights to use your own Contributions for any other purpose.
+
+This version of the Agreement allows an entity (the "Corporation") to submit Contributions to Google, to authorize Contributions submitted by its designated employees to Google, and to grant copyright and patent licenses thereto.
+
+You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Google. Except for the license granted herein to Google and recipients of software distributed by Google, You reserve all right, title, and interest in and to Your Contributions.
+
+ Definitions.
+
+ "You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Google. For legal entities, the entity making a Contribution and all other entities that control, are controlled by, or are under common control with that entity are considered to be a single Contributor. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "Contribution" shall mean the code, documentation or any original work of authorship, including any modifications or additions to an existing work, that is intentionally submitted by You to Google for inclusion in, or documentation of, any of the products owned or managed by Google (the "Work"). For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to Google or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, Google for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by You as "Not a Contribution."
+
+ Grant of Copyright License. Subject to the terms and conditions of this Agreement, You hereby grant to Google and to recipients of software distributed by Google a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Your Contributions and such derivative works.
+
+ Grant of Patent License. Subject to the terms and conditions of this Agreement, You hereby grant to Google and to recipients of software distributed by Google a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by You that are necessarily infringed by Your Contribution(s) alone or by combination of Your Contribution(s) with the Work to which such Contribution(s) was submitted. If any entity institutes patent litigation against You or any other entity (including a cross-claim or counterclaim in a lawsuit) alleging that your Contribution, or the Work to which you have contributed, constitutes direct or contributory patent infringement, then any patent licenses granted to that entity under this Agreement for that Contribution or Work shall terminate as of the date such litigation is filed.
+
+ You represent that You are legally entitled to grant the above license. You represent further that each employee of the Corporation designated by You is authorized to submit Contributions on behalf of the Corporation.
+
+ You represent that each of Your Contributions is Your original creation (see section 7 for submissions on behalf of others).
+
+ You are not expected to provide support for Your Contributions, except to the extent You desire to provide support. You may provide support for free, for a fee, or not at all. Unless required by applicable law or agreed to in writing, You provide Your Contributions on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.
+
+ Should You wish to submit work that is not Your original creation, You may submit it to Google separately from any Contribution, identifying the complete details of its source and of any license or other restriction (including, but not limited to, related patents, trademarks, and license agreements) of which you are personally aware, and conspicuously marking the work as "Submitted on behalf of a third-party: [named here]".
+
+ It is your responsibility to notify Google when any change is required to the list of designated employees authorized to submit Contributions on behalf of the Corporation, or to the Corporation's Point of Contact with Google.
\ No newline at end of file
diff --git a/src/licensedcode/data/licenses/google-corporate-cla.yml b/src/licensedcode/data/licenses/google-corporate-cla.yml
new file mode 100644
index 00000000000..2ab7720d211
--- /dev/null
+++ b/src/licensedcode/data/licenses/google-corporate-cla.yml
@@ -0,0 +1,7 @@
+key: google-corporate-cla
+short_name: Google Corporate CLA
+name: Google Software Grant and Corporate Contributor License Agreement
+category: Patent License
+owner: Google
+homepage_url: https://cla.developers.google.com/about/google-corporate
+spdx_license_key: LicenseRef-scancode-google-corporate-cla
diff --git a/src/licensedcode/data/licenses/here-disclaimer.LICENSE b/src/licensedcode/data/licenses/here-disclaimer.LICENSE
new file mode 100644
index 00000000000..347f527221a
--- /dev/null
+++ b/src/licensedcode/data/licenses/here-disclaimer.LICENSE
@@ -0,0 +1,13 @@
+This content is provided "as-is" and without warranties of any kind, either
+express or implied, including, but not limited to, the implied warranties of
+merchantability, fitness for a particular purpose, satisfactory quality and non-
+infringement. HERE does not warrant that the content is error free and HERE does
+not warrant or make any representations regarding the quality, correctness,
+accuracy, or reliability of the content. You should therefore verify any
+information contained in the content before acting on it. To the furthest extent
+permitted by law, under no circumstances, including without limitation the
+negligence of HERE, shall HERE be liable for any damages, including, without
+limitation, direct, special, indirect, punitive, consequential, exemplary and/
+or incidental damages that result from the use or application of this content,
+even if HERE or an authorized representative has been advised of the possibility
+of such damages.
diff --git a/src/licensedcode/data/licenses/here-disclaimer.yml b/src/licensedcode/data/licenses/here-disclaimer.yml
new file mode 100644
index 00000000000..87c546272d5
--- /dev/null
+++ b/src/licensedcode/data/licenses/here-disclaimer.yml
@@ -0,0 +1,6 @@
+key: here-disclaimer
+short_name: HERE Disclaimer
+name: HERE Disclaimer
+category: Unstated License
+owner: HERE Global B.V.
+spdx_license_key: LicenseRef-scancode-here-disclaimer
diff --git a/src/licensedcode/data/licenses/homebrewed.LICENSE b/src/licensedcode/data/licenses/homebrewed.LICENSE
new file mode 100644
index 00000000000..0bec4634b07
--- /dev/null
+++ b/src/licensedcode/data/licenses/homebrewed.LICENSE
@@ -0,0 +1,32 @@
+Redistribution and use in source and binary forms of the software as well
+as documentation, with or without modification, are permitted provided
+that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+
+* The names of the contributors may not be used to endorse or
+ promote products derived from this software without specific
+ prior written permission.
+
+* If you meet the authors of this software in person and you want to
+ pay them a beer, you're encouraged to do so. Please, do. If you have
+ homebrewed or a craft beer, it might be even better.
+
+THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
+NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
+OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGE.
\ No newline at end of file
diff --git a/src/licensedcode/data/licenses/homebrewed.yml b/src/licensedcode/data/licenses/homebrewed.yml
new file mode 100644
index 00000000000..f3ae38770cb
--- /dev/null
+++ b/src/licensedcode/data/licenses/homebrewed.yml
@@ -0,0 +1,9 @@
+key: homebrewed
+short_name: Homebrewed License
+name: Homebrewed or Craft Beer License
+category: Permissive
+owner: Alexis Métaireau
+homepage_url: https://github.com/spiral-project/ihatemoney/blob/master/LICENSE
+spdx_license_key: LicenseRef-scancode-homebrewed
+text_urls:
+ - https://github.com/laukiet78/Ihatemoney/blob/b89bd1e690847646a71920f1b7152675dd164a87/LICENSE
diff --git a/src/licensedcode/data/licenses/ms-cla.LICENSE b/src/licensedcode/data/licenses/ms-cla.LICENSE
new file mode 100644
index 00000000000..f3acfe3d327
--- /dev/null
+++ b/src/licensedcode/data/licenses/ms-cla.LICENSE
@@ -0,0 +1,39 @@
+Contribution License Agreement
+
+This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”), and conveys certain license rights to Microsoft Corporation and its affiliates (“Microsoft”) for Your contributions to Microsoft open source projects.
+This Agreement is effective as of the latest signature date below.
+
+1. Definitions.
+
+“Code” means the computer software code, whether in human-readable or machine-executable form,
+that is delivered by You to Microsoft under this Agreement.
+
+“Project” means any of the projects owned or managed by Microsoft in which software is offered under a license approved by the Open Source Initiative (OSI) (www.opensource.org) and documentation offered under an OSI or a Creative Commons license (https://creativecommons.org/licenses).
+
+“Submit” is the act of uploading, submitting, transmitting, or distributing code or other content to any Project, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Project for the purpose of discussing and improving that Project, but excluding communication that is conspicuously marked or otherwise designated in writing by You as “Not a Submission.”
+
+“Submission” means the Code and any other copyrightable material Submitted by You, including any associated comments and documentation.
+
+2. Your Submission. You must agree to the terms of this Agreement before making a Submission to any Project. This Agreement covers any and all Submissions that You, now or in the future (except as described in Section 4 below), Submit to any Project.
+
+3. Originality of Work. You represent that each of Your Submissions is entirely Your original work. Should You wish to Submit materials that are not Your original work, You may Submit them separately to the Project if You (a) retain all copyright and license information that was in the materials as You received them, (b) in the description accompanying Your Submission, include the phrase “Submission containing materials of a third party:” followed by the names of the third party and any licenses or other restrictions of which You are aware, and (c) follow any other instructions in the Project’s written guidelines concerning Submissions.
+
+4. Your Employer. References to “employer” in this Agreement include Your employer or anyone else for whom You are acting in making Your Submission, e.g. as a contractor, vendor, or agent. If Your Submission is made in the course of Your work for an employer or Your employer has intellectual property rights in Your Submission by contract or applicable law, You must secure permission from Your employer to make the Submission before signing this Agreement. In that case, the term “You” in this Agreement will refer to You and the employer collectively. If You change employers in the future and desire to Submit additional Submissions for the new employer, then You agree to sign a new Agreement and secure permission from the new employer before Submitting those Submissions.
+
+5. Licenses.
+
+a. Copyright License. You grant Microsoft, and those who receive the Submission directly or indirectly from Microsoft, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license in the Submission to reproduce, prepare derivative works of, publicly display, publicly perform, and distribute the Submission and such derivative works, and to sublicense any or all of the foregoing rights to third parties.
+
+b. Patent License. You grant Microsoft, and those who receive the Submission directly or indirectly from Microsoft, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license under Your patent claims that are necessarily infringed by the Submission or the combination of the Submission with the Project to which it was Submitted to make, have made, use, offer to sell, sell and import or otherwise dispose of the Submission alone or with the Project.
+
+c. Other Rights Reserved. Each party reserves all rights not expressly granted in this Agreement. No additional licenses or rights whatsoever (including, without limitation, any implied licenses) are granted by implication, exhaustion, estoppel or otherwise.
+
+6. Representations and Warranties. You represent that You are legally entitled to grant the above licenses. You represent that each of Your Submissions is entirely Your original work (except as You may have disclosed under Section 3). You represent that You have secured permission from Your employer to make the Submission in cases where Your Submission is made in the course of Your work for Your employer or Your employer has intellectual property rights in Your Submission by contract or applicable law. If You are signing this Agreement on behalf of Your employer, You represent and warrant that You have the necessary authority to bind the listed employer to the obligations contained in this Agreement. You are not expected to provide support for Your Submission, unless You choose to do so. UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING, AND EXCEPT FOR THE WARRANTIES EXPRESSLY STATED IN SECTIONS 3, 4, AND 6, THE SUBMISSION PROVIDED UNDER THIS AGREEMENT IS PROVIDED WITHOUT WARRANTY OF ANY KIND, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY OF NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
+
+7. Notice to Microsoft. You agree to notify Microsoft in writing of any facts or circumstances of which You later become aware that would make Your representations in this Agreement inaccurate in any respect.
+
+8. Information about Submissions. You agree that contributions to Projects and information about contributions may be maintained indefinitely and disclosed publicly, including Your name and other information that You submit with Your Submission.
+
+9. Governing Law/Jurisdiction. This Agreement is governed by the laws of the State of Washington, and the parties consent to exclusive jurisdiction and venue in the federal courts sitting in King County, Washington, unless no federal subject matter jurisdiction exists, in which case the parties consent to exclusive jurisdiction and venue in the Superior Court of King County, Washington. The parties waive all defenses of lack of personal jurisdiction and forum non-conveniens.
+
+10. Entire Agreement/Assignment. This Agreement is the entire agreement between the parties, and supersedes any and all prior agreements, understandings or communications, written or oral, between the parties relating to the subject matter hereof. This Agreement may be assigned by Microsoft.
\ No newline at end of file
diff --git a/src/licensedcode/data/licenses/ms-cla.yml b/src/licensedcode/data/licenses/ms-cla.yml
new file mode 100644
index 00000000000..7ccc5e76e2a
--- /dev/null
+++ b/src/licensedcode/data/licenses/ms-cla.yml
@@ -0,0 +1,12 @@
+key: ms-cla
+short_name: MS Contribution License Agreement (CLA)
+name: Microsoft Contribution License Agreement (CLA)
+category: Patent License
+owner: Microsoft
+homepage_url: https://cla.microsoft.com
+spdx_license_key: LicenseRef-scancode-ms-cla
+text_urls:
+ - https://opensource.microsoft.com/pdf/microsoft-contribution-license-agreement.pdf
+ignorable_urls:
+ - http://www.opensource.org/
+ - https://creativecommons.org/licenses
diff --git a/src/licensedcode/data/licenses/ms-visual-studio-code-2018.LICENSE b/src/licensedcode/data/licenses/ms-visual-studio-code-2018.LICENSE
new file mode 100644
index 00000000000..6695e5513f7
--- /dev/null
+++ b/src/licensedcode/data/licenses/ms-visual-studio-code-2018.LICENSE
@@ -0,0 +1,160 @@
+MICROSOFT SOFTWARE LICENSE TERMS
+MICROSOFT VISUAL STUDIO CODE
+
+These license terms are an agreement between you and Microsoft Corporation (or
+based on where you live, one of its affiliates). They apply to the software
+named above. The terms also apply to any Microsoft services or updates for the
+software, except to the extent those have different terms.
+
+IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE RIGHTS BELOW.
+
+1. INSTALLATION AND USE RIGHTS.
+
+a. General. You may use any number of copies of the software to develop and test
+your applications, including deployment within your internal corporate network.
+
+b. Demo use. The uses permitted above include use of the software in
+demonstrating your applications.
+
+c. Backup copy. You may make one or more backup copies of the software, for
+reinstalling the software.
+
+d. Third Party Programs. The software may include third party components with
+separate legal notices or governed by other agreements, as may be described in
+the ThirdPartyNotices file accompanying the software.
+
+e. Extensions. The software gives you the option to download other Microsoft and
+third party software packages from our extension marketplace or package
+managers. Those packages are under their own licenses, and not this agreement.
+Microsoft does not distribute, license or provide any warranties for any of the
+third party packages.
+
+2. DATA.
+
+a. Data Collection. The software may collect information about you and your use
+of the software, and send that to Microsoft. Microsoft may use this information
+to provide services and improve our products and services. You may opt-out of
+many of these scenarios, but not all, as described in the product documentation.
+There may also be some features in the software that may enable you and
+Microsoft to collect data from users of your applications. If you use these
+features, you must comply with applicable law, including providing appropriate
+notices to users of your applications together with Microsoft’s privacy
+statement. Our privacy statement is located at
+https://go.microsoft.com/fwlink/?LinkID=824704 . You can learn more about data
+collection and use in the help documentation and our privacy statement. Your use
+of the software operates as your consent to these practices.
+
+b. Processing of Personal Data. To the extent Microsoft is a processor or
+subprocessor of personal data in connection with the software, Microsoft makes
+the commitments in the European Union General Data Protection Regulation Terms
+of the Online Services Terms to all customers effective May 25, 2018, at
+http://go.microsoft.com/?linkid=9840733 .
+
+3. UPDATES. The software may periodically check for updates, and download and
+install them for you. You may obtain updates only from Microsoft or authorized
+sources. Microsoft may need to update your system to provide you with updates.
+You agree to receive these automatic updates without any additional notice.
+Updates may not include or support all existing software features, services, or
+peripheral devices.
+
+4. FEEDBACK. If you give feedback about the software to Microsoft, you give to
+Microsoft, without charge, the right to use, share and commercialize your
+feedback in any way and for any purpose. You will not give feedback that is
+subject to a license that requires Microsoft to license its software or
+documentation to third parties because we include your feedback in them. These
+rights survive this agreement.
+
+5. SCOPE OF LICENSE. The software is licensed, not sold. This agreement only
+gives you some rights to use the software. Microsoft reserves all other rights.
+Unless applicable law gives you more rights despite this limitation, you may use
+the software only as expressly permitted in this agreement. In doing so, you
+must comply with any technical limitations in the software that only allow you
+to use it in certain ways. You may not
+
+* work around any technical limitations in the software;
+
+* reverse engineer, decompile or disassemble the software, or otherwise attempt
+to derive the source code for the software, except and to the extent required by
+third party licensing terms governing use of certain open source components that
+may be included in the software;
+
+*remove, minimize, block or modify any notices of Microsoft or its suppliers in
+the software;
+
+* use the software in any way that is against the law;
+
+* share, publish, rent or lease the software, or provide the software as a
+stand-alone offering for others to use.
+
+6. SUPPORT SERVICES. Because this software is “as is,” we may not provide
+support services for it.
+
+7. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates,
+Internet-based services and support services that you use, are the entire
+agreement for the software and support services.
+
+8. EXPORT RESTRICTIONS. You must comply with all domestic and international
+export laws and regulations that apply to the software, which include
+restrictions on destinations, end-users, and end use. For further information on
+export restrictions, see http://www.microsoft.com/exporting .
+
+9. APPLICABLE LAW. If you acquired the software in the United States, Washington
+law applies to interpretation of and claims for breach of this agreement, and
+the laws of the state where you live apply to all other claims. If you acquired
+the software in any other country, its laws apply.
+
+10. CONSUMER RIGHTS; REGIONAL VARIATIONS. This agreement describes certain legal
+rights. You may have other rights, including consumer rights, under the laws of
+your state or country. Separate and apart from your relationship with Microsoft,
+you may also have rights with respect to the party from which you acquired the
+software. This agreement does not change those other rights if the laws of your
+state or country do not permit it to do so. For example, if you acquired the
+software in one of the below regions, or mandatory country law applies, then the
+following provisions apply to you:
+
+a. Australia. You have statutory guarantees under the Australian Consumer Law
+and nothing in this agreement is intended to affect those rights.
+
+b. Canada. If you acquired this software in Canada, you may stop receiving
+updates by turning off the automatic update feature, disconnecting your device
+from the Internet (if and when you re-connect to the Internet, however, the
+software will resume checking for and installing updates), or uninstalling the
+software. The product documentation, if any, may also specify how to turn off
+updates for your specific device or software.
+
+c. Germany and Austria.
+
+ i. Warranty. The properly licensed software will perform substantially as
+ described in any Microsoft materials that accompany the software. However,
+ Microsoft gives no contractual guarantee in relation to the licensed software.
+
+ ii. Limitation of Liability. In case of intentional conduct, gross negligence,
+ claims based on the Product Liability Act, as well as, in case of death or
+ personal or physical injury, Microsoft is liable according to the statutory
+ law.
+
+Subject to the foregoing clause (ii), Microsoft will only be liable for slight
+negligence if Microsoft is in breach of such material contractual obligations,
+the fulfillment of which facilitate the due performance of this agreement, the
+breach of which would endanger the purpose of this agreement and the compliance
+with which a party may constantly trust in (so-called "cardinal obligations").
+In other cases of slight negligence, Microsoft will not be liable for slight
+negligence.
+
+11. DISCLAIMER OF WARRANTY. The software is licensed “as-is.” You bear the risk
+of using it. Microsoft gives no express warranties, guarantees or conditions. To
+the extent permitted under your local laws, Microsoft excludes the implied
+warranties of merchantability, fitness for a particular purpose and non-
+infringement.
+
+12. LIMITATION ON AND EXCLUSION OF DAMAGES. You can recover from Microsoft and
+its suppliers only direct damages up to U.S. $5.00. You cannot recover any other
+damages, including consequential, lost profits, special, indirect or incidental
+damages. This limitation applies to (a) anything related to the software,
+services, content (including code) on third party Internet sites, or third party
+applications; and (b) claims for breach of contract, breach of warranty,
+guarantee or condition, strict liability, negligence, or other tort to the
+extent permitted by applicable law. It also applies even if Microsoft knew or
+should have known about the possibility of the damages. The above limitation or
+exclusion may not apply to you because your state or country may not allow the
+exclusion or limitation of incidental, consequential or other damages.
\ No newline at end of file
diff --git a/src/licensedcode/data/licenses/ms-visual-studio-code-2018.yml b/src/licensedcode/data/licenses/ms-visual-studio-code-2018.yml
new file mode 100644
index 00000000000..f619c78054a
--- /dev/null
+++ b/src/licensedcode/data/licenses/ms-visual-studio-code-2018.yml
@@ -0,0 +1,11 @@
+key: ms-visual-studio-code-2018
+short_name: MS Visual Studio Code License 2018
+name: Microsoft Visual Studio Code License 2018
+category: Proprietary Free
+owner: Microsoft
+homepage_url: https://code.visualstudio.com/license
+spdx_license_key: LicenseRef-scancode-ms-visual-studio-code-2018
+ignorable_urls:
+ - http://go.microsoft.com/?linkid=9840733
+ - http://www.microsoft.com/exporting
+ - https://go.microsoft.com/fwlink/?LinkID=824704
diff --git a/src/licensedcode/data/licenses/ms-visual-studio-code-2022.LICENSE b/src/licensedcode/data/licenses/ms-visual-studio-code-2022.LICENSE
new file mode 100644
index 00000000000..1d225760715
--- /dev/null
+++ b/src/licensedcode/data/licenses/ms-visual-studio-code-2022.LICENSE
@@ -0,0 +1,162 @@
+MICROSOFT SOFTWARE LICENSE TERMS
+MICROSOFT VISUAL STUDIO CODE
+
+These license terms are an agreement between you and Microsoft Corporation (or
+based on where you live, one of its affiliates). They apply to the software
+named above. The terms also apply to any Microsoft services or updates for the
+software, except to the extent those have different terms.
+
+IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE RIGHTS BELOW.
+
+1. INSTALLATION AND USE RIGHTS.
+
+a. General. You may use any number of copies of the software to develop and test
+your applications, including deployment within your internal corporate network.
+
+b. Demo use. The uses permitted above include use of the software in
+demonstrating your applications.
+
+c. Third Party Components. The software may include third party components with
+separate legal notices or governed by other agreements, as may be described in
+the ThirdPartyNotices file accompanying the software.
+
+d. Extensions. The software gives you the option to download other Microsoft and
+third party software packages from our extension marketplace or package
+managers. Those packages are under their own licenses, and not this agreement.
+Microsoft does not distribute, license or provide any warranties for any of the
+third party packages. By accessing or using our extension marketplace, you agree
+to the extension marketplace terms located at https://aka.ms/vsmarketplace-ToU .
+
+2. DATA.
+
+a. Data Collection. The software may collect information about you and your use
+of the software, and send that to Microsoft. Microsoft may use this information
+to provide services and improve our products and services. You may opt-out of
+many of these scenarios, but not all, as described in the product documentation
+located at https://code.visualstudio.com/docs/supporting/faq#_how-to-disable-
+telemetry-reporting . There may also be some features in the software that may
+enable you and Microsoft to collect data from users of your applications. If you
+use these features, you must comply with applicable law, including providing
+appropriate notices to users of your applications together with Microsoft’s
+privacy statement. Our privacy statement is located at
+https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data
+collection and use in the help documentation and our privacy statement. Your use
+of the software operates as your consent to these practices.
+
+b. Processing of Personal Data. To the extent Microsoft is a processor or
+subprocessor of personal data in connection with the software, Microsoft makes
+the commitments in the European Union General Data Protection Regulation Terms
+of the Online Services Terms to all customers effective May 25, 2018, at
+https://docs.microsoft.com/legal/gdpr .
+
+3. UPDATES. The software may periodically check for updates and download and
+install them for you. You may obtain updates only from Microsoft or authorized
+sources. Microsoft may need to update your system to provide you with updates.
+You agree to receive these automatic updates without any additional notice.
+Updates may not include or support all existing software features, services, or
+peripheral devices. If you do not want automatic updates, you may turn them off
+by following the instructions in the documentation at
+https://go.microsoft.com/fwlink/?LinkID=616397 .
+
+4. FEEDBACK. If you give feedback about the software to Microsoft, you give to
+Microsoft, without charge, the right to use, share and commercialize your
+feedback in any way and for any purpose. You will not give feedback that is
+subject to a license that requires Microsoft to license its software or
+documentation to third parties because we include your feedback in them. These
+rights survive this agreement.
+
+5. SCOPE OF LICENSE. This license applies to the Visual Studio Code product.
+Source code for Visual Studio Code is available at
+https://github.com/Microsoft/vscode under the MIT license agreement. The
+software is licensed, not sold. This agreement only gives you some rights to use
+the software. Microsoft reserves all other rights. Unless applicable law gives
+you more rights despite this limitation, you may use the software only as
+expressly permitted in this agreement. In doing so, you must comply with any
+technical limitations in the software that only allow you to use it in certain
+ways. You may not
+
+* reverse engineer, decompile or disassemble the software, or otherwise attempt
+to derive the source code for the software except and solely to the extent
+required by third party licensing terms governing use of certain open source
+components that may be included in the software;
+
+*remove, minimize, block or modify any notices of Microsoft or its suppliers in
+the software;
+
+* use the software in any way that is against the law;
+
+* share, publish, rent or lease the software, or provide the software as a
+stand-alone offering for others to use.
+
+6. SUPPORT SERVICES. Because this software is “as is,” we may not provide
+support services for it.
+
+7. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates,
+Internet-based services and support services that you use, are the entire
+agreement for the software and support services.
+
+8. EXPORT RESTRICTIONS. You must comply with all domestic and international
+export laws and regulations that apply to the software, which include
+restrictions on destinations, end-users, and end use. For further information on
+export restrictions, see https://www.microsoft.com/exporting .
+
+9. APPLICABLE LAW. If you acquired the software in the United States, Washington
+law applies to interpretation of and claims for breach of this agreement, and
+the laws of the state where you live apply to all other claims. If you acquired
+the software in any other country, its laws apply.
+
+10. CONSUMER RIGHTS; REGIONAL VARIATIONS. This agreement describes certain legal
+rights. You may have other rights, including consumer rights, under the laws of
+your state or country. Separate and apart from your relationship with Microsoft,
+you may also have rights with respect to the party from which you acquired the
+software. This agreement does not change those other rights if the laws of your
+state or country do not permit it to do so. For example, if you acquired the
+software in one of the below regions, or mandatory country law applies, then the
+following provisions apply to you:
+
+a. Australia. You have statutory guarantees under the Australian Consumer Law
+and nothing in this agreement is intended to affect those rights.
+
+b. Canada. If you acquired this software in Canada, you may stop receiving
+updates by turning off the automatic update feature, disconnecting your device
+from the Internet (if and when you re-connect to the Internet, however, the
+software will resume checking for and installing updates), or uninstalling the
+software. The product documentation, if any, may also specify how to turn off
+updates for your specific device or software.
+
+c. Germany and Austria.
+
+ i. Warranty. The properly licensed software will perform substantially as
+ described in any Microsoft materials that accompany the software. However,
+ Microsoft gives no contractual guarantee in relation to the licensed software.
+
+ ii. Limitation of Liability. In case of intentional conduct, gross negligence,
+ claims based on the Product Liability Act, as well as, in case of death or
+ personal or physical injury, Microsoft is liable according to the statutory
+ law.
+
+Subject to the foregoing clause (ii), Microsoft will only be liable for slight
+negligence if Microsoft is in breach of such material contractual obligations,
+the fulfillment of which facilitate the due performance of this agreement, the
+breach of which would endanger the purpose of this agreement and the compliance
+with which a party may constantly trust in (so-called "cardinal obligations").
+In other cases of slight negligence, Microsoft will not be liable for slight
+negligence.
+
+11. DISCLAIMER OF WARRANTY. The software is licensed “as-is.” You bear the risk
+of using it. Microsoft gives no express warranties, guarantees or conditions. To
+the extent permitted under your local laws, Microsoft excludes the implied
+warranties of merchantability, fitness for a particular purpose and non-
+infringement.
+
+12. LIMITATION ON AND EXCLUSION OF DAMAGES. You can recover from Microsoft and
+its suppliers only direct damages up to U.S. $5.00. You cannot recover any other
+damages, including consequential, lost profits, special, indirect or incidental
+damages. This limitation applies to (a) anything related to the software,
+services, content (including code) on third party Internet sites, or third party
+applications; and (b) claims for breach of contract, breach of warranty,
+guarantee or condition, strict liability, negligence, or other tort to the
+extent permitted by applicable law. It also applies even if Microsoft knew or
+should have known about the possibility of the damages. The above limitation or
+exclusion may not apply to you because your state or country may not allow the
+exclusion or limitation of incidental, consequential or other damages.
\ No newline at end of file
diff --git a/src/licensedcode/data/licenses/ms-visual-studio-code-2022.yml b/src/licensedcode/data/licenses/ms-visual-studio-code-2022.yml
new file mode 100644
index 00000000000..bf6f0387d4c
--- /dev/null
+++ b/src/licensedcode/data/licenses/ms-visual-studio-code-2022.yml
@@ -0,0 +1,15 @@
+key: ms-visual-studio-code-2022
+short_name: MS Visual Studio Code License 2022
+name: Microsoft Visual Studio Code License 2022
+category: Proprietary Free
+owner: Microsoft
+homepage_url: https://code.visualstudio.com/license
+spdx_license_key: LicenseRef-scancode-ms-visual-studio-code-2022
+ignorable_urls:
+ - https://aka.ms/vsmarketplace-ToU
+ - https://code.visualstudio.com/docs/supporting/faq#_how-to-disable
+ - https://docs.microsoft.com/legal/gdpr
+ - https://github.com/Microsoft/vscode
+ - https://go.microsoft.com/fwlink/?LinkID=616397
+ - https://go.microsoft.com/fwlink/?LinkID=824704
+ - https://www.microsoft.com/exporting
diff --git a/src/licensedcode/data/licenses/ms-visual-studio-code.LICENSE b/src/licensedcode/data/licenses/ms-visual-studio-code.LICENSE
index 93aa5babd9f..336ee512990 100644
--- a/src/licensedcode/data/licenses/ms-visual-studio-code.LICENSE
+++ b/src/licensedcode/data/licenses/ms-visual-studio-code.LICENSE
@@ -1,59 +1,141 @@
MICROSOFT SOFTWARE LICENSE TERMS
MICROSOFT VISUAL STUDIO CODE
-These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. They apply to the software named above. The terms also apply to any Microsoft services or updates for the software, except to the extent those have additional terms.
-IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE RIGHTS BELOW.
-
-INSTALLATION AND USE RIGHTS.
-
-General. You may use any number of copies of the software to develop and test your applications, including deployment within your internal corporate network.
-
-Demo use. The uses permitted above include use of the software in demonstrating your applications.
-
-Backup copy. You may make one or more backup copies of the software, for reinstalling the software.
-
-Third Party Programs.
-
-The software may include third party components with separate legal notices or governed by other agreements, as described in the ThirdPartyNotices file accompanying the software. Even if such components are governed by other agreements, the disclaimers and the limitations on and exclusions of damages below also apply.
-
-The software contains third party components licensed under open source licenses with source code availability obligations. Copies of those licenses are included in the ThirdPartyNotices file or accompanying credits file. You may obtain the complete corresponding source code from us if and as required under the relevant open source licenses by sending a money order or check for $5.00 to: Source Code Compliance Team, Microsoft Corporation, 1 Microsoft Way, Redmond, WA 98052 USA. Please write "third party source code for Visual Studio Code" in the memo line of your payment. We may also make the source available at http://thirdpartysource.microsoft.com/.
-
-Extensions.The software gives you the option to download other Microsoft and third party software packages from our extension marketplace or package managers. Those packages are under their own licenses, and not this agreement. Microsoft does not distribute, license or provide any warranties for any of the third party packages.
-
-DATA. The software may collect information about you and your use of the software, and send that to Microsoft. Microsoft may use this information to provide services and improve our products and services. There may also be some features in the software that enable you to collect data from users of your applications. If you use these features to enable data collection in your applications, you must comply with applicable law, including providing appropriate notices to users of your applications.
-
-You can learn more about data collection and use in the help documentation and the privacy statement at http://go.microsoft.com/fwlink/?LinkID=528096&clcid=0x409. Your use of the software operates as your consent to these practices.
+These license terms are an agreement between Microsoft Corporation (or based on
+where you live, one of its affiliates) and you. They apply to the software named
+above. The terms also apply to any Microsoft services or updates for the
+software, except to the extent those have additional terms.
-UPDATES. The software may install automatic updates. By using the software, you agree to receive automatic updates without any additional notice, and permit Microsoft to download and install them for you. If you do not want automatic updates, you may turn them off by following the instructions in the documentation at http://go.microsoft.com/fwlink/?LinkID=616397.
-
-FEEDBACK. If you give feedback about the software to Microsoft, you give to Microsoft, without charge, the right to use, share and commercialize your feedback in any way and for any purpose. You will not give feedback that is subject to a license that requires Microsoft to license its software or documentation to third parties because we include your feedback in them. These rights survive this agreement.
+IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE RIGHTS BELOW.
-SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. You may not
+1. INSTALLATION AND USE RIGHTS.
+
+a. General. You may use any number of copies of the software to develop and test
+your applications, including deployment within your internal corporate network.
+
+b. Demo use. The uses permitted above include use of the software in demonstrating
+your applications.
+
+c. Backup copy. You may make one or more backup copies of the software, for
+reinstalling the software.
+
+d. Third Party Programs. The software may include third party components with
+separate legal notices or governed by other agreements, as described in the
+ThirdPartyNotices file accompanying the software. Even if such components are
+governed by other agreements, the disclaimers and the limitations on and
+exclusions of damages below also apply.
+
+The software contains third party components licensed under open source licenses
+with source code availability obligations. Copies of those licenses are included
+in the ThirdPartyNotices file or accompanying credits file. You may obtain the
+complete corresponding source code from us if and as required under the relevant
+open source licenses by sending a money order or check for $5.00 to: Source Code
+Compliance Team, Microsoft Corporation, 1 Microsoft Way, Redmond, WA 98052 USA.
+Please write "third party source code for Visual Studio Code" in the memo line
+of your payment. We may also make the source available at
+http://thirdpartysource.microsoft.com/.
+
+e. Extensions.The software gives you the option to download other Microsoft and
+third party software packages from our extension marketplace or package
+managers. Those packages are under their own licenses, and not this agreement.
+Microsoft does not distribute, license or provide any warranties for any of the
+third party packages.
+
+2. DATA. The software may collect information about you and your use of the
+software, and send that to Microsoft. Microsoft may use this information to
+provide services and improve our products and services. There may also be some
+features in the software that enable you to collect data from users of your
+applications. If you use these features to enable data collection in your
+applications, you must comply with applicable law, including providing
+appropriate notices to users of your applications.
+
+You can learn more about data collection and use in the help documentation and
+the privacy statement at
+http://go.microsoft.com/fwlink/?LinkID=528096&clcid=0x409. Your use of the
+software operates as your consent to these practices.
+
+3. UPDATES. The software may install automatic updates. By using the software,
+you agree to receive automatic updates without any additional notice, and permit
+Microsoft to download and install them for you. If you do not want automatic
+updates, you may turn them off by following the instructions in the
+documentation at http://go.microsoft.com/fwlink/?LinkID=616397.
+
+4. FEEDBACK. If you give feedback about the software to Microsoft, you give to
+Microsoft, without charge, the right to use, share and commercialize your
+feedback in any way and for any purpose. You will not give feedback that is
+subject to a license that requires Microsoft to license its software or
+documentation to third parties because we include your feedback in them. These
+rights survive this agreement.
+
+5. SCOPE OF LICENSE. The software is licensed, not sold. This agreement only
+gives you some rights to use the software. Microsoft reserves all other rights.
+Unless applicable law gives you more rights despite this limitation, you may use
+the software only as expressly permitted in this agreement. In doing so, you
+must comply with any technical limitations in the software that only allow you
+to use it in certain ways. You may not
* work around any technical limitations in the software;
-* reverse engineer, decompile or disassemble the software, or otherwise attempt to derive the source code for the software except, and solely to the extent: (i) permitted by applicable law, despite this limitation; or (ii) required to debug changes to any libraries licensed under the GNU Lesser General Public License which are included with and linked to by the software;
+* reverse engineer, decompile or disassemble the software, or otherwise attempt
+to derive the source code for the software except, and solely to the extent: (i)
+permitted by applicable law, despite this limitation; or (ii) required to debug
+changes to any libraries licensed under the GNU Lesser General Public License
+which are included with and linked to by the software;
-* remove, minimize, block or modify any notices of Microsoft or its suppliers in the software;
+* remove, minimize, block or modify any notices of Microsoft or its suppliers in
+the software;
* use the software in any way that is against the law; or
-* share, publish, or lend the software, or provide it as a hosted solution for others to use, or transfer the software or this agreement to any third party.
-
-SUPPORT SERVICES. Because this software is "as is," we may not provide support services for it.
-
-ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services.
-
-EXPORT RESTRICTIONS. Microsoft software, online services, professional services and related technology are subject to U.S. export jurisdiction. You must comply with all applicable international and national laws including the U.S. Export Administration Regulations, the International Traffic in Arms Regulations, Office of Foreign Assets Control sanction programs, and end-user, end use and destination restrictions by the U.S. and other governments related to Microsoft products, services and technologies. For additional information, see http://www.microsoft.com/exporting.
-
-APPLICABLE LAW. If you acquired the software in the United States, Washington law applies to interpretation of and claims for breach of this agreement, and the laws of the state where you live apply to all other claims. If you acquired the software in any other country, its laws apply.
-
-LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws of your state or country. This agreement does not change your rights under the laws of your state or country if the laws of your state or country do not permit it to do so. Without limiting the foregoing, for Australia, YOU HAVE STATUTORY GUARANTEES UNDER THE AUSTRALIAN CONSUMER LAW AND NOTHING IN THESE TERMS IS INTENDED TO AFFECT THOSE RIGHTS.
-
-DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED "AS-IS."" YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
-
-LIMITATION ON AND EXCLUSION OF DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES.
-
-This limitation applies to (a) anything related to the software, services, content (including code) on third party Internet sites, or third party applications; and (b) claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law.
-
-It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your state or country may not allow the exclusion or limitation of incidental, consequential or other damages.
\ No newline at end of file
+* share, publish, or lend the software, or provide it as a hosted solution for
+others to use, or transfer the software or this agreement to any third party.
+
+6. SUPPORT SERVICES. Because this software is "as is," we may not provide
+support services for it.
+
+7. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates,
+Internet-based services and support services that you use, are the entire
+agreement for the software and support services.
+
+8. EXPORT RESTRICTIONS. Microsoft software, online services, professional
+services and related technology are subject to U.S. export jurisdiction. You
+must comply with all applicable international and national laws including the
+U.S. Export Administration Regulations, the International Traffic in Arms
+Regulations, Office of Foreign Assets Control sanction programs, and end-user,
+end use and destination restrictions by the U.S. and other governments related
+to Microsoft products, services and technologies. For additional information,
+see http://www.microsoft.com/exporting.
+
+9. APPLICABLE LAW. If you acquired the software in the United States, Washington
+law applies to interpretation of and claims for breach of this agreement, and
+the laws of the state where you live apply to all other claims. If you acquired
+the software in any other country, its laws apply.
+
+10. LEGAL EFFECT. This agreement describes certain legal rights. You may have
+other rights under the laws of your state or country. This agreement does not
+change your rights under the laws of your state or country if the laws of your
+state or country do not permit it to do so. Without limiting the foregoing, for
+Australia, YOU HAVE STATUTORY GUARANTEES UNDER THE AUSTRALIAN CONSUMER LAW AND
+NOTHING IN THESE TERMS IS INTENDED TO AFFECT THOSE RIGHTS.
+
+11. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED "AS-IS."" YOU BEAR THE RISK
+OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. TO
+THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED
+WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-
+INFRINGEMENT.
+
+12. LIMITATION ON AND EXCLUSION OF DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND
+ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER
+DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL
+DAMAGES.
+
+This limitation applies to (a) anything related to the software, services,
+content (including code) on third party Internet sites, or third party
+applications; and (b) claims for breach of contract, breach of warranty,
+guarantee or condition, strict liability, negligence, or other tort to the
+extent permitted by applicable law.
+
+It also applies even if Microsoft knew or should have known about the
+possibility of the damages. The above limitation or exclusion may not apply to
+you because your state or country may not allow the exclusion or limitation of
+incidental, consequential or other damages.
diff --git a/src/licensedcode/data/licenses/no-license.yml b/src/licensedcode/data/licenses/no-license.yml
new file mode 100644
index 00000000000..2a7ee9f24c6
--- /dev/null
+++ b/src/licensedcode/data/licenses/no-license.yml
@@ -0,0 +1,7 @@
+key: no-license
+short_name: No License Stated
+name: No License Stated
+category: Unstated License
+owner: Unspecified
+spdx_license_key: LicenseRef-scancode-no-license
+notes: Scanning and analysis of a software object did not find any license information at all.
\ No newline at end of file
diff --git a/src/licensedcode/data/licenses/pybench.LICENSE b/src/licensedcode/data/licenses/pybench.LICENSE
new file mode 100644
index 00000000000..feea9e14ee0
--- /dev/null
+++ b/src/licensedcode/data/licenses/pybench.LICENSE
@@ -0,0 +1,22 @@
+pybench License
+---------------
+This copyright notice and license applies to all files in the pybench
+directory of the pybench distribution.
+Copyright (c), 1997-2006, Marc-Andre Lemburg (mal@lemburg.com)
+Copyright (c), 2000-2006, eGenix.com Software GmbH (info@egenix.com)
+ All Rights Reserved.
+
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee or royalty is hereby
+granted, provided that the above copyright notice appear in all copies
+and that both that copyright notice and this permission notice appear
+in supporting documentation or portions thereof, including
+modifications, that you make.
+
+THE AUTHOR MARC-ANDRE LEMBURG DISCLAIMS ALL WARRANTIES WITH REGARD TO
+THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL,
+INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
+FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+WITH THE USE OR PERFORMANCE OF THIS SOFTWARE !
\ No newline at end of file
diff --git a/src/licensedcode/data/licenses/pybench.yml b/src/licensedcode/data/licenses/pybench.yml
new file mode 100644
index 00000000000..c361718bcba
--- /dev/null
+++ b/src/licensedcode/data/licenses/pybench.yml
@@ -0,0 +1,16 @@
+key: pybench
+short_name: pybench License
+name: pybench License
+category: Permissive
+owner: eGenix
+homepage_url: https://android.googlesource.com/platform/external/python/cpython2/+/965ad62600f69230e546a846414be6de9d8471df/Tools/pybench/LICENSE
+spdx_license_key: LicenseRef-scancode-pybench
+ignorable_copyrights:
+ - Copyright (c), 1997-2006, Marc-Andre Lemburg (mal@lemburg.com)
+ - Copyright (c), 2000-2006, eGenix.com Software GmbH (info@egenix.com)
+ignorable_holders:
+ - Marc-Andre Lemburg
+ - eGenix.com Software GmbH
+ignorable_emails:
+ - info@egenix.com
+ - mal@lemburg.com
diff --git a/src/licensedcode/data/licenses/schemereport.yml b/src/licensedcode/data/licenses/schemereport.yml
index 513403a6d5b..19f5f034373 100644
--- a/src/licensedcode/data/licenses/schemereport.yml
+++ b/src/licensedcode/data/licenses/schemereport.yml
@@ -2,5 +2,5 @@ key: schemereport
short_name: Scheme Language Report License
name: Scheme Language Report License
category: Permissive
-owner: Unspecified
+owner: ChezScheme
spdx_license_key: SchemeReport
diff --git a/src/licensedcode/data/licenses/scilab-fr.yml b/src/licensedcode/data/licenses/scilab-fr.yml
index c72906c6c01..94c944b05c3 100644
--- a/src/licensedcode/data/licenses/scilab-fr.yml
+++ b/src/licensedcode/data/licenses/scilab-fr.yml
@@ -3,7 +3,7 @@ language: fr
short_name: SCILAB FR
name: Licence SCILAB
category: Proprietary Free
-owner: INRIA/ENPC
+owner: Scilab Consortium (Digiteo)
homepage_url: http://web.archive.org/web/20051212214843/http://www.scilab.org/legal/license.html
spdx_license_key: LicenseRef-scancode-scilab-fr
text_urls:
diff --git a/src/licensedcode/data/licenses/scola-fr.yml b/src/licensedcode/data/licenses/scola-fr.yml
index d6455a8550a..d7e540127fc 100644
--- a/src/licensedcode/data/licenses/scola-fr.yml
+++ b/src/licensedcode/data/licenses/scola-fr.yml
@@ -2,8 +2,8 @@ key: scola-fr
language: fr
short_name: Statistics Canada Open Licence
name: Entente de licence ouverte de Statistique Canada
-category: Unstated License
-owner: Statistique Canada
+category: Proprietary Free
+owner: Minister for Statistics Canada
homepage_url: https://www.statcan.gc.ca/fra/reference/licence
spdx_license_key: LicenseRef-scancode-scola-fr
ignorable_emails:
diff --git a/src/licensedcode/data/licenses/square-cla.LICENSE b/src/licensedcode/data/licenses/square-cla.LICENSE
new file mode 100644
index 00000000000..4eb11cabfd5
--- /dev/null
+++ b/src/licensedcode/data/licenses/square-cla.LICENSE
@@ -0,0 +1,47 @@
+Square Inc. Individual Contributor License Agreement
+
+An Individual Contributor License Agreement (an "Agreement") is required to establish and define the intellectual property license granted in connection with Contributions (defined below) from any person or entity to Square, Inc. (“Square”) for inclusion in any of the products owned or managed by Square (the “Work”). This Agreement is for your protection as well as Square’s. This Agreement does not alter your rights to use your own Contributions for other purposes. By executing this Agreement, you accept and agree to the following terms and conditions for any past, current, or future Contributions submitted to Square. Except for the license granted herein to Square and recipients of software distributed by Square, you reserve all right, title, and interest in and to the Contributions you create.
+
+1. Definitions.
+
+“Control:” shall mean (i) the power, direct or indirect, to cause the direction or management of an entity, whether by contract or otherwise; or (ii) ownership of fifty percent (50%) or more of the outstanding shares; or (iii) beneficial ownership of an entity.
+
+"Contribution:" shall mean any original work of authorship, including any modifications or additions to an existing work, that is intentionally Transmitted by You to Square for inclusion in the Work.
+
+"Transmitted:" shall mean any form of electronic, verbal, or written communication sent to Square or its representatives for the purpose of discussing and improving the Work, but excluding communications that are conspicuously marked or otherwise designated in writing by You as "Not a Contribution."
+
+"You:" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Square. For legal entities, the entity making a Contribution and all other entities that control, are controlled by, or are under common control with that entity are considered to be a single contributor.
+
+2. Grant of Copyright License.
+
+Subject to the terms and conditions of this Agreement, You hereby grant to Square and to recipients of software distributed by Square a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Your Contributions and such derivative works.
+
+3. Grant of Patent License.
+
+Subject to the terms and conditions of this Agreement, You hereby grant to Square and to recipients of software distributed by Square a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by You that are necessarily infringed by Your Contributions alone or by combination of Your Contributions with the Work to which such Contributions was Transmitted. If any entity institutes patent litigation against You or any other entity (including a cross-claim or counterclaim in a lawsuit) alleging that your Contribution, or the Work to which you have contributed, constitutes direct or contributory patent infringement, then any patent licenses granted to that entity under this Agreement for that Contribution or Work shall terminate as of the date such litigation is filed.
+
+4. Representations and Warranties.
+
+You represent and warrant that:
+ * you are legally entitled to grant the above licenses;
+ * if your employer has rights to intellectual property that you create that includes your Contribution, that you have received permission to make Contributions on behalf of an employer and that your employer has waived such rights for your Contributions to Square, or that your employer has executed a separate Agreement with Square;
+ * that each of Your Contributions is Your original creation; and
+ * that Your Contributions include complete details of any third-party license or other restriction (including, but not limited to, related patents and trademarks) of which you are personally aware and which are associated with any part of Your Contributions.
+
+ 5. Submitting the Work of Others.
+
+Should You wish to submit work that is not Your original creation, You may submit it to Square separately from any Contribution, identifying the complete details of its source and of any license or other restriction (including, but not limited to, related patents, trademarks, and license agreements) of which you are personally aware, and conspicuously marking the work as "Transmitted on behalf of a third-party: [Insert name of third-party here]."
+
+6. Ongoing Support and Maintenance of Contributions.
+
+You are not expected to provide support for Your Contributions, except to the extent You desire to provide support. You may provide support for free, for a fee, or not at all.
+
+YOU PROVIDE YOUR CONTRIBUTIONS ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. UNLESS OTHERWISE REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING.
+
+8. Continuing Disclosures.
+
+You agree to notify Square of any facts or circumstances of which you become aware that would make these representations inaccurate in any respect.
+
+Sign Electronically
+
+By completing the form below and clicking the Submit button you agree to and accept all the terms of this Agreement.
\ No newline at end of file
diff --git a/src/licensedcode/data/licenses/square-cla.yml b/src/licensedcode/data/licenses/square-cla.yml
new file mode 100644
index 00000000000..c633cddacd6
--- /dev/null
+++ b/src/licensedcode/data/licenses/square-cla.yml
@@ -0,0 +1,7 @@
+key: square-cla
+short_name: Square CLA
+name: Square Inc. Individual Contributor License Agreement
+category: Patent License
+owner: Square, Inc.
+homepage_url: https://docs.google.com/forms/d/e/1FAIpQLSeRVQ35-gq2vdSxD1kdh7CJwRdjmUA0EZ9gRXaWYoUeKPZEQQ/viewform?formkey=dDViT2xzUHAwRkI3X3k5Z0lQM091OGc6MQ&ndplr=1
+spdx_license_key: LicenseRef-scancode-square-cla
diff --git a/src/licensedcode/data/licenses/sustainable-use-1.0.LICENSE b/src/licensedcode/data/licenses/sustainable-use-1.0.LICENSE
new file mode 100644
index 00000000000..113cf001d41
--- /dev/null
+++ b/src/licensedcode/data/licenses/sustainable-use-1.0.LICENSE
@@ -0,0 +1,54 @@
+# Sustainable Use License
+
+Version 1.0
+
+## Acceptance
+
+By using the software, you agree to all of the terms and conditions below.
+
+## Copyright License
+
+The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations below.
+
+## Limitations
+
+You may use or modify the software only for your own internal business purposes or for non-commercial or personal use.
+You may distribute the software or provide it to others only if you do so free of charge for non-commercial purposes.
+You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law.
+
+## Patents
+
+The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
+
+## Notices
+
+You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms.
+If you modify the software, you must include in any modified copies of the software a prominent notice stating that you have modified the software.
+
+## No Other Rights
+
+These terms do not imply any licenses other than those expressly granted in these terms.
+
+## Termination
+
+If you use the software in violation of these terms, such use is not licensed, and your license will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your license will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your license to terminate automatically and permanently.
+
+## No Liability
+
+As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.
+
+## Definitions
+
+The “licensor” is the entity offering these terms.
+
+The “software” is the software the licensor makes available under these terms, including any portion of it.
+
+“You” refers to the individual or entity agreeing to these terms.
+
+“Your company” is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. Control means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
+
+“Your license” is the license granted to you for the software under these terms.
+
+“Use” means anything you do with the software requiring your license.
+
+“Trademark” means trademarks, service marks, and similar rights.
\ No newline at end of file
diff --git a/src/licensedcode/data/licenses/sustainable-use-1.0.yml b/src/licensedcode/data/licenses/sustainable-use-1.0.yml
new file mode 100644
index 00000000000..322dc7ab764
--- /dev/null
+++ b/src/licensedcode/data/licenses/sustainable-use-1.0.yml
@@ -0,0 +1,10 @@
+key: sustainable-use-1.0
+short_name: Sustainable Use 1.0
+name: Sustainable Use License 1.0
+category: Free Restricted
+owner: Fair-code
+homepage_url: https://github.com/n8n-io/n8n/blob/master/LICENSE.md
+spdx_license_key: LicenseRef-scancode-sustainable-use-1.0
+faq_url: https://faircode.io/#faq
+other_urls:
+ - https://blog.n8n.io/announcing-new-sustainable-use-license/
diff --git a/src/licensedcode/data/licenses/ttcl.yml b/src/licensedcode/data/licenses/ttcl.yml
index 0d87c519a43..6744bfa67c1 100644
--- a/src/licensedcode/data/licenses/ttcl.yml
+++ b/src/licensedcode/data/licenses/ttcl.yml
@@ -1,5 +1,5 @@
key: ttcl
-short_name: TCL
+short_name: Talis Community License
name: The Talis Community License
category: Permissive
owner: Open Knowledge Foundation
@@ -7,5 +7,6 @@ homepage_url: https://opendefinition.org/licenses/tcl/
spdx_license_key: LicenseRef-scancode-ttcl
text_urls:
- https://web.archive.org/web/20130923083859/http://tdnarchive.capita-libraries.co.uk/tcl
+faq_url: https://opendefinition.org/licenses/tcl/
ignorable_urls:
- http://tdnarchive.capita-libraries.co.uk/tcl
diff --git a/src/licensedcode/data/rules/agpl-3.0-plus_290.RULE b/src/licensedcode/data/rules/agpl-3.0-plus_290.RULE
new file mode 100644
index 00000000000..fa7c03cafe6
--- /dev/null
+++ b/src/licensedcode/data/rules/agpl-3.0-plus_290.RULE
@@ -0,0 +1 @@
+License: GNU AFFERO GENERAL PUBLIC LICENSE
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/agpl-3.0-plus_290.yml b/src/licensedcode/data/rules/agpl-3.0-plus_290.yml
new file mode 100644
index 00000000000..4b19d92b9c7
--- /dev/null
+++ b/src/licensedcode/data/rules/agpl-3.0-plus_290.yml
@@ -0,0 +1,3 @@
+license_expression: agpl-3.0-plus
+is_license_tag: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/agpl-3.0-plus_291.RULE b/src/licensedcode/data/rules/agpl-3.0-plus_291.RULE
new file mode 100644
index 00000000000..b25f68cf393
--- /dev/null
+++ b/src/licensedcode/data/rules/agpl-3.0-plus_291.RULE
@@ -0,0 +1 @@
+Everyone is free to use 'under the conditions of the AGPL-3.0 License (see LICENSE file).
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/agpl-3.0-plus_291.yml b/src/licensedcode/data/rules/agpl-3.0-plus_291.yml
new file mode 100644
index 00000000000..f9cb46a79dc
--- /dev/null
+++ b/src/licensedcode/data/rules/agpl-3.0-plus_291.yml
@@ -0,0 +1,5 @@
+license_expression: agpl-3.0-plus
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/agpl-3.0_385.RULE b/src/licensedcode/data/rules/agpl-3.0_385.RULE
new file mode 100644
index 00000000000..8f82eea7187
--- /dev/null
+++ b/src/licensedcode/data/rules/agpl-3.0_385.RULE
@@ -0,0 +1 @@
+under the conditions of the AGPL-3.0 License (see LICENSE file).
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/agpl-3.0_385.yml b/src/licensedcode/data/rules/agpl-3.0_385.yml
new file mode 100644
index 00000000000..5431969e2ed
--- /dev/null
+++ b/src/licensedcode/data/rules/agpl-3.0_385.yml
@@ -0,0 +1,5 @@
+license_expression: agpl-3.0
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/agpl-3.0_386.RULE b/src/licensedcode/data/rules/agpl-3.0_386.RULE
new file mode 100644
index 00000000000..2a0e0fba1aa
--- /dev/null
+++ b/src/licensedcode/data/rules/agpl-3.0_386.RULE
@@ -0,0 +1 @@
+under the conditions of the AGPL-3.0 License
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/agpl-3.0_386.yml b/src/licensedcode/data/rules/agpl-3.0_386.yml
new file mode 100644
index 00000000000..b6548eaf117
--- /dev/null
+++ b/src/licensedcode/data/rules/agpl-3.0_386.yml
@@ -0,0 +1,3 @@
+license_expression: agpl-3.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/apache-2.0_1011.RULE b/src/licensedcode/data/rules/apache-2.0_1011.RULE
index c91d4dcc95e..831056469d2 100644
--- a/src/licensedcode/data/rules/apache-2.0_1011.RULE
+++ b/src/licensedcode/data/rules/apache-2.0_1011.RULE
@@ -10,5 +10,5 @@ Licensed under the Apache License, Version 2.0 (the "License");
See the License for the specific language governing permissions and
limitations under the License.
.
- On Debian systems, the text of the Apache License, Version 2.0 can be
- found at /usr/share/common-licenses/Apache-2.0.
\ No newline at end of file
+ On Debian systems, the text of the {{ Apache License, Version 2.0 }} can be
+ found at {{ /usr/share/common-licenses/Apache-2.0 }}.
diff --git a/src/licensedcode/data/rules/apache-2.0_1019.RULE b/src/licensedcode/data/rules/apache-2.0_1019.RULE
index 8dc42a5ca9a..22daf5af53c 100644
--- a/src/licensedcode/data/rules/apache-2.0_1019.RULE
+++ b/src/licensedcode/data/rules/apache-2.0_1019.RULE
@@ -10,5 +10,5 @@ Licensed under the Apache License, Version 2.0 (the "License");
See the License for the specific language governing permissions and
limitations under the License.
- On Debian systems, the Apache License, Version 2.0 can be found at
- /usr/share/common-licenses/Apache-2.0.
\ No newline at end of file
+ On Debian systems, the {{ Apache License, Version 2.0 }} can be found at
+ {{ /usr/share/common-licenses/Apache-2.0 }}.
diff --git a/src/licensedcode/data/rules/apache-2.0_1112.RULE b/src/licensedcode/data/rules/apache-2.0_1112.RULE
new file mode 100644
index 00000000000..926d1921958
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1112.RULE
@@ -0,0 +1,2 @@
+## License
+ released under the Apache 2.0 license. See the [LICENSE](LICENSE) file for details.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1112.yml b/src/licensedcode/data/rules/apache-2.0_1112.yml
new file mode 100644
index 00000000000..d892e977716
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1112.yml
@@ -0,0 +1,5 @@
+license_expression: apache-2.0
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/apache-2.0_1113.RULE b/src/licensedcode/data/rules/apache-2.0_1113.RULE
new file mode 100644
index 00000000000..42c470f1ed5
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1113.RULE
@@ -0,0 +1 @@
+released under the Apache 2.0 license. See the [LICENSE](LICENSE) file for details.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1113.yml b/src/licensedcode/data/rules/apache-2.0_1113.yml
new file mode 100644
index 00000000000..d892e977716
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1113.yml
@@ -0,0 +1,5 @@
+license_expression: apache-2.0
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/apache-2.0_1114.RULE b/src/licensedcode/data/rules/apache-2.0_1114.RULE
new file mode 100644
index 00000000000..0756020f48c
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1114.RULE
@@ -0,0 +1 @@
+The toolkit itself is licensed as Apache Software License 2.0.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1114.yml b/src/licensedcode/data/rules/apache-2.0_1114.yml
new file mode 100644
index 00000000000..fec9233bc17
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1114.yml
@@ -0,0 +1,3 @@
+license_expression: apache-2.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/apache-2.0_1115.RULE b/src/licensedcode/data/rules/apache-2.0_1115.RULE
new file mode 100644
index 00000000000..c15a23092b9
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1115.RULE
@@ -0,0 +1 @@
+[license](http://img.shields.io/badge/license-Apache%20v2-orange.svg)
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1115.yml b/src/licensedcode/data/rules/apache-2.0_1115.yml
new file mode 100644
index 00000000000..16dd7820b24
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1115.yml
@@ -0,0 +1,5 @@
+license_expression: apache-2.0
+is_license_reference: yes
+relevance: 100
+ignorable_urls:
+ - http://img.shields.io/badge/license-Apache%20v2-orange.svg
diff --git a/src/licensedcode/data/rules/apache-2.0_1116.RULE b/src/licensedcode/data/rules/apache-2.0_1116.RULE
new file mode 100644
index 00000000000..ede8a123e8d
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1116.RULE
@@ -0,0 +1 @@
+Apache%20v2
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1116.yml b/src/licensedcode/data/rules/apache-2.0_1116.yml
new file mode 100644
index 00000000000..6b15a3a68eb
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1116.yml
@@ -0,0 +1,3 @@
+license_expression: apache-2.0
+is_license_reference: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/apache-2.0_1117.RULE b/src/licensedcode/data/rules/apache-2.0_1117.RULE
new file mode 100644
index 00000000000..eb55975cdf5
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1117.RULE
@@ -0,0 +1 @@
+license-Apache%20v2
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1117.yml b/src/licensedcode/data/rules/apache-2.0_1117.yml
new file mode 100644
index 00000000000..6b15a3a68eb
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1117.yml
@@ -0,0 +1,3 @@
+license_expression: apache-2.0
+is_license_reference: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/apache-2.0_1118.RULE b/src/licensedcode/data/rules/apache-2.0_1118.RULE
new file mode 100644
index 00000000000..0da594906d6
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1118.RULE
@@ -0,0 +1 @@
+The generated code is also licensed under Apache Software License 2.0
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1118.yml b/src/licensedcode/data/rules/apache-2.0_1118.yml
new file mode 100644
index 00000000000..fec9233bc17
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1118.yml
@@ -0,0 +1,3 @@
+license_expression: apache-2.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/apache-2.0_1119.RULE b/src/licensedcode/data/rules/apache-2.0_1119.RULE
new file mode 100644
index 00000000000..4f3481109a3
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1119.RULE
@@ -0,0 +1,2 @@
+### Apache License ###
+ All the remaining project files are covered by the Apache license:
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1119.yml b/src/licensedcode/data/rules/apache-2.0_1119.yml
new file mode 100644
index 00000000000..fec9233bc17
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1119.yml
@@ -0,0 +1,3 @@
+license_expression: apache-2.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/apache-2.0_1120.RULE b/src/licensedcode/data/rules/apache-2.0_1120.RULE
new file mode 100644
index 00000000000..0d95efba448
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1120.RULE
@@ -0,0 +1 @@
+project files are covered by the {{Apache license:}}
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1120.yml b/src/licensedcode/data/rules/apache-2.0_1120.yml
new file mode 100644
index 00000000000..fec9233bc17
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1120.yml
@@ -0,0 +1,3 @@
+license_expression: apache-2.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/apache-2.0_1121.RULE b/src/licensedcode/data/rules/apache-2.0_1121.RULE
new file mode 100644
index 00000000000..a0f345fb4b9
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1121.RULE
@@ -0,0 +1 @@
+covered by the Apache license:
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1121.yml b/src/licensedcode/data/rules/apache-2.0_1121.yml
new file mode 100644
index 00000000000..fec9233bc17
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1121.yml
@@ -0,0 +1,3 @@
+license_expression: apache-2.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/apache-2.0_1122.RULE b/src/licensedcode/data/rules/apache-2.0_1122.RULE
new file mode 100644
index 00000000000..0090ec3f529
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1122.RULE
@@ -0,0 +1,3 @@
+## License
+
+This code is licensed under {{Apache-2.0 }}(../../../LICENSE).
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1122.yml b/src/licensedcode/data/rules/apache-2.0_1122.yml
new file mode 100644
index 00000000000..657388845e9
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1122.yml
@@ -0,0 +1,5 @@
+license_expression: apache-2.0
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - ../../../LICENSE
diff --git a/src/licensedcode/data/rules/apache-2.0_1123.RULE b/src/licensedcode/data/rules/apache-2.0_1123.RULE
new file mode 100644
index 00000000000..a136ffb45e2
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1123.RULE
@@ -0,0 +1 @@
+This code is licensed under {{Apache-2.0 }}(../../../LICENSE).
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1123.yml b/src/licensedcode/data/rules/apache-2.0_1123.yml
new file mode 100644
index 00000000000..657388845e9
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1123.yml
@@ -0,0 +1,5 @@
+license_expression: apache-2.0
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - ../../../LICENSE
diff --git a/src/licensedcode/data/rules/apache-2.0_1124.RULE b/src/licensedcode/data/rules/apache-2.0_1124.RULE
new file mode 100644
index 00000000000..6da8a69ecd7
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1124.RULE
@@ -0,0 +1 @@
+The package is licensed under the {{ Apache License 2.0. }} Please see the LICENSE file for details.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1124.yml b/src/licensedcode/data/rules/apache-2.0_1124.yml
new file mode 100644
index 00000000000..d892e977716
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1124.yml
@@ -0,0 +1,5 @@
+license_expression: apache-2.0
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/apache-2.0_1125.RULE b/src/licensedcode/data/rules/apache-2.0_1125.RULE
new file mode 100644
index 00000000000..ce7d4baa155
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1125.RULE
@@ -0,0 +1 @@
+licensed under the {{ Apache License 2.0. }} Please see the LICENSE file for details.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1125.yml b/src/licensedcode/data/rules/apache-2.0_1125.yml
new file mode 100644
index 00000000000..d892e977716
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1125.yml
@@ -0,0 +1,5 @@
+license_expression: apache-2.0
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/apache-2.0_1126.RULE b/src/licensedcode/data/rules/apache-2.0_1126.RULE
new file mode 100644
index 00000000000..87da4e13bb8
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1126.RULE
@@ -0,0 +1,4 @@
+## License
+
+The code is licensed under the {{Apache 2.0 license.}}
+See [the license file](LICENSE) for further details.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1126.yml b/src/licensedcode/data/rules/apache-2.0_1126.yml
new file mode 100644
index 00000000000..389a34b8413
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1126.yml
@@ -0,0 +1,4 @@
+license_expression: apache-2.0
+is_license_notice: yes
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/apache-2.0_1127.RULE b/src/licensedcode/data/rules/apache-2.0_1127.RULE
new file mode 100644
index 00000000000..58715e779ac
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1127.RULE
@@ -0,0 +1,2 @@
+The code is licensed under the {{Apache 2.0 license.}}
+See [the license file](LICENSE) for further details.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1127.yml b/src/licensedcode/data/rules/apache-2.0_1127.yml
new file mode 100644
index 00000000000..389a34b8413
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1127.yml
@@ -0,0 +1,4 @@
+license_expression: apache-2.0
+is_license_notice: yes
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/apache-2.0_1128.RULE b/src/licensedcode/data/rules/apache-2.0_1128.RULE
new file mode 100644
index 00000000000..574484d6421
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1128.RULE
@@ -0,0 +1,2 @@
+## License
+The code is licensed under the {{Apache 2.0 license.}}
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1128.yml b/src/licensedcode/data/rules/apache-2.0_1128.yml
new file mode 100644
index 00000000000..fec9233bc17
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1128.yml
@@ -0,0 +1,3 @@
+license_expression: apache-2.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/apache-2.0_1129.RULE b/src/licensedcode/data/rules/apache-2.0_1129.RULE
new file mode 100644
index 00000000000..b0ad3f8e14f
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1129.RULE
@@ -0,0 +1 @@
+The code is licensed under the {{Apache 2.0 license.}}
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1129.yml b/src/licensedcode/data/rules/apache-2.0_1129.yml
new file mode 100644
index 00000000000..fec9233bc17
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1129.yml
@@ -0,0 +1,3 @@
+license_expression: apache-2.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/apache-2.0_1130.RULE b/src/licensedcode/data/rules/apache-2.0_1130.RULE
new file mode 100644
index 00000000000..ed380f50b24
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1130.RULE
@@ -0,0 +1,2 @@
+licensed under the {{Apache License, Version 2.0.}}
+ See [LICENSE](LICENSE) for the full text of the license.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1130.yml b/src/licensedcode/data/rules/apache-2.0_1130.yml
new file mode 100644
index 00000000000..389a34b8413
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1130.yml
@@ -0,0 +1,4 @@
+license_expression: apache-2.0
+is_license_notice: yes
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/apache-2.0_1131.RULE b/src/licensedcode/data/rules/apache-2.0_1131.RULE
new file mode 100644
index 00000000000..9dd532c9712
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1131.RULE
@@ -0,0 +1,2 @@
+License
+The package is licensed under the Apache License 2.0.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1131.yml b/src/licensedcode/data/rules/apache-2.0_1131.yml
new file mode 100644
index 00000000000..fec9233bc17
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1131.yml
@@ -0,0 +1,3 @@
+license_expression: apache-2.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/apache-2.0_1132.RULE b/src/licensedcode/data/rules/apache-2.0_1132.RULE
new file mode 100644
index 00000000000..f68fd9277a0
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1132.RULE
@@ -0,0 +1 @@
+The package is licensed under the Apache License 2.0.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1132.yml b/src/licensedcode/data/rules/apache-2.0_1132.yml
new file mode 100644
index 00000000000..fec9233bc17
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1132.yml
@@ -0,0 +1,3 @@
+license_expression: apache-2.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/apache-2.0_1133.RULE b/src/licensedcode/data/rules/apache-2.0_1133.RULE
new file mode 100644
index 00000000000..3b13333aba4
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1133.RULE
@@ -0,0 +1 @@
+package is licensed under the Apache License 2.0.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1133.yml b/src/licensedcode/data/rules/apache-2.0_1133.yml
new file mode 100644
index 00000000000..fec9233bc17
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1133.yml
@@ -0,0 +1,3 @@
+license_expression: apache-2.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/apache-2.0_1134.RULE b/src/licensedcode/data/rules/apache-2.0_1134.RULE
new file mode 100644
index 00000000000..9142ac7485a
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1134.RULE
@@ -0,0 +1 @@
+[license](http://img.shields.io/badge/license-apache_2.0-blue.svg
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1134.yml b/src/licensedcode/data/rules/apache-2.0_1134.yml
new file mode 100644
index 00000000000..f66776723eb
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1134.yml
@@ -0,0 +1,5 @@
+license_expression: apache-2.0
+is_license_reference: yes
+relevance: 100
+ignorable_urls:
+ - http://img.shields.io/badge/license-apache_2.0-blue.svg
diff --git a/src/licensedcode/data/rules/apache-2.0_1135.RULE b/src/licensedcode/data/rules/apache-2.0_1135.RULE
new file mode 100644
index 00000000000..03fe358627c
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1135.RULE
@@ -0,0 +1 @@
+[license](http://img.shields.io/badge/license-apache_2.0
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1135.yml b/src/licensedcode/data/rules/apache-2.0_1135.yml
new file mode 100644
index 00000000000..43f6594acbb
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1135.yml
@@ -0,0 +1,5 @@
+license_expression: apache-2.0
+is_license_reference: yes
+relevance: 100
+ignorable_urls:
+ - http://img.shields.io/badge/license-apache_2.0
diff --git a/src/licensedcode/data/rules/apache-2.0_1136.RULE b/src/licensedcode/data/rules/apache-2.0_1136.RULE
new file mode 100644
index 00000000000..19b99eda25a
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1136.RULE
@@ -0,0 +1 @@
+See: https://spdx.org/licenses/Apache-2.0.html
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1136.yml b/src/licensedcode/data/rules/apache-2.0_1136.yml
new file mode 100644
index 00000000000..56c884f9770
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1136.yml
@@ -0,0 +1,5 @@
+license_expression: apache-2.0
+is_license_reference: yes
+relevance: 100
+ignorable_urls:
+ - https://spdx.org/licenses/Apache-2.0.html
diff --git a/src/licensedcode/data/rules/apache-2.0_1137.RULE b/src/licensedcode/data/rules/apache-2.0_1137.RULE
new file mode 100644
index 00000000000..1b2cd4d567f
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1137.RULE
@@ -0,0 +1 @@
+spdx_license="Apache-2.0"
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1137.yml b/src/licensedcode/data/rules/apache-2.0_1137.yml
new file mode 100644
index 00000000000..6b15a3a68eb
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1137.yml
@@ -0,0 +1,3 @@
+license_expression: apache-2.0
+is_license_reference: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/apache-2.0_1138.RULE b/src/licensedcode/data/rules/apache-2.0_1138.RULE
new file mode 100644
index 00000000000..26337777037
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1138.RULE
@@ -0,0 +1 @@
+section 4d of the Apache License, Version 2.0
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_1138.yml b/src/licensedcode/data/rules/apache-2.0_1138.yml
new file mode 100644
index 00000000000..64916166c17
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_1138.yml
@@ -0,0 +1,4 @@
+license_expression: apache-2.0
+is_license_reference: yes
+relevance: 100
+notes: See https://raw.githubusercontent.com/spring-projects/spring-framework/main/src/docs/dist/license.txt
diff --git a/src/licensedcode/data/rules/apache-2.0_181.RULE b/src/licensedcode/data/rules/apache-2.0_181.RULE
index 96b6ce7ecd2..286c338cd79 100644
--- a/src/licensedcode/data/rules/apache-2.0_181.RULE
+++ b/src/licensedcode/data/rules/apache-2.0_181.RULE
@@ -1,8 +1 @@
-
-This product is licensed to you under the Apache License, Version 2.0 (the "License").
-You may not use this product except in compliance with the License.
-
-This product may include a number of subcomponents with separate copyright notices and
-license terms. Your use of these subcomponents is subject to the terms and conditions
-of the subcomponent's license, as noted in the LICENSE file.
-
\ No newline at end of file
+[](LICENSE)
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_181.yml b/src/licensedcode/data/rules/apache-2.0_181.yml
index d892e977716..045eab09850 100644
--- a/src/licensedcode/data/rules/apache-2.0_181.yml
+++ b/src/licensedcode/data/rules/apache-2.0_181.yml
@@ -1,5 +1,7 @@
license_expression: apache-2.0
-is_license_notice: yes
+is_license_tag: yes
relevance: 100
referenced_filenames:
- LICENSE
+ignorable_urls:
+ - https://img.shields.io/badge/License-Apache%202.0-blue.svg
diff --git a/src/licensedcode/data/rules/apache-2.0_289.RULE b/src/licensedcode/data/rules/apache-2.0_289.RULE
index ac52c254a20..b9b7a883912 100644
--- a/src/licensedcode/data/rules/apache-2.0_289.RULE
+++ b/src/licensedcode/data/rules/apache-2.0_289.RULE
@@ -1 +1 @@
- The distribution is licensed under the Apache License, Version 2.0 (http://apache.org/licenses/LICENSE-2.0).
\ No newline at end of file
+ The distribution is {{licensed under the Apache License, Version 2.0 (http://apache.org/licenses/LICENSE-2.0).}}
diff --git a/src/licensedcode/data/rules/apache-2.0_548.RULE b/src/licensedcode/data/rules/apache-2.0_548.RULE
index 773291944ca..fc00a55442b 100644
--- a/src/licensedcode/data/rules/apache-2.0_548.RULE
+++ b/src/licensedcode/data/rules/apache-2.0_548.RULE
@@ -1,2 +1,2 @@
-licensed under the Apache License, version 2.0, the text of which
-is included above.
\ No newline at end of file
+licensed under the {{Apache License, version 2.0}}, the text of which
+is included above.
diff --git a/src/licensedcode/data/rules/apache-2.0_749.RULE b/src/licensedcode/data/rules/apache-2.0_749.RULE
index ff7a20a3505..ee641607d22 100644
--- a/src/licensedcode/data/rules/apache-2.0_749.RULE
+++ b/src/licensedcode/data/rules/apache-2.0_749.RULE
@@ -1,3 +1,3 @@
The majority of the source code in the project is licensed
under the terms of the Apache License, Version 2.0, available from:
- https://www.apache.org/licenses/LICENSE-2.0
+ {{ https://www.apache.org/licenses/LICENSE-2.0 }}
diff --git a/src/licensedcode/data/rules/apache-2.0_943.RULE b/src/licensedcode/data/rules/apache-2.0_943.RULE
index 462dd747956..80817c08b2e 100644
--- a/src/licensedcode/data/rules/apache-2.0_943.RULE
+++ b/src/licensedcode/data/rules/apache-2.0_943.RULE
@@ -1,6 +1,6 @@
-@APPLE_APACHE_LICENSE_HEADER_START@
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
+ {{ @APPLE_APACHE_LICENSE_HEADER_START@ }}
+{{ Licensed under the Apache License, Version 2.0 (the "License"); }} you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
-@APPLE_APACHE_LICENSE_HEADER_END@
\ No newline at end of file
+{{ @APPLE_APACHE_LICENSE_HEADER_END@ }}
diff --git a/src/licensedcode/data/rules/apache-2.0_977.RULE b/src/licensedcode/data/rules/apache-2.0_977.RULE
index 57ab3863de3..deb1fd171d1 100644
--- a/src/licensedcode/data/rules/apache-2.0_977.RULE
+++ b/src/licensedcode/data/rules/apache-2.0_977.RULE
@@ -10,6 +10,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
-License: Apache-2.0
+License: {{ Apache-2.0 }}
On Debian GNU/Linux systems the complete text of the license can be found in
- /usr/share/common-licenses/Apache-2.0
+ {{ /usr/share/common-licenses/Apache-2.0 }}
diff --git a/src/licensedcode/data/rules/apache-2.0_and_generic-cla_2.RULE b/src/licensedcode/data/rules/apache-2.0_and_generic-cla_2.RULE
new file mode 100644
index 00000000000..8ce773130d8
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_and_generic-cla_2.RULE
@@ -0,0 +1 @@
+By submitting a patch, you agree to allow the project owners to license your work under the [Apache 2.0 License](./LICENSE)
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/apache-2.0_and_generic-cla_2.yml b/src/licensedcode/data/rules/apache-2.0_and_generic-cla_2.yml
new file mode 100644
index 00000000000..39df2d3df7b
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_and_generic-cla_2.yml
@@ -0,0 +1,4 @@
+license_expression: apache-2.0 AND generic-cla
+is_license_notice: yes
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/apache-2.0_and_unknown-license-reference_1.RULE b/src/licensedcode/data/rules/apache-2.0_and_unknown-license-reference_1.RULE
index 41661c00def..4de891549af 100644
--- a/src/licensedcode/data/rules/apache-2.0_and_unknown-license-reference_1.RULE
+++ b/src/licensedcode/data/rules/apache-2.0_and_unknown-license-reference_1.RULE
@@ -1,6 +1,6 @@
-This project is licensed to you under the Apache License, Version 2.0 (the "License").
+This project is licensed to you under the {{Apache License, Version 2.0 }} (the "License").
You may not use this project except in compliance with the License.
-This project may include a number of subcomponents with separate copyright notices
-and license terms. Your use of these subcomponents is subject to the terms and
-conditions of the subcomponent's license, as noted in the LICENSE file.
\ No newline at end of file
+This project may {{ include a number of subcomponents with separate copyright notices
+and license terms}}. Your use of these subcomponents is subject to the terms and
+conditions of the {{subcomponent's license}}, as noted in the LICENSE file.
diff --git a/src/licensedcode/data/rules/apache-2.0_and_unknown-license-reference_2.RULE b/src/licensedcode/data/rules/apache-2.0_and_unknown-license-reference_2.RULE
new file mode 100644
index 00000000000..597a3b0cc3e
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_and_unknown-license-reference_2.RULE
@@ -0,0 +1,8 @@
+
+This product is licensed to you {{under the Apache License, Version 2.0}} (the "License").
+You may not use this product except in compliance with the License.
+
+This product may {{include a number of subcomponents with separate copyright notices and
+license terms. Your use of these subcomponents is subject to the terms and conditions
+of the subcomponent's license}}, as noted in the LICENSE file.
+
diff --git a/src/licensedcode/data/rules/apache-2.0_and_unknown-license-reference_2.yml b/src/licensedcode/data/rules/apache-2.0_and_unknown-license-reference_2.yml
new file mode 100644
index 00000000000..5579c463322
--- /dev/null
+++ b/src/licensedcode/data/rules/apache-2.0_and_unknown-license-reference_2.yml
@@ -0,0 +1,6 @@
+license_expression: apache-2.0 AND unknown-license-reference
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
+
diff --git a/src/licensedcode/data/rules/bsd-new_1164.RULE b/src/licensedcode/data/rules/bsd-new_1164.RULE
new file mode 100644
index 00000000000..3933973674f
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1164.RULE
@@ -0,0 +1,3 @@
+License
+
+Unless otherwise specified, a BSD 3-clause license applies (see LICENSE).
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1164.yml b/src/licensedcode/data/rules/bsd-new_1164.yml
new file mode 100644
index 00000000000..77fbef666ba
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1164.yml
@@ -0,0 +1,5 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/bsd-new_1165.RULE b/src/licensedcode/data/rules/bsd-new_1165.RULE
new file mode 100644
index 00000000000..1bbde5cfa98
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1165.RULE
@@ -0,0 +1 @@
+Unless otherwise specified, a BSD 3-clause license applies (see LICENSE).
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1165.yml b/src/licensedcode/data/rules/bsd-new_1165.yml
new file mode 100644
index 00000000000..77fbef666ba
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1165.yml
@@ -0,0 +1,5 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/bsd-new_1166.RULE b/src/licensedcode/data/rules/bsd-new_1166.RULE
new file mode 100644
index 00000000000..ef66c0be2d1
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1166.RULE
@@ -0,0 +1 @@
+BSD 3-clause license applies (see LICENSE).
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1166.yml b/src/licensedcode/data/rules/bsd-new_1166.yml
new file mode 100644
index 00000000000..77fbef666ba
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1166.yml
@@ -0,0 +1,5 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/bsd-new_1167.RULE b/src/licensedcode/data/rules/bsd-new_1167.RULE
new file mode 100644
index 00000000000..90a4d10526e
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1167.RULE
@@ -0,0 +1,28 @@
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ Neither the name of the Open Knowledge Foundation Ltd. nor the
+ names of its contributors may be used to endorse or promote
+ products derived from this software without specific prior written
+ permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1167.yml b/src/licensedcode/data/rules/bsd-new_1167.yml
new file mode 100644
index 00000000000..1940635e96d
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1167.yml
@@ -0,0 +1,2 @@
+license_expression: bsd-new
+is_license_text: yes
diff --git a/src/licensedcode/data/rules/bsd-new_1168.RULE b/src/licensedcode/data/rules/bsd-new_1168.RULE
new file mode 100644
index 00000000000..787ea6dc14d
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1168.RULE
@@ -0,0 +1,24 @@
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+* Neither the name of Intel Corporation nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT [HOLDER] OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1168.yml b/src/licensedcode/data/rules/bsd-new_1168.yml
new file mode 100644
index 00000000000..1940635e96d
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1168.yml
@@ -0,0 +1,2 @@
+license_expression: bsd-new
+is_license_text: yes
diff --git a/src/licensedcode/data/rules/bsd-new_1169.RULE b/src/licensedcode/data/rules/bsd-new_1169.RULE
new file mode 100644
index 00000000000..2ae8b760d5a
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1169.RULE
@@ -0,0 +1,2 @@
+Use of this source code is governed by a BSD-style
+license that can be found in the LICENSE file.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1169.yml b/src/licensedcode/data/rules/bsd-new_1169.yml
new file mode 100644
index 00000000000..445e83d3efc
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1169.yml
@@ -0,0 +1,6 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 95
+referenced_filenames:
+ - LICENSE
+notes: sometimes a bsd-new, sometimes a bsd-simplified. bsd-new is safer
diff --git a/src/licensedcode/data/rules/bsd-new_1170.RULE b/src/licensedcode/data/rules/bsd-new_1170.RULE
new file mode 100644
index 00000000000..6e2348ecddf
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1170.RULE
@@ -0,0 +1,2 @@
+Use of this source code is governed by a BSD-style
+license that can be found in the LICENSE.BSD file.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1170.yml b/src/licensedcode/data/rules/bsd-new_1170.yml
new file mode 100644
index 00000000000..a7f97be8c9e
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1170.yml
@@ -0,0 +1,6 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 98
+referenced_filenames:
+ - LICENSE.BSD
+notes: sometimes a bsd-new, sometimes a bsd-simplified. bsd-new is safer
diff --git a/src/licensedcode/data/rules/bsd-new_1171.RULE b/src/licensedcode/data/rules/bsd-new_1171.RULE
new file mode 100644
index 00000000000..166f1c335fe
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1171.RULE
@@ -0,0 +1,3 @@
+Use of this source code is governed by a BSD-style
+license that can be found in the LICENSE file.
+Based on work Copyright (c) Yann Collet, released under BSD License.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1171.yml b/src/licensedcode/data/rules/bsd-new_1171.yml
new file mode 100644
index 00000000000..b7e651c6ff5
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1171.yml
@@ -0,0 +1,9 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 95
+referenced_filenames:
+ - LICENSE
+ignorable_copyrights:
+ - Copyright (c) Yann Collet
+ignorable_holders:
+ - Yann Collet
diff --git a/src/licensedcode/data/rules/bsd-new_1172.RULE b/src/licensedcode/data/rules/bsd-new_1172.RULE
new file mode 100644
index 00000000000..3561befd08b
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1172.RULE
@@ -0,0 +1,3 @@
+Use of this source code is governed by a BSD-style
+license that can be found in the LICENSE file.
+Based on work Copyright (c) released under BSD License.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1172.yml b/src/licensedcode/data/rules/bsd-new_1172.yml
new file mode 100644
index 00000000000..f165bfd52c7
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1172.yml
@@ -0,0 +1,5 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 95
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/bsd-new_1173.RULE b/src/licensedcode/data/rules/bsd-new_1173.RULE
new file mode 100644
index 00000000000..17a6cf7dcb1
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1173.RULE
@@ -0,0 +1 @@
+Based on work released under BSD License.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1173.yml b/src/licensedcode/data/rules/bsd-new_1173.yml
new file mode 100644
index 00000000000..6c859fb2e84
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1173.yml
@@ -0,0 +1,3 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 95
diff --git a/src/licensedcode/data/rules/bsd-new_1174.RULE b/src/licensedcode/data/rules/bsd-new_1174.RULE
new file mode 100644
index 00000000000..2ed9eee3b2e
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1174.RULE
@@ -0,0 +1,2 @@
+Unless otherwise noted, the source files are distributed
+under the BSD-style license found in the LICENSE file.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1174.yml b/src/licensedcode/data/rules/bsd-new_1174.yml
new file mode 100644
index 00000000000..445e83d3efc
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1174.yml
@@ -0,0 +1,6 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 95
+referenced_filenames:
+ - LICENSE
+notes: sometimes a bsd-new, sometimes a bsd-simplified. bsd-new is safer
diff --git a/src/licensedcode/data/rules/bsd-new_1175.RULE b/src/licensedcode/data/rules/bsd-new_1175.RULE
new file mode 100644
index 00000000000..93a7bcbb612
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1175.RULE
@@ -0,0 +1 @@
+source files are distributed under the BSD-style license found in the LICENSE file.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1175.yml b/src/licensedcode/data/rules/bsd-new_1175.yml
new file mode 100644
index 00000000000..445e83d3efc
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1175.yml
@@ -0,0 +1,6 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 95
+referenced_filenames:
+ - LICENSE
+notes: sometimes a bsd-new, sometimes a bsd-simplified. bsd-new is safer
diff --git a/src/licensedcode/data/rules/bsd-new_1176.RULE b/src/licensedcode/data/rules/bsd-new_1176.RULE
new file mode 100644
index 00000000000..a7ed89ed959
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1176.RULE
@@ -0,0 +1,2 @@
+Unless otherwise noted, the Go source files are distributed under
+the BSD-style license found in the LICENSE file.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1176.yml b/src/licensedcode/data/rules/bsd-new_1176.yml
new file mode 100644
index 00000000000..445e83d3efc
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1176.yml
@@ -0,0 +1,6 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 95
+referenced_filenames:
+ - LICENSE
+notes: sometimes a bsd-new, sometimes a bsd-simplified. bsd-new is safer
diff --git a/src/licensedcode/data/rules/bsd-new_1177.RULE b/src/licensedcode/data/rules/bsd-new_1177.RULE
new file mode 100644
index 00000000000..ebdd01b056d
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1177.RULE
@@ -0,0 +1,2 @@
+Use of this source code is governed by a BSD-style
+license that can be found in the Go distribution.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1177.yml b/src/licensedcode/data/rules/bsd-new_1177.yml
new file mode 100644
index 00000000000..44d75d95664
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1177.yml
@@ -0,0 +1,4 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 95
+notes: sometimes a bsd-new, sometimes a bsd-simplified. bsd-new is safer
diff --git a/src/licensedcode/data/rules/bsd-new_1178.RULE b/src/licensedcode/data/rules/bsd-new_1178.RULE
new file mode 100644
index 00000000000..7b349f7cc78
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1178.RULE
@@ -0,0 +1 @@
+This library is bsd licensed
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1178.yml b/src/licensedcode/data/rules/bsd-new_1178.yml
new file mode 100644
index 00000000000..6c859fb2e84
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1178.yml
@@ -0,0 +1,3 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 95
diff --git a/src/licensedcode/data/rules/bsd-new_1179.RULE b/src/licensedcode/data/rules/bsd-new_1179.RULE
new file mode 100644
index 00000000000..91e5ffa1f96
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1179.RULE
@@ -0,0 +1 @@
+This library is BSD licensed so feel free to use it in any project.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1179.yml b/src/licensedcode/data/rules/bsd-new_1179.yml
new file mode 100644
index 00000000000..6c859fb2e84
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1179.yml
@@ -0,0 +1,3 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 95
diff --git a/src/licensedcode/data/rules/bsd-new_1180.RULE b/src/licensedcode/data/rules/bsd-new_1180.RULE
new file mode 100644
index 00000000000..75852788771
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1180.RULE
@@ -0,0 +1 @@
+library is bsd licensed
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1180.yml b/src/licensedcode/data/rules/bsd-new_1180.yml
new file mode 100644
index 00000000000..6c859fb2e84
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1180.yml
@@ -0,0 +1,3 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 95
diff --git a/src/licensedcode/data/rules/bsd-new_1181.RULE b/src/licensedcode/data/rules/bsd-new_1181.RULE
new file mode 100644
index 00000000000..00309a3730e
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1181.RULE
@@ -0,0 +1 @@
+This project is BSD licensed. See LICENSE for more information.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1181.yml b/src/licensedcode/data/rules/bsd-new_1181.yml
new file mode 100644
index 00000000000..f165bfd52c7
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1181.yml
@@ -0,0 +1,5 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 95
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/bsd-new_1182.RULE b/src/licensedcode/data/rules/bsd-new_1182.RULE
new file mode 100644
index 00000000000..95e75962389
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1182.RULE
@@ -0,0 +1 @@
+This project is BSD-licensed open source.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1182.yml b/src/licensedcode/data/rules/bsd-new_1182.yml
new file mode 100644
index 00000000000..6c859fb2e84
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1182.yml
@@ -0,0 +1,3 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 95
diff --git a/src/licensedcode/data/rules/bsd-new_1183.RULE b/src/licensedcode/data/rules/bsd-new_1183.RULE
new file mode 100644
index 00000000000..629dbf6a141
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1183.RULE
@@ -0,0 +1 @@
+License This project is BSD-licensed.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1183.yml b/src/licensedcode/data/rules/bsd-new_1183.yml
new file mode 100644
index 00000000000..6c859fb2e84
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1183.yml
@@ -0,0 +1,3 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 95
diff --git a/src/licensedcode/data/rules/bsd-new_1184.RULE b/src/licensedcode/data/rules/bsd-new_1184.RULE
new file mode 100644
index 00000000000..05f147d0e35
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1184.RULE
@@ -0,0 +1 @@
+This project is BSD-licensed.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1184.yml b/src/licensedcode/data/rules/bsd-new_1184.yml
new file mode 100644
index 00000000000..6c859fb2e84
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1184.yml
@@ -0,0 +1,3 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 95
diff --git a/src/licensedcode/data/rules/bsd-new_1185.RULE b/src/licensedcode/data/rules/bsd-new_1185.RULE
new file mode 100644
index 00000000000..4f0f8733122
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1185.RULE
@@ -0,0 +1 @@
+project is BSD-licensed.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1185.yml b/src/licensedcode/data/rules/bsd-new_1185.yml
new file mode 100644
index 00000000000..6c859fb2e84
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1185.yml
@@ -0,0 +1,3 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 95
diff --git a/src/licensedcode/data/rules/bsd-new_1186.RULE b/src/licensedcode/data/rules/bsd-new_1186.RULE
new file mode 100644
index 00000000000..cbf9dc0473a
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1186.RULE
@@ -0,0 +1 @@
+This program is BSD-licensed (3 clause)
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1186.yml b/src/licensedcode/data/rules/bsd-new_1186.yml
new file mode 100644
index 00000000000..67d99f838ff
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1186.yml
@@ -0,0 +1,3 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/bsd-new_1187.RULE b/src/licensedcode/data/rules/bsd-new_1187.RULE
new file mode 100644
index 00000000000..88c5e76d548
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1187.RULE
@@ -0,0 +1 @@
+This program is BSD-licensed (3 clause). See LICENSE for details.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1187.yml b/src/licensedcode/data/rules/bsd-new_1187.yml
new file mode 100644
index 00000000000..77fbef666ba
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1187.yml
@@ -0,0 +1,5 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/bsd-new_1188.RULE b/src/licensedcode/data/rules/bsd-new_1188.RULE
new file mode 100644
index 00000000000..26362973a40
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1188.RULE
@@ -0,0 +1 @@
+This program is BSD licensed software,
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1188.yml b/src/licensedcode/data/rules/bsd-new_1188.yml
new file mode 100644
index 00000000000..6c859fb2e84
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1188.yml
@@ -0,0 +1,3 @@
+license_expression: bsd-new
+is_license_notice: yes
+relevance: 95
diff --git a/src/licensedcode/data/rules/bsd-new_1189.RULE b/src/licensedcode/data/rules/bsd-new_1189.RULE
new file mode 100644
index 00000000000..e8da53c1bf9
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1189.RULE
@@ -0,0 +1,23 @@
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of the copyright holders nor the names of its contributors
+ may be used to endorse or promote products derived from this software without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
+SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
+WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1189.yml b/src/licensedcode/data/rules/bsd-new_1189.yml
new file mode 100644
index 00000000000..d79b11eca1a
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_1189.yml
@@ -0,0 +1,4 @@
+license_expression: bsd-new
+is_license_text: yes
+notes: Seen in https://github.com/WebKit/WebKit/blob/aff5e1addc0ed7ff4198f0407e692bbddc70d094/Source/cmake/DetectSSE2.cmake
+ See also https://github.com/nexB/scancode-toolkit/issues/3039
diff --git a/src/licensedcode/data/rules/bsd-new_25.RULE b/src/licensedcode/data/rules/bsd-new_25.RULE
index 848e16f02c0..124c6767c74 100644
--- a/src/licensedcode/data/rules/bsd-new_25.RULE
+++ b/src/licensedcode/data/rules/bsd-new_25.RULE
@@ -1,2 +1,2 @@
-Use of this source code is governed by a BSD-style license that can be found in the
-LICENSE file.
\ No newline at end of file
+Use of this source code is i{{ governed by a BSD-style license }} that can be found in the
+LICENSE file.
diff --git a/src/licensedcode/data/rules/bsd-new_25.yml b/src/licensedcode/data/rules/bsd-new_25.yml
index 2ddf0aaa135..9293f12dcbb 100644
--- a/src/licensedcode/data/rules/bsd-new_25.yml
+++ b/src/licensedcode/data/rules/bsd-new_25.yml
@@ -1,6 +1,6 @@
license_expression: bsd-new
is_license_notice: yes
-relevance: 90
+relevance: 95
referenced_filenames:
- LICENSE
notes: Found in Chromium and Go. There are also some use of the same notice with a bsd-simplified
diff --git a/src/licensedcode/data/rules/bsd-new_536.yml b/src/licensedcode/data/rules/bsd-new_536.yml
index b5553308ee6..762bc97966d 100644
--- a/src/licensedcode/data/rules/bsd-new_536.yml
+++ b/src/licensedcode/data/rules/bsd-new_536.yml
@@ -1,5 +1,5 @@
license_expression: bsd-new
is_license_notice: yes
-relevance: 95
+relevance: 100
ignorable_urls:
- https://developers.google.com/open-source/licenses/bsd
diff --git a/src/licensedcode/data/rules/bsd-new_and_apache-2.0_1.RULE b/src/licensedcode/data/rules/bsd-new_and_apache-2.0_1.RULE
new file mode 100644
index 00000000000..2326b3f67bc
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_and_apache-2.0_1.RULE
@@ -0,0 +1 @@
+Please read the LICENSE.BSD file that governs go and LICENSE.APACHE
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_and_apache-2.0_1.yml b/src/licensedcode/data/rules/bsd-new_and_apache-2.0_1.yml
new file mode 100644
index 00000000000..946c79cfb9e
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_and_apache-2.0_1.yml
@@ -0,0 +1,3 @@
+license_expression: bsd-new AND apache-2.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/bsd-new_and_gpl-2.0_with_mysql-floss-exception-2.0_and_gpl-2.0_1.RULE b/src/licensedcode/data/rules/bsd-new_and_gpl-2.0_with_mysql-floss-exception-2.0_and_gpl-2.0_1.RULE
new file mode 100644
index 00000000000..f288d719f35
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_and_gpl-2.0_with_mysql-floss-exception-2.0_and_gpl-2.0_1.RULE
@@ -0,0 +1,7 @@
+/Important licensing note/: This library is BSD-licensed under the terms of the
+MySQL FOSS License Exception
+.
+
+Since this library links against the GPL-licensed 'mysqlclient' library, a
+non-open-source application that uses it /may/ be subject to the terms of the
+GPL.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_and_gpl-2.0_with_mysql-floss-exception-2.0_and_gpl-2.0_1.yml b/src/licensedcode/data/rules/bsd-new_and_gpl-2.0_with_mysql-floss-exception-2.0_and_gpl-2.0_1.yml
new file mode 100644
index 00000000000..8d68e4305a2
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_and_gpl-2.0_with_mysql-floss-exception-2.0_and_gpl-2.0_1.yml
@@ -0,0 +1,4 @@
+license_expression: bsd-new AND gpl-2.0 WITH mysql-floss-exception-2.0 AND gpl-2.0
+is_license_notice: yes
+ignorable_urls:
+ - http://www.mysql.com/about/legal/licensing/foss-exception/
diff --git a/src/licensedcode/data/rules/bsd-new_and_gpl-2.0_with_mysql-floss-exception-2.0_and_gpl-2.0_2.RULE b/src/licensedcode/data/rules/bsd-new_and_gpl-2.0_with_mysql-floss-exception-2.0_and_gpl-2.0_2.RULE
new file mode 100644
index 00000000000..e3e87826969
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_and_gpl-2.0_with_mysql-floss-exception-2.0_and_gpl-2.0_2.RULE
@@ -0,0 +1 @@
+This library is BSD-licensed under the terms of the MySQL FOSS License Exception
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_and_gpl-2.0_with_mysql-floss-exception-2.0_and_gpl-2.0_2.yml b/src/licensedcode/data/rules/bsd-new_and_gpl-2.0_with_mysql-floss-exception-2.0_and_gpl-2.0_2.yml
new file mode 100644
index 00000000000..8c4c9970c04
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_and_gpl-2.0_with_mysql-floss-exception-2.0_and_gpl-2.0_2.yml
@@ -0,0 +1,3 @@
+license_expression: bsd-new AND gpl-2.0 WITH mysql-floss-exception-2.0 AND gpl-2.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/bsd-new_and_other-permissive_10.RULE b/src/licensedcode/data/rules/bsd-new_and_other-permissive_10.RULE
new file mode 100644
index 00000000000..177e58728b5
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_and_other-permissive_10.RULE
@@ -0,0 +1,28 @@
+The 3-clause BSD license (Modified)
+===================================
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ * Neither the name of nor the
+ names of its contributors may be used to endorse or promote products
+ derived from this software without specific prior written permission.
+ However, those names can be used when explicitely stating the use of
+ the Plugin (which can be rephrased as the
+ Plugin).
+
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS" AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_and_other-permissive_10.yml b/src/licensedcode/data/rules/bsd-new_and_other-permissive_10.yml
new file mode 100644
index 00000000000..b7e992212c5
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_and_other-permissive_10.yml
@@ -0,0 +1,3 @@
+license_expression: bsd-new AND other-permissive
+is_license_text: yes
+notes: https://github.com/johnsusek/elastalert-server/blob/master/LICENSE.md
diff --git a/src/licensedcode/data/rules/bsd-new_and_other-permissive_9.RULE b/src/licensedcode/data/rules/bsd-new_and_other-permissive_9.RULE
new file mode 100644
index 00000000000..56423a6c477
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_and_other-permissive_9.RULE
@@ -0,0 +1 @@
+License This project is BSD Licensed with some modifications.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_and_other-permissive_9.yml b/src/licensedcode/data/rules/bsd-new_and_other-permissive_9.yml
new file mode 100644
index 00000000000..13918211f0d
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-new_and_other-permissive_9.yml
@@ -0,0 +1,4 @@
+license_expression: bsd-new AND other-permissive
+is_license_notice: yes
+relevance: 95
+notes: https://github.com/johnsusek/elastalert-server/blob/master/LICENSE.md
diff --git a/src/licensedcode/data/rules/bsd-simplified_312.RULE b/src/licensedcode/data/rules/bsd-simplified_312.RULE
new file mode 100644
index 00000000000..a7d8587a22c
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-simplified_312.RULE
@@ -0,0 +1 @@
+available under the Simplified BSD License; see LICENSE for the full text.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-simplified_312.yml b/src/licensedcode/data/rules/bsd-simplified_312.yml
new file mode 100644
index 00000000000..45a848cb043
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-simplified_312.yml
@@ -0,0 +1,5 @@
+license_expression: bsd-simplified
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/bsd-simplified_313.RULE b/src/licensedcode/data/rules/bsd-simplified_313.RULE
new file mode 100644
index 00000000000..8b7115cb561
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-simplified_313.RULE
@@ -0,0 +1 @@
+available under the Simplified BSD License
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-simplified_313.yml b/src/licensedcode/data/rules/bsd-simplified_313.yml
new file mode 100644
index 00000000000..3b5338540a9
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-simplified_313.yml
@@ -0,0 +1,3 @@
+license_expression: bsd-simplified
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/bsd-simplified_314.RULE b/src/licensedcode/data/rules/bsd-simplified_314.RULE
new file mode 100644
index 00000000000..b9342223b2a
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-simplified_314.RULE
@@ -0,0 +1,2 @@
+Distributed under the Simplified BSD License.
+ See README.md for details.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-simplified_314.yml b/src/licensedcode/data/rules/bsd-simplified_314.yml
new file mode 100644
index 00000000000..66c5b65b897
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-simplified_314.yml
@@ -0,0 +1,5 @@
+license_expression: bsd-simplified
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - README.md
diff --git a/src/licensedcode/data/rules/bsd-simplified_315.RULE b/src/licensedcode/data/rules/bsd-simplified_315.RULE
new file mode 100644
index 00000000000..dc900307ac4
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-simplified_315.RULE
@@ -0,0 +1,3 @@
+### License
+
+available under the Simplified BSD License; see LICENSE for the full text.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-simplified_315.yml b/src/licensedcode/data/rules/bsd-simplified_315.yml
new file mode 100644
index 00000000000..45a848cb043
--- /dev/null
+++ b/src/licensedcode/data/rules/bsd-simplified_315.yml
@@ -0,0 +1,5 @@
+license_expression: bsd-simplified
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/cc-by-3.0_122.RULE b/src/licensedcode/data/rules/cc-by-3.0_122.RULE
new file mode 100644
index 00000000000..139ea4047a5
--- /dev/null
+++ b/src/licensedcode/data/rules/cc-by-3.0_122.RULE
@@ -0,0 +1,3 @@
+License
+
+This theme is licensed under the terms of the Creative Commons Attribution 3.0 Unported
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/cc-by-3.0_122.yml b/src/licensedcode/data/rules/cc-by-3.0_122.yml
new file mode 100644
index 00000000000..1efc1c1f174
--- /dev/null
+++ b/src/licensedcode/data/rules/cc-by-3.0_122.yml
@@ -0,0 +1,3 @@
+license_expression: cc-by-3.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/cc-by-3.0_123.RULE b/src/licensedcode/data/rules/cc-by-3.0_123.RULE
new file mode 100644
index 00000000000..82ecdb7aa40
--- /dev/null
+++ b/src/licensedcode/data/rules/cc-by-3.0_123.RULE
@@ -0,0 +1 @@
+This theme is licensed under the terms of the Creative Commons Attribution 3.0 Unported
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/cc-by-3.0_123.yml b/src/licensedcode/data/rules/cc-by-3.0_123.yml
new file mode 100644
index 00000000000..1efc1c1f174
--- /dev/null
+++ b/src/licensedcode/data/rules/cc-by-3.0_123.yml
@@ -0,0 +1,3 @@
+license_expression: cc-by-3.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/cc-by-3.0_124.RULE b/src/licensedcode/data/rules/cc-by-3.0_124.RULE
new file mode 100644
index 00000000000..6f86f219ab5
--- /dev/null
+++ b/src/licensedcode/data/rules/cc-by-3.0_124.RULE
@@ -0,0 +1 @@
+licensed under the terms of the Creative Commons Attribution 3.0 Unported
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/cc-by-3.0_124.yml b/src/licensedcode/data/rules/cc-by-3.0_124.yml
new file mode 100644
index 00000000000..1efc1c1f174
--- /dev/null
+++ b/src/licensedcode/data/rules/cc-by-3.0_124.yml
@@ -0,0 +1,3 @@
+license_expression: cc-by-3.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/cc-by-3.0_125.RULE b/src/licensedcode/data/rules/cc-by-3.0_125.RULE
new file mode 100644
index 00000000000..fcb4da801d6
--- /dev/null
+++ b/src/licensedcode/data/rules/cc-by-3.0_125.RULE
@@ -0,0 +1 @@
+licensed under the terms of the Creative Commons Attribution 3.0
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/cc-by-3.0_125.yml b/src/licensedcode/data/rules/cc-by-3.0_125.yml
new file mode 100644
index 00000000000..1efc1c1f174
--- /dev/null
+++ b/src/licensedcode/data/rules/cc-by-3.0_125.yml
@@ -0,0 +1,3 @@
+license_expression: cc-by-3.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/cc-by-4.0_11.yml b/src/licensedcode/data/rules/cc-by-4.0_11.yml
index 0d9678cba17..ab11fde3e5c 100644
--- a/src/licensedcode/data/rules/cc-by-4.0_11.yml
+++ b/src/licensedcode/data/rules/cc-by-4.0_11.yml
@@ -1,4 +1,5 @@
license_expression: cc-by-4.0
is_license_reference: yes
is_continuous: yes
+minimum_coverage: 100
relevance: 50
diff --git a/src/licensedcode/data/rules/dco-1.1_16.RULE b/src/licensedcode/data/rules/dco-1.1_16.RULE
new file mode 100644
index 00000000000..abeadc2c147
--- /dev/null
+++ b/src/licensedcode/data/rules/dco-1.1_16.RULE
@@ -0,0 +1,6 @@
+### Sign your work
+
+The sign-off is a simple line at the end of the explanation for the patch. Your
+signature certifies that you wrote the patch or otherwise have the right to pass
+it on as an open-source patch. The rules are pretty simple: if you can certify
+the below (from [d{{ evelopercertificate.org }}]( {{ http://developercertificate.org/ }})):
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/dco-1.1_16.yml b/src/licensedcode/data/rules/dco-1.1_16.yml
new file mode 100644
index 00000000000..786bfb316f5
--- /dev/null
+++ b/src/licensedcode/data/rules/dco-1.1_16.yml
@@ -0,0 +1,4 @@
+license_expression: dco-1.1
+is_license_notice: yes
+ignorable_urls:
+ - http://developercertificate.org/
diff --git a/src/licensedcode/data/rules/dco-1.1_17.RULE b/src/licensedcode/data/rules/dco-1.1_17.RULE
new file mode 100644
index 00000000000..3039f484025
--- /dev/null
+++ b/src/licensedcode/data/rules/dco-1.1_17.RULE
@@ -0,0 +1,3 @@
+Please see https://developercertificate.org/ for
+more info, as well as to make sure that you can attest to the rules listed. Our CI uses the [DCO Github app](https://github.com/apps/dco) to ensure
+that all commits in a given PR are signed-off.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/dco-1.1_17.yml b/src/licensedcode/data/rules/dco-1.1_17.yml
new file mode 100644
index 00000000000..078b8bdf4c1
--- /dev/null
+++ b/src/licensedcode/data/rules/dco-1.1_17.yml
@@ -0,0 +1,5 @@
+license_expression: dco-1.1
+is_license_notice: yes
+ignorable_urls:
+ - https://developercertificate.org/
+ - https://github.com/apps/dco
diff --git a/src/licensedcode/data/rules/false-positive_134.RULE b/src/licensedcode/data/rules/false-positive_134.RULE
new file mode 100644
index 00000000000..f635c530cf5
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_134.RULE
@@ -0,0 +1,2 @@
+Some helpers are only available if
+the license is deemed compatible with the GPL.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_134.yml b/src/licensedcode/data/rules/false-positive_134.yml
new file mode 100644
index 00000000000..8a57c52b7c5
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_134.yml
@@ -0,0 +1,2 @@
+is_false_positive: yes
+notes: Comment in ebpf in github.com/cilium/ebpf/prog.go
diff --git a/src/licensedcode/data/rules/false-positive_139.RULE b/src/licensedcode/data/rules/false-positive_139.RULE
new file mode 100644
index 00000000000..f65648cb08c
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_139.RULE
@@ -0,0 +1 @@
+uint32 gpl_compatible uint32
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_139.yml b/src/licensedcode/data/rules/false-positive_139.yml
new file mode 100644
index 00000000000..8cce8d4ddab
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_139.yml
@@ -0,0 +1,2 @@
+is_false_positive: yes
+notes: Comment in ebpf in github.com/cilium/ebpf/
diff --git a/src/licensedcode/data/rules/false-positive_141.RULE b/src/licensedcode/data/rules/false-positive_141.RULE
new file mode 100644
index 00000000000..f97643b6fdc
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_141.RULE
@@ -0,0 +1 @@
+License *License `json:"license,omitempty"`
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_141.yml b/src/licensedcode/data/rules/false-positive_141.yml
new file mode 100644
index 00000000000..6b206ef4d3c
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_141.yml
@@ -0,0 +1,2 @@
+is_false_positive: yes
+notes: not a license statement
diff --git a/src/licensedcode/data/rules/false-positive_144.RULE b/src/licensedcode/data/rules/false-positive_144.RULE
new file mode 100644
index 00000000000..01b5e86bfe7
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_144.RULE
@@ -0,0 +1 @@
+shim v2 unless explicitly noted otherwise
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_144.yml b/src/licensedcode/data/rules/false-positive_144.yml
new file mode 100644
index 00000000000..6b206ef4d3c
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_144.yml
@@ -0,0 +1,2 @@
+is_false_positive: yes
+notes: not a license statement
diff --git a/src/licensedcode/data/rules/false-positive_153.RULE b/src/licensedcode/data/rules/false-positive_153.RULE
new file mode 100644
index 00000000000..66bcd39cc6f
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_153.RULE
@@ -0,0 +1 @@
+gpl_compatible uint32
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_153.yml b/src/licensedcode/data/rules/false-positive_153.yml
new file mode 100644
index 00000000000..b11b2ec350c
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_153.yml
@@ -0,0 +1,2 @@
+is_false_positive: yes
+notes: using gpl in a variable name is not a license statement
diff --git a/src/licensedcode/data/rules/false-positive_156.RULE b/src/licensedcode/data/rules/false-positive_156.RULE
new file mode 100644
index 00000000000..57073ec17b7
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_156.RULE
@@ -0,0 +1 @@
+cc0 - cff
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_156.yml b/src/licensedcode/data/rules/false-positive_156.yml
new file mode 100644
index 00000000000..ba381399f85
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_156.yml
@@ -0,0 +1,2 @@
+is_false_positive: yes
+notes: a byte array is not a CC0-1.0 reference
diff --git a/src/licensedcode/data/rules/false-positive_171.RULE b/src/licensedcode/data/rules/false-positive_171.RULE
new file mode 100644
index 00000000000..bf6c52e1eba
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_171.RULE
@@ -0,0 +1 @@
+--exclude="*.gpl.c"
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_171.yml b/src/licensedcode/data/rules/false-positive_171.yml
new file mode 100644
index 00000000000..3c58607c78f
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_171.yml
@@ -0,0 +1,2 @@
+is_false_positive: yes
+notes: some instruction and not a license regference
diff --git a/src/licensedcode/data/rules/false-positive_182.RULE b/src/licensedcode/data/rules/false-positive_182.RULE
new file mode 100644
index 00000000000..5bd3b8f8fec
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_182.RULE
@@ -0,0 +1 @@
+permission is granted for cgroups
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_182.yml b/src/licensedcode/data/rules/false-positive_182.yml
new file mode 100644
index 00000000000..1030d25e776
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_182.yml
@@ -0,0 +1,2 @@
+is_false_positive: yes
+notes: this is not a license permission
diff --git a/src/licensedcode/data/rules/false-positive_186.RULE b/src/licensedcode/data/rules/false-positive_186.RULE
new file mode 100644
index 00000000000..8019a57bfd9
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_186.RULE
@@ -0,0 +1 @@
+may not be modified on struct
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_186.yml b/src/licensedcode/data/rules/false-positive_186.yml
new file mode 100644
index 00000000000..2d08565be02
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_186.yml
@@ -0,0 +1,2 @@
+is_false_positive: yes
+notes: this is not a license statement
diff --git a/src/licensedcode/data/rules/generic-cla_18.RULE b/src/licensedcode/data/rules/generic-cla_18.RULE
new file mode 100644
index 00000000000..24e888e51f9
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_18.RULE
@@ -0,0 +1,20 @@
+## Contributor License Agreement ##
+
+Contributions to any Google project must be accompanied by a Contributor
+License Agreement. This is not a copyright **assignment**, it simply gives
+Google permission to use and redistribute your contributions as part of the
+project.
+
+ * If you are an individual writing original source code and you're sure you
+ own the intellectual property, then you'll need to sign an [individual
+ CLA][].
+
+ * If you work for a company that wants to allow you to contribute your work,
+ then you'll need to sign a [corporate CLA][].
+
+You generally only need to submit a CLA once, so if you've already submitted
+one (even if it was for a different project), you probably don't need to do it
+again.
+
+[individual CLA]: https://developers.google.com/open-source/cla/individual
+[corporate CLA]: https://developers.google.com/open-source/cla/corporate
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/generic-cla_18.yml b/src/licensedcode/data/rules/generic-cla_18.yml
new file mode 100644
index 00000000000..ade665c8042
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_18.yml
@@ -0,0 +1,5 @@
+license_expression: generic-cla
+is_license_notice: yes
+ignorable_urls:
+ - https://developers.google.com/open-source/cla/corporate
+ - https://developers.google.com/open-source/cla/individual
diff --git a/src/licensedcode/data/rules/generic-cla_19.RULE b/src/licensedcode/data/rules/generic-cla_19.RULE
new file mode 100644
index 00000000000..30d4cab99f6
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_19.RULE
@@ -0,0 +1,6 @@
+### Legal requirements
+
+ In order to protect both you and ourselves, you will need to sign the
+ [Contributor License Agreement](https://cla.developers.google.com/clas).
+
+ You may have already signed it for other Google projects.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/generic-cla_19.yml b/src/licensedcode/data/rules/generic-cla_19.yml
new file mode 100644
index 00000000000..ffbc68e1d70
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_19.yml
@@ -0,0 +1,4 @@
+license_expression: generic-cla
+is_license_notice: yes
+ignorable_urls:
+ - https://cla.developers.google.com/clas
diff --git a/src/licensedcode/data/rules/generic-cla_20.RULE b/src/licensedcode/data/rules/generic-cla_20.RULE
new file mode 100644
index 00000000000..1113a964e37
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_20.RULE
@@ -0,0 +1,6 @@
+Names should be added to this file only after verifying that
+ the individual or the individual's organization has agreed to
+ the appropriate Contributor License Agreement, found here:
+
+ http://code.google.com/legal/individual-cla-v1.0.html
+ http://code.google.com/legal/corporate-cla-v1.0.html
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/generic-cla_20.yml b/src/licensedcode/data/rules/generic-cla_20.yml
new file mode 100644
index 00000000000..897edc5ee9c
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_20.yml
@@ -0,0 +1,5 @@
+license_expression: generic-cla
+is_license_notice: yes
+ignorable_urls:
+ - http://code.google.com/legal/corporate-cla-v1.0.html
+ - http://code.google.com/legal/individual-cla-v1.0.html
diff --git a/src/licensedcode/data/rules/generic-cla_21.RULE b/src/licensedcode/data/rules/generic-cla_21.RULE
new file mode 100644
index 00000000000..3dbf9da282d
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_21.RULE
@@ -0,0 +1,2 @@
+Before your code can be accepted into the project you must also sign the
+[Individual Contributor License Agreement][1].
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/generic-cla_21.yml b/src/licensedcode/data/rules/generic-cla_21.yml
new file mode 100644
index 00000000000..d0856feb3e3
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_21.yml
@@ -0,0 +1,2 @@
+license_expression: generic-cla
+is_license_notice: yes
diff --git a/src/licensedcode/data/rules/generic-cla_22.RULE b/src/licensedcode/data/rules/generic-cla_22.RULE
new file mode 100644
index 00000000000..b4bc5378138
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_22.RULE
@@ -0,0 +1,2 @@
+http://code.google.com/legal/individual-cla-v1.0.html
+ http://code.google.com/legal/corporate-cla-v1.0.html
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/generic-cla_22.yml b/src/licensedcode/data/rules/generic-cla_22.yml
new file mode 100644
index 00000000000..09fc896718d
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_22.yml
@@ -0,0 +1,5 @@
+license_expression: generic-cla
+is_license_reference: yes
+ignorable_urls:
+ - http://code.google.com/legal/corporate-cla-v1.0.html
+ - http://code.google.com/legal/individual-cla-v1.0.html
diff --git a/src/licensedcode/data/rules/generic-cla_23.RULE b/src/licensedcode/data/rules/generic-cla_23.RULE
new file mode 100644
index 00000000000..81ccc8e2960
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_23.RULE
@@ -0,0 +1 @@
+http://code.google.com/legal/individual-cla-v1.0.html
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/generic-cla_23.yml b/src/licensedcode/data/rules/generic-cla_23.yml
new file mode 100644
index 00000000000..b446c014078
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_23.yml
@@ -0,0 +1,5 @@
+license_expression: generic-cla
+is_license_reference: yes
+relevance: 100
+ignorable_urls:
+ - http://code.google.com/legal/individual-cla-v1.0.html
diff --git a/src/licensedcode/data/rules/generic-cla_24.RULE b/src/licensedcode/data/rules/generic-cla_24.RULE
new file mode 100644
index 00000000000..fa61c945f1f
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_24.RULE
@@ -0,0 +1,2 @@
+[Contributor License Agreement](https://git.k8s.io/community/CLA.md) Kubernetes projects require that you sign a Contributor License Agreement (CLA) before we can
+ accept your pull requests
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/generic-cla_24.yml b/src/licensedcode/data/rules/generic-cla_24.yml
new file mode 100644
index 00000000000..783893bd0d8
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_24.yml
@@ -0,0 +1,4 @@
+license_expression: generic-cla
+is_license_notice: yes
+ignorable_urls:
+ - https://git.k8s.io/community/CLA.md
diff --git a/src/licensedcode/data/rules/generic-cla_25.RULE b/src/licensedcode/data/rules/generic-cla_25.RULE
new file mode 100644
index 00000000000..6c4ea82adae
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_25.RULE
@@ -0,0 +1 @@
+http://code.google.com/legal/corporate-cla-v1.0.html
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/generic-cla_25.yml b/src/licensedcode/data/rules/generic-cla_25.yml
new file mode 100644
index 00000000000..42aaf355b94
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_25.yml
@@ -0,0 +1,5 @@
+license_expression: generic-cla
+is_license_reference: yes
+relevance: 100
+ignorable_urls:
+ - http://code.google.com/legal/corporate-cla-v1.0.html
diff --git a/src/licensedcode/data/rules/generic-cla_26.RULE b/src/licensedcode/data/rules/generic-cla_26.RULE
new file mode 100644
index 00000000000..e79ed0e8137
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_26.RULE
@@ -0,0 +1,4 @@
+## Legal requirements
+
+In order to protect both you and ourselves, you will need to sign the
+[Contributor License Agreement](https://identity.linuxfoundation.org/projects/cncf).
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/generic-cla_26.yml b/src/licensedcode/data/rules/generic-cla_26.yml
new file mode 100644
index 00000000000..287aa90a9bb
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_26.yml
@@ -0,0 +1,4 @@
+license_expression: generic-cla
+is_license_notice: yes
+ignorable_urls:
+ - https://identity.linuxfoundation.org/projects/cncf
diff --git a/src/licensedcode/data/rules/generic-cla_27.RULE b/src/licensedcode/data/rules/generic-cla_27.RULE
new file mode 100644
index 00000000000..fa0809c4182
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_27.RULE
@@ -0,0 +1,11 @@
+## Contributor License Agreement
+
+Contributions to this project must be accompanied by a Contributor License
+Agreement. You (or your employer) retain the copyright to your contribution,
+this simply gives us permission to use and redistribute your contributions as
+part of the project. Head over to to see
+your current agreements on file or to sign a new one.
+
+You generally only need to submit a CLA once, so if you've already submitted one
+(even if it was for a different project), you probably don't need to do it
+again.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/generic-cla_27.yml b/src/licensedcode/data/rules/generic-cla_27.yml
new file mode 100644
index 00000000000..488386a1880
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_27.yml
@@ -0,0 +1,4 @@
+license_expression: generic-cla
+is_license_notice: yes
+ignorable_urls:
+ - https://cla.developers.google.com/
diff --git a/src/licensedcode/data/rules/generic-cla_28.RULE b/src/licensedcode/data/rules/generic-cla_28.RULE
new file mode 100644
index 00000000000..24d3d60b52a
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_28.RULE
@@ -0,0 +1,9 @@
+## Contributing
+
+This project welcomes contributions and suggestions. Most contributions require you to agree to a
+Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
+the rights to use your contribution. For details, visit https://cla.microsoft.com.
+
+When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
+a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
+provided by the bot. You will only need to do this once across all repos using our CLA.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/generic-cla_28.yml b/src/licensedcode/data/rules/generic-cla_28.yml
new file mode 100644
index 00000000000..8306744dbcb
--- /dev/null
+++ b/src/licensedcode/data/rules/generic-cla_28.yml
@@ -0,0 +1,4 @@
+license_expression: generic-cla
+is_license_notice: yes
+ignorable_urls:
+ - https://cla.microsoft.com/
diff --git a/src/licensedcode/data/rules/gpl-1.0-plus_565.RULE b/src/licensedcode/data/rules/gpl-1.0-plus_565.RULE
new file mode 100644
index 00000000000..fec8b606198
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-1.0-plus_565.RULE
@@ -0,0 +1 @@
+{{ License: internal.NewStringPointer("GPL")}}
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/gpl-1.0-plus_565.yml b/src/licensedcode/data/rules/gpl-1.0-plus_565.yml
new file mode 100644
index 00000000000..9ed111253a1
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-1.0-plus_565.yml
@@ -0,0 +1,5 @@
+license_expression: gpl-1.0-plus
+is_license_reference: yes
+is_continuous: yes
+relevance: 100
+notes: Seen in ebpf in github.com/cilium/ebpf/ and may be accessing GPL-only kernel symbols
diff --git a/src/licensedcode/data/rules/gpl-2.0_1382.RULE b/src/licensedcode/data/rules/gpl-2.0_1382.RULE
new file mode 100644
index 00000000000..baf90c31f4d
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_1382.RULE
@@ -0,0 +1,2 @@
+under the terms of the GNU General Public License version 2 as
+published by the Free Software Foundation.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/gpl-2.0_1382.yml b/src/licensedcode/data/rules/gpl-2.0_1382.yml
new file mode 100644
index 00000000000..00175e61477
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_1382.yml
@@ -0,0 +1,2 @@
+license_expression: gpl-2.0
+is_license_notice: yes
diff --git a/src/licensedcode/data/rules/gpl-2.0_1383.RULE b/src/licensedcode/data/rules/gpl-2.0_1383.RULE
new file mode 100644
index 00000000000..b45d8134c1a
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_1383.RULE
@@ -0,0 +1 @@
+under the terms of the GNU General Public License version 2
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/gpl-2.0_1383.yml b/src/licensedcode/data/rules/gpl-2.0_1383.yml
new file mode 100644
index 00000000000..40bcbb97725
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_1383.yml
@@ -0,0 +1,3 @@
+license_expression: gpl-2.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/gpl-2.0_1384.RULE b/src/licensedcode/data/rules/gpl-2.0_1384.RULE
new file mode 100644
index 00000000000..09f9f5b0c05
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_1384.RULE
@@ -0,0 +1 @@
+image-builder/nsdax.gpl.c
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/gpl-2.0_1384.yml b/src/licensedcode/data/rules/gpl-2.0_1384.yml
new file mode 100644
index 00000000000..77c4a2ab601
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_1384.yml
@@ -0,0 +1,7 @@
+license_expression: gpl-2.0
+is_license_reference: yes
+relevance: 100
+minimum_coverage: 100
+referenced_filenames:
+ - nsdax.gpl.c
+notes: See https://github.com/kata-containers/kata-containers/blob/main/tools/osbuilder/image-builder/nsdax.gpl.c
diff --git a/src/licensedcode/data/rules/gpl-2.0_1385.RULE b/src/licensedcode/data/rules/gpl-2.0_1385.RULE
new file mode 100644
index 00000000000..1dd2c06274e
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_1385.RULE
@@ -0,0 +1,4 @@
+// License of the program. Some helpers are only available if
+// the license is deemed compatible with the GPL.
+//
+// See https://www.kernel.org/doc/html/latest/process/license-rules.html#id1
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/gpl-2.0_1385.yml b/src/licensedcode/data/rules/gpl-2.0_1385.yml
new file mode 100644
index 00000000000..4ff7bb7ad47
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_1385.yml
@@ -0,0 +1,4 @@
+license_expression: gpl-2.0
+is_license_reference: yes
+ignorable_urls:
+ - https://www.kernel.org/doc/html/latest/process/license-rules.html#id1
diff --git a/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_3.RULE b/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_3.RULE
new file mode 100644
index 00000000000..4b8d786435f
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_3.RULE
@@ -0,0 +1,27 @@
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it would be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * Further, this software is distributed without any warranty that it is
+ * free of the rightful claim of any third person regarding infringement
+ * or the like. Any license provided herein, whether implied or
+ * otherwise, applies only to this software file. Patent licenses, if
+ * any, provided herein do not apply to combinations of this program with
+ * other software, or any other product whatsoever.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
+ * Mountain View, CA 94043, or:
+ *
+ * http://www.sgi.com
+ *
+ * For further information regarding this notice, see:
+ *
+ * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
diff --git a/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_3.yml b/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_3.yml
new file mode 100644
index 00000000000..1d5ad06793a
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_3.yml
@@ -0,0 +1,6 @@
+license_expression: gpl-2.0 AND patent-disclaimer
+is_license_notice: yes
+ignorable_urls:
+ - http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
+ - http://www.sgi.com/
+
diff --git a/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_4.RULE b/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_4.RULE
new file mode 100644
index 00000000000..46b8c31e3f6
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_4.RULE
@@ -0,0 +1,14 @@
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it would be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * Further, this software is distributed without any warranty that it is
+ * free of the rightful claim of any third person regarding infringement
+ * or the like. Any license provided herein, whether implied or
+ * otherwise, applies only to this software file. Patent licenses, if
+ * any, provided herein do not apply to combinations of this program with
+ * other software, or any other product whatsoever.
diff --git a/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_4.yml b/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_4.yml
new file mode 100644
index 00000000000..46b062e1f58
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_4.yml
@@ -0,0 +1,2 @@
+license_expression: gpl-2.0 AND patent-disclaimer
+is_license_notice: yes
diff --git a/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_5.RULE b/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_5.RULE
new file mode 100644
index 00000000000..8d3e317f001
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_5.RULE
@@ -0,0 +1,17 @@
+* This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it would be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * Further, this software is distributed without any warranty that it is
+ * free of the rightful claim of any third person regarding infringement
+ * or the like. Any license provided herein, whether implied or
+ * otherwise, applies only to this software file. Patent licenses, if
+ * any, provided herein do not apply to combinations of this program with
+ * other software, or any other product whatsoever.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_5.yml b/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_5.yml
new file mode 100644
index 00000000000..46b062e1f58
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_5.yml
@@ -0,0 +1,2 @@
+license_expression: gpl-2.0 AND patent-disclaimer
+is_license_notice: yes
diff --git a/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_6.RULE b/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_6.RULE
new file mode 100644
index 00000000000..2aa5cc4f93d
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_6.RULE
@@ -0,0 +1,19 @@
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of version 2 of the GNU General Public License as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it would be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+#
+# Further, this software is distributed without any warranty that it is
+# free of the rightful claim of any third person regarding infringement
+# or the like. Any license provided herein, whether implied or
+# otherwise, applies only to this software file. Patent licenses, if
+# any, provided herein do not apply to combinations of this program with
+# other software, or any other product whatsoever.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.
+# If not, see
+#
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_6.yml b/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_6.yml
new file mode 100644
index 00000000000..b342265f6a0
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_6.yml
@@ -0,0 +1,4 @@
+license_expression: gpl-2.0 AND patent-disclaimer
+is_license_notice: yes
+ignorable_urls:
+ - http://www.gnu.org/licenses/gpl-2.0.html
diff --git a/src/licensedcode/data/rules/gpl-3.0-plus_553.RULE b/src/licensedcode/data/rules/gpl-3.0-plus_553.RULE
new file mode 100644
index 00000000000..d30a0f41caf
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-3.0-plus_553.RULE
@@ -0,0 +1,10 @@
+This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License for more details.
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program. If not, see .
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/gpl-3.0-plus_553.yml b/src/licensedcode/data/rules/gpl-3.0-plus_553.yml
new file mode 100644
index 00000000000..26f77989375
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-3.0-plus_553.yml
@@ -0,0 +1,7 @@
+license_expression: gpl-3.0-plus
+is_license_notice: yes
+relevance: 99
+minimum_coverage: 98
+notes: confusing reference to the LGPL in a GPL notice
+ignorable_urls:
+ - https://www.gnu.org/licenses/
diff --git a/src/licensedcode/data/rules/gpl-3.0_528.RULE b/src/licensedcode/data/rules/gpl-3.0_528.RULE
new file mode 100644
index 00000000000..0a0666e6893
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-3.0_528.RULE
@@ -0,0 +1 @@
+licensed to the public under the terms of the GPLv3.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/gpl-3.0_528.yml b/src/licensedcode/data/rules/gpl-3.0_528.yml
new file mode 100644
index 00000000000..2774025859b
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-3.0_528.yml
@@ -0,0 +1,3 @@
+license_expression: gpl-3.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/homebrewed_1.RULE b/src/licensedcode/data/rules/homebrewed_1.RULE
new file mode 100644
index 00000000000..0196bcd5a9d
--- /dev/null
+++ b/src/licensedcode/data/rules/homebrewed_1.RULE
@@ -0,0 +1,32 @@
+Redistribution and use in source and binary forms of the software as well
+as documentation, with or without modification, are permitted provided
+that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+
+* The names of the contributors may not be used to endorse or
+ promote products derived from this software without specific
+ prior written permission.
+
+* If you meet the authors of this software in person and you want to
+ pay them a beer, you're encouraged to do so. Please, do. If you have
+ homebrewed beer, this works as well (may even be better).
+
+THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
+NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
+OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGE.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/homebrewed_1.yml b/src/licensedcode/data/rules/homebrewed_1.yml
new file mode 100644
index 00000000000..02b68b82e1f
--- /dev/null
+++ b/src/licensedcode/data/rules/homebrewed_1.yml
@@ -0,0 +1,4 @@
+license_expression: homebrewed
+is_license_text: yes
+notes: Seen in https://github.com/spiral-project/ihatemoney/blob/master/LICENSE This is a bsd-new
+ with an extra beer-ware-like clause
diff --git a/src/licensedcode/data/rules/lgpl-2.0-plus_and_patent-disclaimer_1.RULE b/src/licensedcode/data/rules/lgpl-2.0-plus_and_patent-disclaimer_1.RULE
new file mode 100644
index 00000000000..f6839a0e75d
--- /dev/null
+++ b/src/licensedcode/data/rules/lgpl-2.0-plus_and_patent-disclaimer_1.RULE
@@ -0,0 +1,20 @@
+This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; {{ either
+ version 2 of the License, or (at your option) any later version.}}
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+ .
+ Further, this software is distributed without any warranty that it is
+ free of the rightful claim of any third person regarding infringement
+ or the like. Any license provided herein, whether implied or
+ otherwise, applies only to this software file. Patent licenses, if
+ any, provided herein do not apply to combinations of this program with
+ other software, or any other product whatsoever.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/lgpl-2.0-plus_and_patent-disclaimer_1.yml b/src/licensedcode/data/rules/lgpl-2.0-plus_and_patent-disclaimer_1.yml
new file mode 100644
index 00000000000..d48461af03b
--- /dev/null
+++ b/src/licensedcode/data/rules/lgpl-2.0-plus_and_patent-disclaimer_1.yml
@@ -0,0 +1,2 @@
+license_expression: lgpl-2.0-plus AND patent-disclaimer
+is_license_notice: yes
diff --git a/src/licensedcode/data/rules/lgpl-2.1-plus_and_patent-disclaimer_1.RULE b/src/licensedcode/data/rules/lgpl-2.1-plus_and_patent-disclaimer_1.RULE
new file mode 100644
index 00000000000..ca96e192964
--- /dev/null
+++ b/src/licensedcode/data/rules/lgpl-2.1-plus_and_patent-disclaimer_1.RULE
@@ -0,0 +1,20 @@
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+{{ version 2.1 of the License, or (at your option) any later version. }}
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+Further, this software is distributed without any warranty that it is
+free of the rightful claim of any third person regarding infringement
+or the like. Any license provided herein, whether implied or
+otherwise, applies only to this software file. {{ Patent licenses, if
+any, provided herein do not apply to combinations of this program with
+other software, }} or any other product whatsoever.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/lgpl-2.1-plus_and_patent-disclaimer_1.yml b/src/licensedcode/data/rules/lgpl-2.1-plus_and_patent-disclaimer_1.yml
new file mode 100644
index 00000000000..fdafa73a16e
--- /dev/null
+++ b/src/licensedcode/data/rules/lgpl-2.1-plus_and_patent-disclaimer_1.yml
@@ -0,0 +1,3 @@
+license_expression: lgpl-2.1-plus AND patent-disclaimer
+is_license_notice: yes
+notes: Seen in https://mevislab.github.io/pythonqt/PythonQtCppWrapperFactory_8h_source.html
diff --git a/src/licensedcode/data/rules/lgpl-2.1-plus_and_patent-disclaimer_2.RULE b/src/licensedcode/data/rules/lgpl-2.1-plus_and_patent-disclaimer_2.RULE
new file mode 100644
index 00000000000..c01ec0c863a
--- /dev/null
+++ b/src/licensedcode/data/rules/lgpl-2.1-plus_and_patent-disclaimer_2.RULE
@@ -0,0 +1,29 @@
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; {{ either
+version 2.1 of the License, or (at your option) any later version. }}
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+Further, this software is distributed without any warranty that it is
+free of the rightful claim of any third person regarding infringement
+or the like. Any license provided herein, whether implied or
+otherwise, applies only to this software file. Patent licenses, if
+any, provided herein do not apply to combinations of this program with
+other software, or any other product whatsoever.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
+Mountain View, CA 94043, or:
+
+http://www.sgi.com
+
+For further information regarding this notice, see:
+
+http://oss.sgi.com/projects/GenInfo/NoticeExplan/
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/lgpl-2.1-plus_and_patent-disclaimer_2.yml b/src/licensedcode/data/rules/lgpl-2.1-plus_and_patent-disclaimer_2.yml
new file mode 100644
index 00000000000..8a6e83360cf
--- /dev/null
+++ b/src/licensedcode/data/rules/lgpl-2.1-plus_and_patent-disclaimer_2.yml
@@ -0,0 +1,6 @@
+license_expression: lgpl-2.1-plus AND patent-disclaimer
+is_license_notice: yes
+notes: Seen in Athena
+ignorable_urls:
+ - http://oss.sgi.com/projects/GenInfo/NoticeExplan/
+ - http://www.sgi.com/
diff --git a/src/licensedcode/data/rules/lgpl-2.1_417.RULE b/src/licensedcode/data/rules/lgpl-2.1_417.RULE
new file mode 100644
index 00000000000..346eb373a17
--- /dev/null
+++ b/src/licensedcode/data/rules/lgpl-2.1_417.RULE
@@ -0,0 +1 @@
+images provided with this release are statically linked with the following [GNU LGPL-2.1][lgpl-2.1] licensed library.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/lgpl-2.1_417.yml b/src/licensedcode/data/rules/lgpl-2.1_417.yml
new file mode 100644
index 00000000000..2f63b78d973
--- /dev/null
+++ b/src/licensedcode/data/rules/lgpl-2.1_417.yml
@@ -0,0 +1,2 @@
+license_expression: lgpl-2.1
+is_license_notice: yes
diff --git a/src/licensedcode/data/rules/lgpl-2.1_418.RULE b/src/licensedcode/data/rules/lgpl-2.1_418.RULE
new file mode 100644
index 00000000000..06c194c3893
--- /dev/null
+++ b/src/licensedcode/data/rules/lgpl-2.1_418.RULE
@@ -0,0 +1 @@
+However, in order to comply with the LGPL-2.1 (§6(a)), we attach the complete source code for the library.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/lgpl-2.1_418.yml b/src/licensedcode/data/rules/lgpl-2.1_418.yml
new file mode 100644
index 00000000000..2f63b78d973
--- /dev/null
+++ b/src/licensedcode/data/rules/lgpl-2.1_418.yml
@@ -0,0 +1,2 @@
+license_expression: lgpl-2.1
+is_license_notice: yes
diff --git a/src/licensedcode/data/rules/lgpl-2.1_419.RULE b/src/licensedcode/data/rules/lgpl-2.1_419.RULE
new file mode 100644
index 00000000000..485c2941582
--- /dev/null
+++ b/src/licensedcode/data/rules/lgpl-2.1_419.RULE
@@ -0,0 +1 @@
+[lgpl-2.1]: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/lgpl-2.1_419.yml b/src/licensedcode/data/rules/lgpl-2.1_419.yml
new file mode 100644
index 00000000000..6522f77f688
--- /dev/null
+++ b/src/licensedcode/data/rules/lgpl-2.1_419.yml
@@ -0,0 +1,5 @@
+license_expression: lgpl-2.1
+is_license_reference: yes
+relevance: 100
+ignorable_urls:
+ - https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
diff --git a/src/licensedcode/data/rules/lgpl-2.1_and_patent-disclaimer_1.RULE b/src/licensedcode/data/rules/lgpl-2.1_and_patent-disclaimer_1.RULE
new file mode 100644
index 00000000000..06e3ad01646
--- /dev/null
+++ b/src/licensedcode/data/rules/lgpl-2.1_and_patent-disclaimer_1.RULE
@@ -0,0 +1,28 @@
+This program is free software; you can redistribute it and/or modify it
+ under the terms of {{ version 2.1 of the GNU Lesser General Public License }}
+ as published by the Free Software Foundation.
+
+ This program is distributed in the hope that it would be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ Further, this software is distributed without any warranty that it is
+ free of the rightful claim of any third person regarding infringement
+ or the like. Any license provided herein, whether implied or
+ otherwise, applies only to this software file. Patent licenses, if
+ any, provided herein do not apply to combinations of this program with
+ other software, or any other product whatsoever.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this program; if not, write the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307,
+ USA.
+
+ Contact information: Silicon Graphics, Inc., 1500 Crittenden Lane,
+ Mountain View, CA 94043, or:
+
+ http://www.sgi.com
+
+ For further information regarding this notice, see:
+
+ http://oss.sgi.com/projects/GenInfo/NoticeExplan
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/lgpl-2.1_and_patent-disclaimer_1.yml b/src/licensedcode/data/rules/lgpl-2.1_and_patent-disclaimer_1.yml
new file mode 100644
index 00000000000..3bc38195182
--- /dev/null
+++ b/src/licensedcode/data/rules/lgpl-2.1_and_patent-disclaimer_1.yml
@@ -0,0 +1,6 @@
+license_expression: lgpl-2.1 AND patent-disclaimer
+is_license_notice: yes
+notes: Seen in libdwarf
+ignorable_urls:
+ - http://oss.sgi.com/projects/GenInfo/NoticeExplan
+ - http://www.sgi.com/
diff --git a/src/licensedcode/data/rules/lgpl-2.1_and_patent-disclaimer_2.RULE b/src/licensedcode/data/rules/lgpl-2.1_and_patent-disclaimer_2.RULE
new file mode 100644
index 00000000000..f63c8862259
--- /dev/null
+++ b/src/licensedcode/data/rules/lgpl-2.1_and_patent-disclaimer_2.RULE
@@ -0,0 +1,16 @@
+This program is free software; you can redistribute it and/or modify it
+ under the terms of version 2.1 of the GNU Lesser General Public License
+ as published by the Free Software Foundation.
+ This program is distributed in the hope that it would be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ Further, this software is distributed without any warranty that it is
+ free of the rightful claim of any third person regarding infringement
+ or the like. Any license provided herein, whether implied or
+ otherwise, applies only to this software file. Patent licenses, if
+ any, provided herein do not apply to combinations of this program with
+ other software, or any other product whatsoever.
+ You should have received a copy of the GNU Lesser General Public
+ License along with this program; if not, write the Free Software
+ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301,
+ USA.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/lgpl-2.1_and_patent-disclaimer_2.yml b/src/licensedcode/data/rules/lgpl-2.1_and_patent-disclaimer_2.yml
new file mode 100644
index 00000000000..69b2f1422ae
--- /dev/null
+++ b/src/licensedcode/data/rules/lgpl-2.1_and_patent-disclaimer_2.yml
@@ -0,0 +1,2 @@
+license_expression: lgpl-2.1 AND patent-disclaimer
+is_license_notice: yes
diff --git a/src/licensedcode/data/rules/lgpl-2.1_and_patent-disclaimer_3.RULE b/src/licensedcode/data/rules/lgpl-2.1_and_patent-disclaimer_3.RULE
new file mode 100644
index 00000000000..98507e31eaf
--- /dev/null
+++ b/src/licensedcode/data/rules/lgpl-2.1_and_patent-disclaimer_3.RULE
@@ -0,0 +1,19 @@
+This program is free software; you can redistribute it and/or modify it
+ under the terms of version 2.1 of the GNU Lesser General Public License
+ published by the Free Software Foundation.
+ This program is distributed in the hope that it would be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ Further, this software is distributed without any warranty that it is
+ free of the rightful claim of any third person regarding infringement
+ or the like. Any license provided herein, whether implied or
+ otherwise, applies only to this software file. Patent licenses, if
+ any, provided herein do not apply to combinations of this program with
+ other software, or any other product whatsoever.
+ You should have received a copy of the GNU Lesser General Public License along
+ with this program; if not, write the Free Software Foundation, Inc., 51
+ Franklin Street - Fifth Floor, Boston MA 02110-1301, USA.
+
+The address of the Free Software Foundation is
+ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ Boston, MA 02110-1301, USA.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/lgpl-2.1_and_patent-disclaimer_3.yml b/src/licensedcode/data/rules/lgpl-2.1_and_patent-disclaimer_3.yml
new file mode 100644
index 00000000000..69b2f1422ae
--- /dev/null
+++ b/src/licensedcode/data/rules/lgpl-2.1_and_patent-disclaimer_3.yml
@@ -0,0 +1,2 @@
+license_expression: lgpl-2.1 AND patent-disclaimer
+is_license_notice: yes
diff --git a/src/licensedcode/data/rules/license-intro_63.RULE b/src/licensedcode/data/rules/license-intro_63.RULE
new file mode 100644
index 00000000000..0c279f7e89c
--- /dev/null
+++ b/src/licensedcode/data/rules/license-intro_63.RULE
@@ -0,0 +1,6 @@
+includes a number of subcomponents
+with separate copyright notices and license terms. The product that
+includes this file does not necessarily use all the open source
+subcomponents referred to below. Your use of the source
+code for these subcomponents is subject to the terms and
+conditions of the following licenses.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/license-intro_63.yml b/src/licensedcode/data/rules/license-intro_63.yml
new file mode 100644
index 00000000000..e5651b64f12
--- /dev/null
+++ b/src/licensedcode/data/rules/license-intro_63.yml
@@ -0,0 +1,3 @@
+license_expression: unknown-license-reference
+is_license_intro: yes
+notes: See https://raw.githubusercontent.com/spring-projects/spring-framework/main/src/docs/dist/license.txt
diff --git a/src/licensedcode/data/rules/linux-syscall-exception-gpl_2.yml b/src/licensedcode/data/rules/linux-syscall-exception-gpl_2.yml
index 4fdd02dcb8e..9c6f8125d98 100644
--- a/src/licensedcode/data/rules/linux-syscall-exception-gpl_2.yml
+++ b/src/licensedcode/data/rules/linux-syscall-exception-gpl_2.yml
@@ -1,5 +1,6 @@
license_expression: linux-syscall-exception-gpl
is_license_text: yes
+minimum_coverage: 70
relevance: 100
notes: from https://raw.githubusercontent.com/pombredanne/gpl-history/v1.0/allvers/linux.COPYING.0.4
ignorable_copyrights:
diff --git a/src/licensedcode/data/rules/mit_1190.RULE b/src/licensedcode/data/rules/mit_1190.RULE
new file mode 100644
index 00000000000..022446f33a4
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1190.RULE
@@ -0,0 +1 @@
+covered by their original {{MIT license}}
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1190.yml b/src/licensedcode/data/rules/mit_1190.yml
new file mode 100644
index 00000000000..2aaf29d7607
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1190.yml
@@ -0,0 +1,3 @@
+license_expression: mit
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/mit_1191.RULE b/src/licensedcode/data/rules/mit_1191.RULE
new file mode 100644
index 00000000000..95cfefb99c5
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1191.RULE
@@ -0,0 +1 @@
+[License](http://img.shields.io/badge/license-mit-blue.svg
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1191.yml b/src/licensedcode/data/rules/mit_1191.yml
new file mode 100644
index 00000000000..9925eec3014
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1191.yml
@@ -0,0 +1,5 @@
+license_expression: mit
+is_license_reference: yes
+relevance: 100
+ignorable_urls:
+ - http://img.shields.io/badge/license-mit-blue.svg
diff --git a/src/licensedcode/data/rules/mit_1192.RULE b/src/licensedcode/data/rules/mit_1192.RULE
new file mode 100644
index 00000000000..b05ac56589c
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1192.RULE
@@ -0,0 +1,2 @@
+License
+ [MIT License](LICENSE)
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1192.yml b/src/licensedcode/data/rules/mit_1192.yml
new file mode 100644
index 00000000000..ef5356012d6
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1192.yml
@@ -0,0 +1,5 @@
+license_expression: mit
+is_license_tag: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/mit_1193.RULE b/src/licensedcode/data/rules/mit_1193.RULE
new file mode 100644
index 00000000000..27c1905ef58
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1193.RULE
@@ -0,0 +1 @@
+This code is distributed under the MIT Expat license, see the LICENSE file.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1193.yml b/src/licensedcode/data/rules/mit_1193.yml
new file mode 100644
index 00000000000..85e26e99ea7
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1193.yml
@@ -0,0 +1,5 @@
+license_expression: mit
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/mit_1194.RULE b/src/licensedcode/data/rules/mit_1194.RULE
new file mode 100644
index 00000000000..cd7b2bea5db
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1194.RULE
@@ -0,0 +1 @@
+This code is distributed under the MIT Expat license
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1194.yml b/src/licensedcode/data/rules/mit_1194.yml
new file mode 100644
index 00000000000..2aaf29d7607
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1194.yml
@@ -0,0 +1,3 @@
+license_expression: mit
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/mit_1195.RULE b/src/licensedcode/data/rules/mit_1195.RULE
new file mode 100644
index 00000000000..c7f738f9662
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1195.RULE
@@ -0,0 +1,3 @@
+License
+
+This project is MIT licensed.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1195.yml b/src/licensedcode/data/rules/mit_1195.yml
new file mode 100644
index 00000000000..2aaf29d7607
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1195.yml
@@ -0,0 +1,3 @@
+license_expression: mit
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/mit_1196.RULE b/src/licensedcode/data/rules/mit_1196.RULE
new file mode 100644
index 00000000000..7933c8e55a9
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1196.RULE
@@ -0,0 +1 @@
+project is MIT licensed.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1196.yml b/src/licensedcode/data/rules/mit_1196.yml
new file mode 100644
index 00000000000..2aaf29d7607
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1196.yml
@@ -0,0 +1,3 @@
+license_expression: mit
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/mit_1197.RULE b/src/licensedcode/data/rules/mit_1197.RULE
new file mode 100644
index 00000000000..bb6e5cd3e2c
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1197.RULE
@@ -0,0 +1 @@
+This project is MIT licensed.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1197.yml b/src/licensedcode/data/rules/mit_1197.yml
new file mode 100644
index 00000000000..2aaf29d7607
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1197.yml
@@ -0,0 +1,3 @@
+license_expression: mit
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/mit_1198.RULE b/src/licensedcode/data/rules/mit_1198.RULE
new file mode 100644
index 00000000000..7dbee97a172
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1198.RULE
@@ -0,0 +1 @@
+code is MIT-licensed
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1198.yml b/src/licensedcode/data/rules/mit_1198.yml
new file mode 100644
index 00000000000..2aaf29d7607
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1198.yml
@@ -0,0 +1,3 @@
+license_expression: mit
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/mit_1199.RULE b/src/licensedcode/data/rules/mit_1199.RULE
new file mode 100644
index 00000000000..dcac399a2dd
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1199.RULE
@@ -0,0 +1 @@
+This code is MIT-licensed
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1199.yml b/src/licensedcode/data/rules/mit_1199.yml
new file mode 100644
index 00000000000..2aaf29d7607
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1199.yml
@@ -0,0 +1,3 @@
+license_expression: mit
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/mit_1200.RULE b/src/licensedcode/data/rules/mit_1200.RULE
new file mode 100644
index 00000000000..bd0e92348c4
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1200.RULE
@@ -0,0 +1 @@
+program is MIT-licensed
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1200.yml b/src/licensedcode/data/rules/mit_1200.yml
new file mode 100644
index 00000000000..2aaf29d7607
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1200.yml
@@ -0,0 +1,3 @@
+license_expression: mit
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/mit_1201.RULE b/src/licensedcode/data/rules/mit_1201.RULE
new file mode 100644
index 00000000000..ed6dcf58c1f
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1201.RULE
@@ -0,0 +1 @@
+This program is MIT-licensed
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1201.yml b/src/licensedcode/data/rules/mit_1201.yml
new file mode 100644
index 00000000000..2aaf29d7607
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1201.yml
@@ -0,0 +1,3 @@
+license_expression: mit
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/mit_1202.RULE b/src/licensedcode/data/rules/mit_1202.RULE
new file mode 100644
index 00000000000..dd05d82e22f
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1202.RULE
@@ -0,0 +1 @@
+This program is MIT-licensed, so you can use the header as-is with no restrictions.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1202.yml b/src/licensedcode/data/rules/mit_1202.yml
new file mode 100644
index 00000000000..2aaf29d7607
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1202.yml
@@ -0,0 +1,3 @@
+license_expression: mit
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/mit_1203.RULE b/src/licensedcode/data/rules/mit_1203.RULE
new file mode 100644
index 00000000000..d94b9462b2e
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1203.RULE
@@ -0,0 +1 @@
+This library is MIT licensed
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1203.yml b/src/licensedcode/data/rules/mit_1203.yml
new file mode 100644
index 00000000000..2aaf29d7607
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1203.yml
@@ -0,0 +1,3 @@
+license_expression: mit
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/mit_1204.RULE b/src/licensedcode/data/rules/mit_1204.RULE
new file mode 100644
index 00000000000..df16cd5ccd2
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1204.RULE
@@ -0,0 +1 @@
+library is MIT licensed
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1204.yml b/src/licensedcode/data/rules/mit_1204.yml
new file mode 100644
index 00000000000..2aaf29d7607
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1204.yml
@@ -0,0 +1,3 @@
+license_expression: mit
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/mit_1205.RULE b/src/licensedcode/data/rules/mit_1205.RULE
new file mode 100644
index 00000000000..5a33ed77a61
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1205.RULE
@@ -0,0 +1 @@
+This library is MIT licensed. See the LICENSE.md for details.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1205.yml b/src/licensedcode/data/rules/mit_1205.yml
new file mode 100644
index 00000000000..57ba64f7c6c
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1205.yml
@@ -0,0 +1,5 @@
+license_expression: mit
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE.md
diff --git a/src/licensedcode/data/rules/mit_1206.RULE b/src/licensedcode/data/rules/mit_1206.RULE
new file mode 100644
index 00000000000..0a3918f738c
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1206.RULE
@@ -0,0 +1 @@
+This Project is fully Open Source MIT licensed.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1206.yml b/src/licensedcode/data/rules/mit_1206.yml
new file mode 100644
index 00000000000..2aaf29d7607
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1206.yml
@@ -0,0 +1,3 @@
+license_expression: mit
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/mit_1207.RULE b/src/licensedcode/data/rules/mit_1207.RULE
new file mode 100644
index 00000000000..b022dfe4b39
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1207.RULE
@@ -0,0 +1,3 @@
+License
+
+This Project is fully Open Source [MIT](https://opensource.org/licenses/MIT) licensed.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1207.yml b/src/licensedcode/data/rules/mit_1207.yml
new file mode 100644
index 00000000000..37f25973781
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1207.yml
@@ -0,0 +1,5 @@
+license_expression: mit
+is_license_notice: yes
+relevance: 100
+ignorable_urls:
+ - https://opensource.org/licenses/MIT
diff --git a/src/licensedcode/data/rules/mit_1208.RULE b/src/licensedcode/data/rules/mit_1208.RULE
new file mode 100644
index 00000000000..cba454d3a4a
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1208.RULE
@@ -0,0 +1 @@
+fully Open Source [MIT](https://opensource.org/licenses/MIT) licensed.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1208.yml b/src/licensedcode/data/rules/mit_1208.yml
new file mode 100644
index 00000000000..37f25973781
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1208.yml
@@ -0,0 +1,5 @@
+license_expression: mit
+is_license_notice: yes
+relevance: 100
+ignorable_urls:
+ - https://opensource.org/licenses/MIT
diff --git a/src/licensedcode/data/rules/mit_1209.RULE b/src/licensedcode/data/rules/mit_1209.RULE
new file mode 100644
index 00000000000..160a8ca45a7
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1209.RULE
@@ -0,0 +1 @@
+This Project is fully Open Source [MIT](https://opensource.org/licenses/MIT) licensed.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_1209.yml b/src/licensedcode/data/rules/mit_1209.yml
new file mode 100644
index 00000000000..37f25973781
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_1209.yml
@@ -0,0 +1,5 @@
+license_expression: mit
+is_license_notice: yes
+relevance: 100
+ignorable_urls:
+ - https://opensource.org/licenses/MIT
diff --git a/src/licensedcode/data/rules/mit_646.RULE b/src/licensedcode/data/rules/mit_646.RULE
index 4716b10199b..c10e26fd0a6 100644
--- a/src/licensedcode/data/rules/mit_646.RULE
+++ b/src/licensedcode/data/rules/mit_646.RULE
@@ -1 +1 @@
-[]LICENSE
\ No newline at end of file
+[]LICENSE
diff --git a/src/licensedcode/data/rules/mit_947.RULE b/src/licensedcode/data/rules/mit_947.RULE
index 896450525cc..25294d441d0 100644
--- a/src/licensedcode/data/rules/mit_947.RULE
+++ b/src/licensedcode/data/rules/mit_947.RULE
@@ -1,2 +1,2 @@
-// Use of this source code is governed by a MIT
-// license that can be found in the LICENSE file.
\ No newline at end of file
+// Use of this source code is governed by a {{ MIT
+// license }} that can be found in the LICENSE file.
diff --git a/src/licensedcode/data/rules/mit_and_apache-2.0_1.RULE b/src/licensedcode/data/rules/mit_and_apache-2.0_1.RULE
new file mode 100644
index 00000000000..0bb7b9b8c91
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_and_apache-2.0_1.RULE
@@ -0,0 +1,3 @@
+## License
+
+The MIT License (MIT) + Apache 2.0. Read [LICENSE](LICENSE).
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_and_apache-2.0_1.yml b/src/licensedcode/data/rules/mit_and_apache-2.0_1.yml
new file mode 100644
index 00000000000..d3d6847585c
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_and_apache-2.0_1.yml
@@ -0,0 +1,5 @@
+license_expression: mit AND apache-2.0
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/mit_and_apache-2.0_2.RULE b/src/licensedcode/data/rules/mit_and_apache-2.0_2.RULE
new file mode 100644
index 00000000000..f35fd6cc88c
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_and_apache-2.0_2.RULE
@@ -0,0 +1 @@
+The MIT License (MIT) + Apache 2.0. Read [LICENSE](LICENSE).
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_and_apache-2.0_2.yml b/src/licensedcode/data/rules/mit_and_apache-2.0_2.yml
new file mode 100644
index 00000000000..d3d6847585c
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_and_apache-2.0_2.yml
@@ -0,0 +1,5 @@
+license_expression: mit AND apache-2.0
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/mit_and_apache-2.0_3.RULE b/src/licensedcode/data/rules/mit_and_apache-2.0_3.RULE
new file mode 100644
index 00000000000..b5ae49b76c7
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_and_apache-2.0_3.RULE
@@ -0,0 +1 @@
+The MIT License (MIT) + Apache 2.0.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_and_apache-2.0_3.yml b/src/licensedcode/data/rules/mit_and_apache-2.0_3.yml
new file mode 100644
index 00000000000..1703e49b7ed
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_and_apache-2.0_3.yml
@@ -0,0 +1,3 @@
+license_expression: mit AND apache-2.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/mit_and_apache-2.0_4.RULE b/src/licensedcode/data/rules/mit_and_apache-2.0_4.RULE
new file mode 100644
index 00000000000..d6f02a26634
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_and_apache-2.0_4.RULE
@@ -0,0 +1,3 @@
+License
+The package is licensed under the MIT and Apache License 2.0 licenses.
+Please see the LICENSE file for details.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_and_apache-2.0_4.yml b/src/licensedcode/data/rules/mit_and_apache-2.0_4.yml
new file mode 100644
index 00000000000..1954df86825
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_and_apache-2.0_4.yml
@@ -0,0 +1,4 @@
+license_expression: mit AND apache-2.0
+is_license_notice: yes
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/mit_and_apache-2.0_5.RULE b/src/licensedcode/data/rules/mit_and_apache-2.0_5.RULE
new file mode 100644
index 00000000000..12123b77a9f
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_and_apache-2.0_5.RULE
@@ -0,0 +1,2 @@
+The package is licensed under the MIT and Apache License 2.0 licenses.
+Please see the LICENSE file for details.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_and_apache-2.0_5.yml b/src/licensedcode/data/rules/mit_and_apache-2.0_5.yml
new file mode 100644
index 00000000000..1954df86825
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_and_apache-2.0_5.yml
@@ -0,0 +1,4 @@
+license_expression: mit AND apache-2.0
+is_license_notice: yes
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/mit_and_apache-2.0_6.RULE b/src/licensedcode/data/rules/mit_and_apache-2.0_6.RULE
new file mode 100644
index 00000000000..4c2694156db
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_and_apache-2.0_6.RULE
@@ -0,0 +1 @@
+The package is licensed under the MIT and Apache License 2.0 licenses.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/mit_and_apache-2.0_6.yml b/src/licensedcode/data/rules/mit_and_apache-2.0_6.yml
new file mode 100644
index 00000000000..1703e49b7ed
--- /dev/null
+++ b/src/licensedcode/data/rules/mit_and_apache-2.0_6.yml
@@ -0,0 +1,3 @@
+license_expression: mit AND apache-2.0
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/other-permissive_352.RULE b/src/licensedcode/data/rules/other-permissive_352.RULE
new file mode 100644
index 00000000000..22dfbf55979
--- /dev/null
+++ b/src/licensedcode/data/rules/other-permissive_352.RULE
@@ -0,0 +1,6 @@
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+to deal in without restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+and to permit persons to whom is furnished to do so, subject to the following conditions:
+
+ This copyright and license shall be included in all copies or substantial portions of the Software.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/other-permissive_352.yml b/src/licensedcode/data/rules/other-permissive_352.yml
new file mode 100644
index 00000000000..e0ed1f91cb0
--- /dev/null
+++ b/src/licensedcode/data/rules/other-permissive_352.yml
@@ -0,0 +1,3 @@
+license_expression: other-permissive
+is_license_text: yes
+notes: an MIT-like license seen in https://raw.githubusercontent.com/UniMath/UniMath/master/LICENSE.md
diff --git a/src/licensedcode/data/rules/proprietary-license_724.RULE b/src/licensedcode/data/rules/proprietary-license_724.RULE
new file mode 100644
index 00000000000..48e109bfbd5
--- /dev/null
+++ b/src/licensedcode/data/rules/proprietary-license_724.RULE
@@ -0,0 +1,3 @@
+No License
+
+I have no yet decided how I will publish this project. Until then, this project is under no license. You have no permission from the creators of the software to use, modify, or share the software. Although a code host such as GitHub may allow you to view and fork the code, this does not imply that you are permitted to use, modify, or share the software for any purpose.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/proprietary-license_724.yml b/src/licensedcode/data/rules/proprietary-license_724.yml
new file mode 100644
index 00000000000..a189944d69d
--- /dev/null
+++ b/src/licensedcode/data/rules/proprietary-license_724.yml
@@ -0,0 +1,2 @@
+license_expression: proprietary-license
+is_license_notice: yes
diff --git a/src/licensedcode/data/rules/proprietary-license_725.RULE b/src/licensedcode/data/rules/proprietary-license_725.RULE
new file mode 100644
index 00000000000..4383de2d34d
--- /dev/null
+++ b/src/licensedcode/data/rules/proprietary-license_725.RULE
@@ -0,0 +1 @@
+You are not allowed to distribute or make use of any of the files within this folder ("Resources") without written permission
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/proprietary-license_725.yml b/src/licensedcode/data/rules/proprietary-license_725.yml
new file mode 100644
index 00000000000..a189944d69d
--- /dev/null
+++ b/src/licensedcode/data/rules/proprietary-license_725.yml
@@ -0,0 +1,2 @@
+license_expression: proprietary-license
+is_license_notice: yes
diff --git a/src/licensedcode/data/rules/public-domain_456.RULE b/src/licensedcode/data/rules/public-domain_456.RULE
new file mode 100644
index 00000000000..bee9ecde0c5
--- /dev/null
+++ b/src/licensedcode/data/rules/public-domain_456.RULE
@@ -0,0 +1 @@
+These values are from the public domain
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/public-domain_456.yml b/src/licensedcode/data/rules/public-domain_456.yml
new file mode 100644
index 00000000000..bba87100644
--- /dev/null
+++ b/src/licensedcode/data/rules/public-domain_456.yml
@@ -0,0 +1,3 @@
+license_expression: public-domain
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/public-domain_457.RULE b/src/licensedcode/data/rules/public-domain_457.RULE
new file mode 100644
index 00000000000..09af3d04c4f
--- /dev/null
+++ b/src/licensedcode/data/rules/public-domain_457.RULE
@@ -0,0 +1 @@
+That code is entirely yours to license however you see fit.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/public-domain_457.yml b/src/licensedcode/data/rules/public-domain_457.yml
new file mode 100644
index 00000000000..bba87100644
--- /dev/null
+++ b/src/licensedcode/data/rules/public-domain_457.yml
@@ -0,0 +1,3 @@
+license_expression: public-domain
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/unicode_59.RULE b/src/licensedcode/data/rules/unicode_59.RULE
new file mode 100644
index 00000000000..60b95e71d7d
--- /dev/null
+++ b/src/licensedcode/data/rules/unicode_59.RULE
@@ -0,0 +1 @@
+See https://www.unicode.org/license.html for the Unicode license agreement.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/unicode_59.yml b/src/licensedcode/data/rules/unicode_59.yml
new file mode 100644
index 00000000000..25a2f9392b6
--- /dev/null
+++ b/src/licensedcode/data/rules/unicode_59.yml
@@ -0,0 +1,5 @@
+license_expression: unicode
+is_license_reference: yes
+relevance: 100
+ignorable_urls:
+ - https://www.unicode.org/license.html
diff --git a/src/licensedcode/data/rules/unicode_60.RULE b/src/licensedcode/data/rules/unicode_60.RULE
new file mode 100644
index 00000000000..df7b3cc2798
--- /dev/null
+++ b/src/licensedcode/data/rules/unicode_60.RULE
@@ -0,0 +1 @@
+See https://www.unicode.org/license.html
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/unicode_60.yml b/src/licensedcode/data/rules/unicode_60.yml
new file mode 100644
index 00000000000..25a2f9392b6
--- /dev/null
+++ b/src/licensedcode/data/rules/unicode_60.yml
@@ -0,0 +1,5 @@
+license_expression: unicode
+is_license_reference: yes
+relevance: 100
+ignorable_urls:
+ - https://www.unicode.org/license.html
diff --git a/src/licensedcode/data/rules/unicode_61.RULE b/src/licensedcode/data/rules/unicode_61.RULE
new file mode 100644
index 00000000000..c11d5452ba0
--- /dev/null
+++ b/src/licensedcode/data/rules/unicode_61.RULE
@@ -0,0 +1 @@
+Unicode license agreement.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/unicode_61.yml b/src/licensedcode/data/rules/unicode_61.yml
new file mode 100644
index 00000000000..3e6035e996b
--- /dev/null
+++ b/src/licensedcode/data/rules/unicode_61.yml
@@ -0,0 +1,3 @@
+license_expression: unicode
+is_license_reference: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/unknown-license-reference_230.yml b/src/licensedcode/data/rules/unknown-license-reference_230.yml
index ddd0ee2c1d7..4254c8e2c41 100644
--- a/src/licensedcode/data/rules/unknown-license-reference_230.yml
+++ b/src/licensedcode/data/rules/unknown-license-reference_230.yml
@@ -1,3 +1,3 @@
license_expression: unknown-license-reference
-is_license_reference: yes
+is_license_intro: yes
relevance: 100
diff --git a/src/licensedcode/data/rules/unknown-license-reference_365.RULE b/src/licensedcode/data/rules/unknown-license-reference_365.RULE
new file mode 100644
index 00000000000..d47a0c3d877
--- /dev/null
+++ b/src/licensedcode/data/rules/unknown-license-reference_365.RULE
@@ -0,0 +1 @@
+software is not in the public domain
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/unknown-license-reference_365.yml b/src/licensedcode/data/rules/unknown-license-reference_365.yml
new file mode 100644
index 00000000000..eb9a5834644
--- /dev/null
+++ b/src/licensedcode/data/rules/unknown-license-reference_365.yml
@@ -0,0 +1,3 @@
+license_expression: unknown-license-reference
+is_license_notice: yes
+relevance: 100
diff --git a/src/licensedcode/data/rules/unknown-license-reference_366.RULE b/src/licensedcode/data/rules/unknown-license-reference_366.RULE
new file mode 100644
index 00000000000..e9a0b5c9899
--- /dev/null
+++ b/src/licensedcode/data/rules/unknown-license-reference_366.RULE
@@ -0,0 +1,2 @@
+Use of this source code is governed by a license
+that can be found in the LICENSE file.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/unknown-license-reference_366.yml b/src/licensedcode/data/rules/unknown-license-reference_366.yml
new file mode 100644
index 00000000000..fc3d42b20a1
--- /dev/null
+++ b/src/licensedcode/data/rules/unknown-license-reference_366.yml
@@ -0,0 +1,5 @@
+license_expression: unknown-license-reference
+is_license_notice: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/unknown-license-reference_367.RULE b/src/licensedcode/data/rules/unknown-license-reference_367.RULE
new file mode 100644
index 00000000000..f57d983095c
--- /dev/null
+++ b/src/licensedcode/data/rules/unknown-license-reference_367.RULE
@@ -0,0 +1 @@
+See LICENSE for the full text
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/unknown-license-reference_367.yml b/src/licensedcode/data/rules/unknown-license-reference_367.yml
new file mode 100644
index 00000000000..d72e93d5daf
--- /dev/null
+++ b/src/licensedcode/data/rules/unknown-license-reference_367.yml
@@ -0,0 +1,5 @@
+license_expression: unknown-license-reference
+is_license_reference: yes
+relevance: 100
+referenced_filenames:
+ - LICENSE
diff --git a/src/licensedcode/data/rules/unknown-license-reference_62.yml b/src/licensedcode/data/rules/unknown-license-reference_62.yml
index ddd0ee2c1d7..3e7294e642b 100644
--- a/src/licensedcode/data/rules/unknown-license-reference_62.yml
+++ b/src/licensedcode/data/rules/unknown-license-reference_62.yml
@@ -1,3 +1,3 @@
license_expression: unknown-license-reference
-is_license_reference: yes
+is_license_intro: yes
relevance: 100
diff --git a/src/licensedcode/match.py b/src/licensedcode/match.py
index 6de4fbff873..bfb4df29783 100644
--- a/src/licensedcode/match.py
+++ b/src/licensedcode/match.py
@@ -59,6 +59,7 @@
TRACE_MATCHED_TEXT = False
TRACE_MATCHED_TEXT_DETAILS = False
+TRACE_HIGHLIGHTED_TEXT = False
# these control the details in a LicenseMatch representation
TRACE_REPR_MATCHED_RULE = False
@@ -84,6 +85,7 @@ def logger_debug(*args): pass
or TRACE_SET_LINES
or TRACE_MATCHED_TEXT
or TRACE_MATCHED_TEXT_DETAILS
+ or TRACE_HIGHLIGHTED_TEXT
or TRACE_FILTER_SINGLE_WORD_GIBBERISH
or TRACE_KEY_PHRASES
or TRACE_REGIONS
@@ -750,6 +752,21 @@ def matched_text(
_usecache=_usecache
)).rstrip()
+ def get_highlighted_text(self, trace=TRACE_HIGHLIGHTED_TEXT):
+ """
+ Return HTML representing the full text of the original scanned file
+ where the matched text portions and the non-matched text portions are
+ highlighted using HTML tags.
+ """
+ if trace:
+ logger_debug(f'LicenseMatch.get_highlighted_text: self.query: {self.query}')
+
+ query = self.query
+ if not query:
+ return u''
+
+ return ''.join(get_highlighted_lines(match=self, query=query, trace=trace))
+
def set_matched_lines(matches, line_by_pos):
"""
@@ -3085,3 +3102,67 @@ def get_full_qspan_matched_text(
else:
# we do not highlight punctuation and stopwords.
yield val
+
+
+def get_highlighted_lines(
+ match,
+ query,
+ stopwords=STOPWORDS,
+ trace=TRACE_HIGHLIGHTED_TEXT,
+):
+ """
+ Yield highlighted text lines (with line returns) for the whole of the matched and unmatched text of a ``query``.
+ """
+ tokens = tokenize_matched_text(
+ location=query.location,
+ query_string=query.query_string,
+ dictionary=query.idx.dictionary,
+ start_line=match.query.start_line,
+ _cache={},
+ )
+ tokens = tag_matched_tokens(tokens=tokens, match_qspan=match.qspan)
+
+ if trace:
+ tokens = list(tokens)
+ print()
+ logger_debug('get_highlighted_lines: tokens:')
+ for t in tokens:
+ print(' ', t)
+ print()
+ header = '''
+
+'''
+
+ yield header
+ highlight_matched = '{}'
+ highlight_not_matched = '{}'
+ for token in tokens:
+ val = token.value
+ if token.is_text and val.lower() not in stopwords:
+ if token.is_matched:
+ yield highlight_matched.format(val)
+ else:
+ yield highlight_not_matched.format(val)
+ else:
+ # we do not highlight punctuation and stopwords.
+ yield highlight_not_matched.format(val)
+
+ yield footer
+
+
+def tag_matched_tokens(tokens, match_qspan):
+ """
+ Yield Tokens from a ``tokens`` iterable of Token objects.
+ Known matched tokens are tagged as "is_matched=True" if they are matched.
+ """
+ for tok in tokens:
+ # tagged known matched tokens (useful for highlighting)
+ if tok.pos != -1 and tok.is_known and tok.pos in match_qspan:
+ tok = attr.evolve(tok, is_matched=True)
+ yield tok
diff --git a/src/licensedcode/models.py b/src/licensedcode/models.py
index c681a43828a..c92ad693b2e 100644
--- a/src/licensedcode/models.py
+++ b/src/licensedcode/models.py
@@ -218,18 +218,21 @@ class License:
metadata=dict(
help='Text URL for this license')
)
+
osi_url = attr.ib(
default=None,
repr=False,
metadata=dict(
help='OpenSource.org URL for this license')
)
+
faq_url = attr.ib(
default=None,
repr=False,
metadata=dict(
help='Frequently Asked Questions page URL for this license')
)
+
other_urls = attr.ib(
default=attr.Factory(list),
repr=False,
@@ -245,19 +248,19 @@ class License:
)
minimum_coverage = attr.ib(
- default=0,
- repr=False,
- metadata=dict(
- help='Can this license text be matched only with a minimum coverage e.g., '
- 'when a minimum proportion of tokens have been matched? This is as a '
- 'float between 0 and 100 where 100 means that all tokens must be '
- 'matched and a smaller value means a smaller proportion of matched '
- 'tokens is acceptable. This is mormally computed at indexing time based on '
- 'the length of a license. Providing a stored value in the license data '
- 'file overrides this default computed value. For example, a short '
- 'license notice such as "MIT license" must be matched with all its words, '
- 'e.g., a 100 minimum_coverage. Otherwise matching only "mit" or '
- '"license" is not a strong enough licensing clue.')
+ default=0,
+ repr=False,
+ metadata=dict(
+ help='Can this license text be matched only with a minimum coverage e.g., '
+ 'when a minimum proportion of tokens have been matched? This is as a '
+ 'float between 0 and 100 where 100 means that all tokens must be '
+ 'matched and a smaller value means a smaller proportion of matched '
+ 'tokens is acceptable. This is mormally computed at indexing time based on '
+ 'the length of a license. Providing a stored value in the license data '
+ 'file overrides this default computed value. For example, a short '
+ 'license notice such as "MIT license" must be matched with all its words, '
+ 'e.g., a 100 minimum_coverage. Otherwise matching only "mit" or '
+ '"license" is not a strong enough licensing clue.')
)
standard_notice = attr.ib(
diff --git a/tests/licensedcode/data/datadriven/external/fossology-licenses/public-domain.txt.yml b/tests/licensedcode/data/datadriven/external/fossology-licenses/public-domain.txt.yml
index 3b89840746a..48590034fd3 100644
--- a/tests/licensedcode/data/datadriven/external/fossology-licenses/public-domain.txt.yml
+++ b/tests/licensedcode/data/datadriven/external/fossology-licenses/public-domain.txt.yml
@@ -2,7 +2,7 @@ license_expressions:
- public-domain
- public-domain
- public-domain
- - public-domain
+ - unknown-license-reference
- public-domain
- public-domain
- public-domain
diff --git a/tests/licensedcode/data/datadriven/lic2/apitypes.go.yml b/tests/licensedcode/data/datadriven/lic2/apitypes.go.yml
index a9e02b1a85a..8afffc2df92 100644
--- a/tests/licensedcode/data/datadriven/lic2/apitypes.go.yml
+++ b/tests/licensedcode/data/datadriven/lic2/apitypes.go.yml
@@ -1,2 +1,2 @@
license_expressions:
- - apache-2.0
+ - apache-2.0 AND unknown-license-reference
diff --git a/tests/licensedcode/data/datadriven/lic4/here-disclaimer.txt b/tests/licensedcode/data/datadriven/lic4/here-disclaimer.txt
new file mode 100644
index 00000000000..7b4487e0836
--- /dev/null
+++ b/tests/licensedcode/data/datadriven/lic4/here-disclaimer.txt
@@ -0,0 +1,9 @@
+This content is provided "as-is" and without warranties of any kind, either express or implied, including, but
+not limited to, the implied warranties of merchantability, fitness for a particular purpose, satisfactory quality
+and non-infringement. HERE does not warrant that the content is error free and HERE does not warrant or
+make any representations regarding the quality, correctness, accuracy, or reliability of the content. You
+should therefore verify any information contained in the content before acting on it.
+To the furthest extent permitted by law, under no circumstances, including without limitation the negligence
+of HERE, shall HERE be liable for any damages, including, without limitation, direct, special, indirect, punitive,
+consequential, exemplary and/ or incidental damages that result from the use or application of this content,
+even if HERE or an authorized representative has been advised of the possibility of such damages.
diff --git a/tests/licensedcode/data/datadriven/lic4/here-disclaimer.txt.yml b/tests/licensedcode/data/datadriven/lic4/here-disclaimer.txt.yml
new file mode 100644
index 00000000000..e9afb118f13
--- /dev/null
+++ b/tests/licensedcode/data/datadriven/lic4/here-disclaimer.txt.yml
@@ -0,0 +1,2 @@
+license_expressions:
+ - here-disclaimer