diff --git a/src/licensedcode/data/licenses/max-mojo-community-20240828.LICENSE b/src/licensedcode/data/licenses/max-mojo-community-20240828.LICENSE
new file mode 100644
index 00000000000..fea2ff92f7e
--- /dev/null
+++ b/src/licensedcode/data/licenses/max-mojo-community-20240828.LICENSE
@@ -0,0 +1,93 @@
+---
+key: max-mojo-community-20240828
+short_name: MAX & Mojo Community License 20240828
+name: MAX & Mojo Community License 20240828
+category: Proprietary Free
+owner: Modular
+homepage_url: https://www.modular.com/legal/max-mojo-license
+spdx_license_key: LicenseRef-scancode-max-mojo-community-20240828
+faq_url: https://www.modular.com/pricing
+ignorable_urls:
+ - https://docs.modular.com/
+ - https://www.modular.com/legal/privacy
+ - https://www.modular.com/pricing
+---
+
+MAX & Mojo Community License
+
+Last Modified: August 28th, 2024
+
+These MAX Community License Terms (these "Terms") are entered into by and between Modular, Inc. ("Modular") and the individual or entity agreeing to these terms ("Licensee"), and form part of Modular’s Terms of Use. Capitalized terms used herein but not otherwise defined have the meanings set forth in the Terms of Use. By clicking the "Agree" button or by downloading, installing, copying, or otherwise using any software development kits made available by Modular as part of the Max Platform (each, the "SDK"), or otherwise developing software using Modular’s Mojo programming language, Licensee agrees to be bound by these Terms. If Licensee does not agree to these Terms, Licensee should not proceed with the download, installation, or use of the applicable SDK. If Licensee is an individual downloading the SDK on behalf of an entity or organization, Licensee represents and warrants that it has the requisite authority to bind that entity (and any applicable Affiliates) to these Terms.
+
+1. SDK AND DOCUMENTATION LICENSE GRANT
+
+Subject to Licensee’s compliance with these Terms, Modular hereby grants Licensee a non-exclusive, non-transferable license to use the SDK and accompanying Documentation (as defined below), as made available at https://docs.modular.com, solely for use in developed software applications ("Applications") that meet the Usage and Distribution Requirements specified in this Agreement. This license does not grant Licensee the right to distribute the SDK or any part thereof to third parties, except as expressly stated otherwise herein. For the avoidance of doubt, Licensee may under no circumstances redistribute the SDK itself outside of any Applications. Nothing herein shall be construed as a grant of a license or any other rights with respect to Modular’s trademarks, logos, or other branding for Mojo or any other Modular offerings (collectively, the “Marks”). Licensee shall seek prior written consent for the use of the Marks in connection with its use of the SDK, and agrees and acknowledges that Modular is under no obligation to grant any such requests.
+
+2. MAX RESTRICTIONS AND USAGE
+
+Licensee shall not:
+
+(a) modify, adapt, translate, reverse engineer, decompile, or disassemble the SDK or any part thereof, or otherwise attempt to derive or gain access to SDK source code;
+(b) remove, alter, or obscure any proprietary notices, labels, or marks from the SDK;
+(c) use the SDK in an Application or standalone, or otherwise develop an Application in Mojo, for any Competitive Activity; or
+(d) use the SDK in any manner that violates any applicable laws, the Distribution Requirements, regulations, third-party rights, or other Modular terms or agreements by which Licensee is bound.
+
+Licensee acknowledges and understands that its use of the SDK may be subject to the collection of certain telemetry, usage, and other data which captures Licensee’s interactions with and use of the SDK (collectively, the “Usage Data”).
+
+“Competitive Activity” means making commercially, publicly available software-as-a-service, platform-as-a-service, infrastructure-as-a-service, support services, or similar online or offline managed, cloud services for the primary purposes of providing artificial intelligence platform infrastructure to third parties without explicit written permission. For clarity, artificial intelligence platform infrastructure encapsulates:
+
+(i) data processing, transformation, and querying services for artificial intelligence,
+(ii) artificial intelligence training or artificial intelligence inference services,
+(iii) hosting and/or compute services for the above, and
+(iv) data center services and/or similarly situated services offering MAX in connection with a broader service offering to third parties.
+
+For the avoidance of doubt, this provision will not apply “ex-post-facto” (“after the fact”) to any software you develop that is not competitive at the time you develop it, but later on becomes competitive to Modular based on Modular’s new product offerings or pivots resulting in an expanded definition of Competitive Activity. Development of any internal or personal use-only software is not a Competitive Activity. Please see our pricing page (https://www.modular.com/pricing) for more information and examples on Competitive Activities.
+
+3. REDISTRIBUTABLE COMPONENTS & LIMITATIONS
+
+Modular hereby grants Licensee the limited right to redistribute certain components of the SDK as part of Licensee's Applications, subject to the conditions and limitations set forth in this clause, including the Distribution Requirements. The redistributable components of the SDK ("Redistributable Components") are specified in the accompanying SDK documentation or materials provided by Modular (the “Documentation”). Licensee shall only redistribute the Redistributable Components as expressly permitted in these Terms and in any Documentation, in accordance with the Distribution Requirements.
+
+“Distribution Requirements” means each of the following requirements:
+
+(a) The Application must have material additional functionality, beyond the included portions of the SDK;
+(b) The distributable portions of the SDK shall only be accessed by the Application;
+(c) The terms under which Licensee distributes an Application must be consistent with the terms of this Agreement, including (without limitation) terms relating to the license grant and license restrictions and protection of Modular’s intellectual property rights;
+(d) Licensee shall not redistribute the Redistributable Components as standalone components, libraries, or tools in any way that would enable third parties to violate the terms of this License;
+(e) Licensee shall not modify, reverse engineer, decompile, disassemble, or attempt to derive the source code of the Redistributable Components, except to the extent expressly permitted by applicable law;
+(f) Licensee shall include all proprietary notices, labels, and marks provided by Modular in the Documentation (or elsewhere) in connection with the Redistributable Components in all copies of Applications that incorporate the Redistributable Components;
+(g) The text of this Agreement shall be conspicuously displayed in each original or modified copy of the SDK; and
+(h) The Application must only be run on hardware expressly supported by MAX. If Licensee wishes to run the Application on custom hardware it is developing or has developed, Licensee must contact Modular with a written request to secure appropriate rights to do so. Modular reserves the right to approve or deny such requests in its sole discretion.
+
+Licensee agrees to notify Modular in writing of any known or suspected violation of the Distribution Requirements and to reasonably enforce the terms of its Application. If Licensee receives the SDK in original or modified form from any third party, Licensee agrees and accepts that the terms of this Agreement are still binding upon Licensee.
+
+4. OWNERSHIP & PERSONAL INFORMATION
+
+Modular and its applicable licensors retain all right, title, and interest in and to the SDK (including any Redistributable Components) and Documentation, including all intellectual property rights therein. Licensee acknowledges and agrees that, other than as explicitly stated herein, nothing in these Terms grants it any rights to or ownership interest in the SDK or Documentation. As between the parties, Licensee acknowledges that Modular owns all right, title, and interest in and to the Usage Data and may use or exploit it for any purpose it deems fit, including but not limited to the purposes of improving the SDK or any other component or aspect of the Max Platform. Any collection, storage, or use of Licensee personal information is governed by Modular’s Privacy Policy (https://www.modular.com/legal/privacy), which Licensee hereby acknowledges upon acceptance of these Terms.
+
+5. SUPPORT AND UPDATES
+
+Modular is not obligated to provide any support, patches, fixes or updates for the SDK. However, Modular may, at its sole discretion, provide updates, patches, fixes or support at any time.
+
+6. FEES
+
+The community license variant of the SDK is provided free of charge. Licensee acknowledges that Modular may at any time change its provision of its community variant of the SDK for free or generally. In the event Modular does the foregoing, it will make commercially reasonable efforts to provide Licensee of advanced notice of its plans to either change its provision of the SDK or offer the applicable, commercial variant of the SDK for a fee to the contact information provided by Licensee to Modular.
+
+7. WARRANTY DISCLAIMER
+
+THE SDK IS PROVIDED "AS IS" AND TO THE EXTENT PERMITTED BY APPLICABLE LAW, MODULAR MAKES NO OTHER WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. LICENSEE ACKNOWLEDGES AND AGREES THAT THE USE OF THE SDK IS AT THEIR OWN RISK, AND MODULAR DOES NOT MAKE ANY REPRESENTATIONS OR WARRANTIES REGARDING THE ACCURACY, RELIABILITY, OR COMPLETENESS OF THE SDK, OR INFORMATION OBTAINED THROUGH THE SDK. MODULAR DOES NOT WARRANT OR GUARANTEE THAT THE SDK WILL MEET LICENSEE'S REQUIREMENTS OR EXPECTATIONS FOR ITS APPLICATIONS OR GENERALLY, OR THAT ANY ERRORS OR DEFECTS IN THE SDK WILL BE CORRECTED. FURTHERMORE, MODULAR DOES NOT WARRANT OR MAKE ANY REPRESENTATIONS REGARDING THE RESULTS THAT MAY BE OBTAINED FROM THE USE OF THE SDK OR THE SUITABILITY OF THE SDK FOR ANY PARTICULAR PURPOSE. MODULAR MAKES NO WARRANTIES OR REPRESENTATIONS THAT THE SDK WILL BE COMPATIBLE WITH LICENSEE'S SYSTEMS, SOFTWARE, OR APPLICATIONS, OR THAT THE SDK WILL BE SECURE FROM UNAUTHORIZED ACCESS, HACKING, OR OTHER POTENTIAL SECURITY THREATS. MODULAR DISCLAIMS ANY LIABILITY ARISING OUT OF OR IN CONNECTION WITH THE USE OF THE SDK. LICENSEE ASSUMES ALL RISKS AND RESPONSIBILITIES FOR USING THE SDK TO ACHIEVE THEIR INTENDED RESULTS AND FOR THE INSTALLATION, USE, AND RESULTS OBTAINED FROM THE SDK. ADDITIONALLY, VERSIONS OF THE SDK IDENTIFIED AS ‘PREVIEW VERSIONS’ MAY HAVE ADDITIONAL BUGS OR DESIGN FLAWS. MODULAR MAKES NO WARRANTIES ABOUT THE PREVIEW VERSIONS WHATSOEVER, AND LICENSEE’S USE OF THE SDK IN COMMERCIAL, PRODUCTION ENVIRONMENTS IN VIOLATION OF THIS AGREEMENT IS AT ITS OWN RISK.
+
+8. INDEMNIFICATION
+
+Licensee shall defend, indemnify and hold harmless Modular, its affiliates and their respective officers, directors, employees, agents and representatives from any and all third party claims, damages, liabilities, costs and fees (including reasonable attorneys’ fees) arising from: (i) its material breach of these Terms; or (ii) an allegation that any Application violates, misappropriates, or infringes any third party intellectual, contractual or proprietary right.
+
+9. LIMITATION OF LIABILITY
+
+TO THE EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL MODULAR BE RESPONSIBLE OR LIABLE WITH RESPECT TO ANY SUBJECT MATTER OF THIS AGREEMENT UNDER ANY CONTRACT, NEGLIGENCE, STRICT LIABILITY OR OTHER THEORY FOR: (I) LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES, OR TECHNOLOGY; OR (II) ANY INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO LOSS OF REVENUES OR PROFITS; (III) ANY MATTER BEYOND ITS REASONABLE CONTROL; OR (IV) ANY AMOUNT IN THE AGGREGATE OVER $100. SOME JURISDICTIONS DO NOT ALLOW CERTAIN WARRANTY DISCLAIMERS OR LIMITATIONS ON LIABILITY. ONLY DISCLAIMERS OR LIMITATIONS THAT ARE LAWFUL IN THE APPLICABLE JURISDICTION WILL APPLY TO YOU, AND MODULAR’S LIABILITY WILL BE LIMITED TO THE MAXIMUM EXTENT PERMITTED BY LAW.
+
+10. TERMINATION
+
+These Terms may be terminated if the Licensee wants to terminate this Agreement by stopping use of the SDK. Modular may terminate this License if the Licensee fails to comply with any term in this Agreement, or if the Licensee commences, or participates, in any legal proceed against Modular. Upon termination, Licensee shall immediately cease all use of the SDK. These terms may be also discontinued by Modular if it decides to no longer provide any SDK, or if in Modular soles discretion, continued use is no longer commercially viable. Modular will attempt to provide written notice of termination to Licensee either through a posting on its website, or via the contact method for Licensee it has available. Upon any termination of this License all provisions survive except for the license grant provisions.
+
+11. EXPORT CONTROL
+
+Licensee shall comply with, and shall, at Modular’s request, demonstrate compliance with all applicable export laws, restrictions, and regulations of any United States or foreign agency or authority. Licensee shall not export or re-export, or allow the export or re-export of any product, technology or information it obtains pursuant to these Terms (including but not limited to the SDK) in violation of any such laws, embargoes, restrictions or regulations. Licensee shall obtain and bear all expenses relating to any licenses and/or exemptions required to comply with foregoing.
\ No newline at end of file
diff --git a/src/licensedcode/data/licenses/ms-rndis.LICENSE b/src/licensedcode/data/licenses/ms-rndis.LICENSE
new file mode 100644
index 00000000000..6034d7f54a2
--- /dev/null
+++ b/src/licensedcode/data/licenses/ms-rndis.LICENSE
@@ -0,0 +1,67 @@
+---
+key: ms-rndis
+short_name: MS-RNDIS
+name: Remote Network Driver Interface Specification (RNDIS) Protocol
+category: Proprietary Free
+owner: Microsoft
+spdx_license_key: LicenseRef-scancode-ms-rndis
+text_urls:
+ - https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/WinArchive/%255BMS-RNDIS%255D.pdf&ved=2ahUKEwj7tLeb1K6IAxVLGDQIHT04EPcQFnoECBQQAQ&usg=AOvVaw1MW_JFPyy4nCIfftPqsKC_
+other_urls:
+ - https://en.wikipedia.org/wiki/RNDIS
+ - https://learn.microsoft.com/en-us/openspecs/dev_center/ms-devcentlp/1c24c7c8-28b0-4ce1-a47d-95fe1ff504bc
+ - https://learn.microsoft.com/en-us/openspecs/dev_center/ms-devcentlp/8b8d1b7a-a10a-4667-9558-6d9c43adf60d
+ - https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks
+ignorable_urls:
+ - http://www.microsoft.com/trademarks
+ignorable_emails:
+ - iplg@microsoft.com
+---
+
+[MS-RNDIS]:
+Remote Network Driver Interface Specification (RNDIS) Protocol
+
+Intellectual Property Rights Notice for Open Specifications Documentation
+
+ - Technical Documentation. Microsoft publishes Open Specifications documentation for
+protocols, file formats, languages, standards as well as overviews of the interaction among each
+of these technologies.
+
+ - Copyrights. This documentation is covered by Microsoft copyrights. Regardless of any other
+terms that are contained in the terms of use for the Microsoft website that hosts this
+documentation, you may make copies of it in order to develop implementations of the
+technologies described in the Open Specifications and may distribute portions of it in your
+implementations using these technologies or your documentation as necessary to properly
+document the implementation. You may also distribute in your implementation, with or without
+modification, any schema, IDL’s, or code samples that are included in the documentation. This
+permission also applies to any documents that are referenced in the Open Specifications.
+
+ - No Trade Secrets. Microsoft does not claim any trade secret rights in this documentation.
+
+ - Patents. Microsoft has patents that may cover your implementations of the technologies
+described in the Open Specifications. Neither this notice nor Microsoft's delivery of the
+documentation grants any licenses under those or any other Microsoft patents. However, a given
+Open Specification may be covered by Microsoft Open Specification Promise or the Community
+Promise. If you would prefer a written license, or if the technologies described in the Open
+Specifications are not covered by the Open Specifications Promise or Community Promise, as
+applicable, patent licenses are available by contacting iplg@microsoft.com.
+
+ - Trademarks. The names of companies and products contained in this documentation may be
+covered by trademarks or similar intellectual property rights. This notice does not grant any
+licenses under those rights. For a list of Microsoft trademarks, visit
+www.microsoft.com/trademarks.
+
+ - Fictitious Names. The example companies, organizations, products, domain names, email
+addresses, logos, people, places, and events depicted in this documentation are fictitious. No
+association with any real company, organization, product, domain name, email address, logo,
+person, place, or event is intended or should be inferred.
+
+Reservation of Rights. All other rights are reserved, and this notice does not grant any rights
+other than specifically described above, whether by implication, estoppel, or otherwise.
+
+Tools. The Open Specifications do not require the use of Microsoft programming tools or
+programming environments in order for you to develop an implementation. If you have access to
+Microsoft programming tools and environments you are free to take advantage of them. Certain
+Open Specifications are intended for use in conjunction with publicly available standard
+specifications and network programming art, and assumes that the reader either is familiar with the
+aforementioned material or has immediate access to it.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/bsd-new_1083.RULE b/src/licensedcode/data/rules/bsd-new_1083.RULE
index f04995b0189..fbf43f79493 100644
--- a/src/licensedcode/data/rules/bsd-new_1083.RULE
+++ b/src/licensedcode/data/rules/bsd-new_1083.RULE
@@ -2,7 +2,8 @@
license_expression: bsd-new
is_license_reference: yes
is_continuous: yes
+relevance: 100
minimum_coverage: 100
---
-BSD 3-clause "New" or "Revised" License
\ No newline at end of file
+{{BSD 3-clause}} "New" or "Revised" License
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_771.RULE b/src/licensedcode/data/rules/false-positive_771.RULE
new file mode 100644
index 00000000000..61ba8e4263f
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_771.RULE
@@ -0,0 +1,6 @@
+---
+is_false_positive: yes
+notes: seen in kernel /Documentation/process/license-rules.rst
+---
+
+The SPDX license identifier in kernel files
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_772.RULE b/src/licensedcode/data/rules/false-positive_772.RULE
new file mode 100644
index 00000000000..2b3c3114d86
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_772.RULE
@@ -0,0 +1,6 @@
+---
+is_false_positive: yes
+notes: seen in kernel /Documentation/process/license-rules.rst
+---
+
+The SPDX license identifier is added
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_773.RULE b/src/licensedcode/data/rules/false-positive_773.RULE
new file mode 100644
index 00000000000..3db86bb293d
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_773.RULE
@@ -0,0 +1,6 @@
+---
+is_false_positive: yes
+notes: seen in kernel /Documentation/process/license-rules.rst
+---
+
+(SPDX-License-Identifier) nor
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_774.RULE b/src/licensedcode/data/rules/false-positive_774.RULE
new file mode 100644
index 00000000000..6e405856400
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_774.RULE
@@ -0,0 +1,6 @@
+---
+is_false_positive: yes
+notes: seen at drivers/block/floppy.c
+---
+
+* modeled after the freeware MS-DOS program
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_775.RULE b/src/licensedcode/data/rules/false-positive_775.RULE
new file mode 100644
index 00000000000..6287d8d308e
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_775.RULE
@@ -0,0 +1,6 @@
+---
+is_false_positive: yes
+notes: seen at kernel/bpf/syscall.c
+---
+
+sizeof(license)
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_776.RULE b/src/licensedcode/data/rules/false-positive_776.RULE
new file mode 100644
index 00000000000..71ec2a7146d
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_776.RULE
@@ -0,0 +1,6 @@
+---
+is_false_positive: yes
+notes: seen in kernel menuconfig
+---
+
+_GNU_SOURCE
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_777.RULE b/src/licensedcode/data/rules/false-positive_777.RULE
new file mode 100644
index 00000000000..562590e1c18
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_777.RULE
@@ -0,0 +1,6 @@
+---
+is_false_positive: yes
+notes: seen in kernel /Documentation/process/license-rules.rst
+---
+
+SPDX-License-Identifier:
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_778.RULE b/src/licensedcode/data/rules/false-positive_778.RULE
new file mode 100644
index 00000000000..a9f5070d537
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_778.RULE
@@ -0,0 +1,8 @@
+---
+is_false_positive: yes
+notes: seen in kernel /Documentation/process/license-rules.rst
+---
+
+Aside from that, individual files can be provided under a dual license,
+e.g. one of the compatible GPL variants and alternatively under a
+permissive license like BSD, MIT etc.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_779.RULE b/src/licensedcode/data/rules/false-positive_779.RULE
new file mode 100644
index 00000000000..b4f0d4de651
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_779.RULE
@@ -0,0 +1,14 @@
+---
+is_false_positive: yes
+notes: seen in kernel /Documentation/process/license-rules.rst
+---
+
+Dual Licensing Only
+
+ These licenses should only be used to dual license code with another
+ license in addition to a preferred license. These licenses are available
+ from the directory::
+
+ LICENSES/dual/
+
+ in the kernel source tree.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_780.RULE b/src/licensedcode/data/rules/false-positive_780.RULE
new file mode 100644
index 00000000000..80032703934
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_780.RULE
@@ -0,0 +1,13 @@
+---
+is_false_positive: yes
+notes: seen in kernel /Documentation/process/license-rules.rst
+---
+
+SPDX-Licenses: GPL-2.0, GPL-2.0+, GPL-1.0+, LGPL-2.0, LGPL-2.0+, LGPL-2.1, LGPL-2.1+, GPL-2.0-only, GPL-2.0-or-later
+Usage-Guide:
+ This exception is used together with one of the above SPDX-Licenses
+ to mark user space API (uapi) header files so they can be included
+ into non GPL compliant user space application code.
+ To use this exception add it with the keyword WITH to one of the
+ identifiers in the SPDX-Licenses tag:
+ SPDX-License-Identifier: WITH Linux-syscall-note
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_781.RULE b/src/licensedcode/data/rules/false-positive_781.RULE
new file mode 100644
index 00000000000..6db25202faa
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_781.RULE
@@ -0,0 +1,6 @@
+---
+is_false_positive: yes
+notes: found in linux/drivers/gpu/drm/amd/include/asic_reg/nbio/
+---
+
+UR_SSPL_MSG
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_782.RULE b/src/licensedcode/data/rules/false-positive_782.RULE
new file mode 100644
index 00000000000..ba3707356d5
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_782.RULE
@@ -0,0 +1,6 @@
+---
+is_false_positive: yes
+notes: found in linux/drivers/pinctrl/samsung/pinctrl-exynos-arm.c
+---
+
+EINTG("gpl2")
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_783.RULE b/src/licensedcode/data/rules/false-positive_783.RULE
new file mode 100644
index 00000000000..e49c1fe34cd
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_783.RULE
@@ -0,0 +1,6 @@
+---
+is_false_positive: yes
+notes: found in linux/drivers/pinctrl/samsung/pinctrl-exynos-arm.c
+---
+
+EINTG("gpl1")
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/false-positive_785.RULE b/src/licensedcode/data/rules/false-positive_785.RULE
new file mode 100644
index 00000000000..92d8510753e
--- /dev/null
+++ b/src/licensedcode/data/rules/false-positive_785.RULE
@@ -0,0 +1,6 @@
+---
+is_false_positive: yes
+notes: found in linux/include/linux/mfd/rn5t618.h
+---
+
+GPLED_FUNC
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/freeware_bare_word_only.RULE b/src/licensedcode/data/rules/freeware_bare_word_only.RULE
index a007e35e8ef..16780c31fc6 100644
--- a/src/licensedcode/data/rules/freeware_bare_word_only.RULE
+++ b/src/licensedcode/data/rules/freeware_bare_word_only.RULE
@@ -1,7 +1,7 @@
---
license_expression: unknown-license-reference
is_license_clue: yes
-relevance: 100
+relevance: 60
---
freeware
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/gpl-1.0-plus_64.RULE b/src/licensedcode/data/rules/gpl-1.0-plus_64.RULE
index 586afaf1d29..94f3a1c3504 100644
--- a/src/licensedcode/data/rules/gpl-1.0-plus_64.RULE
+++ b/src/licensedcode/data/rules/gpl-1.0-plus_64.RULE
@@ -2,6 +2,8 @@
license_expression: gpl-1.0-plus
is_license_reference: yes
relevance: 100
+is_deprecated: yes
+notes: replaced by gpl-1.0-plus_bare_gpled.RULE
---
gpled
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/gpl-1.0-plus_bare_gpled.RULE b/src/licensedcode/data/rules/gpl-1.0-plus_bare_gpled.RULE
new file mode 100644
index 00000000000..032daa49179
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-1.0-plus_bare_gpled.RULE
@@ -0,0 +1,7 @@
+---
+license_expression: gpl-1.0-plus
+is_license_reference: yes
+relevance: 60
+---
+
+gpled
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/gpl-2.0-plus_1130.RULE b/src/licensedcode/data/rules/gpl-2.0-plus_1130.RULE
new file mode 100644
index 00000000000..6d4bb466045
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0-plus_1130.RULE
@@ -0,0 +1,9 @@
+---
+license_expression: gpl-2.0-plus
+is_license_reference: yes
+minimum_coverage: 100
+---
+
+MODULE_LICENSE("GPL");
+ // Actually dual-licensed, but it doesn't matter for
+ // the sake of this tag. It's Free Software.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/gpl-2.0-plus_1131.RULE b/src/licensedcode/data/rules/gpl-2.0-plus_1131.RULE
new file mode 100644
index 00000000000..c0dcefb27fa
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0-plus_1131.RULE
@@ -0,0 +1,6 @@
+---
+license_expression: gpl-2.0-plus
+is_license_tag: yes
+---
+
+MODULE_LICENSE("GPL"); /* Actually dual-licensed, but it doesn't matter for */
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/gpl-2.0-plus_or_bsd-new_22.RULE b/src/licensedcode/data/rules/gpl-2.0-plus_or_bsd-new_22.RULE
new file mode 100644
index 00000000000..9e0e7e536bc
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0-plus_or_bsd-new_22.RULE
@@ -0,0 +1,9 @@
+---
+license_expression: gpl-2.0-plus OR bsd-new
+is_license_tag: yes
+relevance: 99
+minimum_coverage: 100
+notes: seen at linux/include/dt-bindings/reset/amlogic,meson-axg-reset.h
+---
+
+* SPDX-License-Identifier: (GPL-2.0+ OR BSD)
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/gpl-2.0-plus_with_mif-exception_jjfs2_2.RULE b/src/licensedcode/data/rules/gpl-2.0-plus_with_mif-exception_jjfs2_2.RULE
index f1b74d40f03..8e00215b8d8 100644
--- a/src/licensedcode/data/rules/gpl-2.0-plus_with_mif-exception_jjfs2_2.RULE
+++ b/src/licensedcode/data/rules/gpl-2.0-plus_with_mif-exception_jjfs2_2.RULE
@@ -3,8 +3,6 @@ license_expression: gpl-2.0-plus WITH mif-exception
is_license_notice: yes
relevance: 99
minimum_coverage: 100
-referenced_filenames:
- - LICENCE
notes: seen in U-Boot and the kernel. The LICENCE file is a clear gpl + exception notice
---
diff --git a/src/licensedcode/data/rules/gpl-2.0_1437.RULE b/src/licensedcode/data/rules/gpl-2.0_1437.RULE
new file mode 100644
index 00000000000..0bfc8ffe25e
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_1437.RULE
@@ -0,0 +1,13 @@
+---
+license_expression: gpl-2.0
+is_license_notice: yes
+---
+
+and used with permission.
+ *
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the {{GNU General Public License version 2}} as
+ * published by the Free Software Foundation. See README and COPYING for
+ * more details.
+ */
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/gpl-2.0_and_gpl-1.0-plus_and_gpl-2.0-plus_and_lgpl-2.0_and_lgpl-2.0-plus_and_lgpl-2.1_and_lgpl-2.1-plus_1.RULE b/src/licensedcode/data/rules/gpl-2.0_and_gpl-1.0-plus_and_gpl-2.0-plus_and_lgpl-2.0_and_lgpl-2.0-plus_and_lgpl-2.1_and_lgpl-2.1-plus_1.RULE
new file mode 100644
index 00000000000..662798c4c0d
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_and_gpl-1.0-plus_and_gpl-2.0-plus_and_lgpl-2.0_and_lgpl-2.0-plus_and_lgpl-2.1_and_lgpl-2.1-plus_1.RULE
@@ -0,0 +1,17 @@
+---
+license_expression: gpl-2.0 AND gpl-1.0-plus AND gpl-2.0-plus AND lgpl-2.0 AND lgpl-2.0-plus
+ AND lgpl-2.1 AND lgpl-2.1-plus
+is_license_notice: yes
+minimum_coverage: 90
+---
+
+The license described in the {{COPYING file applies to the kernel source}}
+as a whole, though individual source files can have a different license
+which is required to be compatible with the GPL-2.0::
+
+ GPL-1.0+ : GNU General Public License v1.0 or later
+ GPL-2.0+ : GNU General Public License v2.0 or later
+ LGPL-2.0 : GNU Library General Public License v2 only
+ LGPL-2.0+ : GNU Library General Public License v2 or later
+ LGPL-2.1 : GNU Lesser General Public License v2.1 only
+ LGPL-2.1+ : GNU Lesser General Public License v2.1 or later
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/gpl-2.0_or_bsd-new_31.RULE b/src/licensedcode/data/rules/gpl-2.0_or_bsd-new_31.RULE
new file mode 100644
index 00000000000..e36d84488b5
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_or_bsd-new_31.RULE
@@ -0,0 +1,15 @@
+---
+license_expression: gpl-2.0 OR bsd-new
+is_license_notice: yes
+notes: Seen in Linux
+---
+
+This code is released under both the GPL version 2 and BSD licenses.
+Either license may be used. The respective licenses are found at
+the end of this file.
+
+This code was developed by
+including portions of which come from the
+Developer's Reference Manual and used with permission.
+Permission to use
+code in the Developer's manual was granted for this driver
diff --git a/src/licensedcode/data/rules/gpl-2.0_with_linux-syscall-exception-gpl_14.RULE b/src/licensedcode/data/rules/gpl-2.0_with_linux-syscall-exception-gpl_14.RULE
new file mode 100644
index 00000000000..29360e719b2
--- /dev/null
+++ b/src/licensedcode/data/rules/gpl-2.0_with_linux-syscall-exception-gpl_14.RULE
@@ -0,0 +1,10 @@
+---
+license_expression: gpl-2.0 WITH linux-syscall-exception-gpl
+is_license_notice: yes
+notes: seen in kernel /Documentation/process/license-rules.rst
+---
+
+The Linux Kernel is provided under the terms of the {{GNU General Public
+License version 2 only}} (GPL-2.0), as provided in LICENSES/preferred/GPL-2.0,
+with an explicit syscall exception described in
+{{LICENSES/exceptions/Linux-syscall-note}}, as described in the COPYING file.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/gpl3_bare_word_only.RULE b/src/licensedcode/data/rules/gpl3_bare_word_only.RULE
index 59fa53a84fa..82c5aa97e50 100644
--- a/src/licensedcode/data/rules/gpl3_bare_word_only.RULE
+++ b/src/licensedcode/data/rules/gpl3_bare_word_only.RULE
@@ -1,7 +1,7 @@
---
license_expression: gpl-3.0
is_license_reference: yes
-relevance: 95
+relevance: 60
---
GPL3
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/lgpl_bare_single_word.RULE b/src/licensedcode/data/rules/lgpl_bare_single_word.RULE
index 7c6859facdb..304e9ed77e6 100644
--- a/src/licensedcode/data/rules/lgpl_bare_single_word.RULE
+++ b/src/licensedcode/data/rules/lgpl_bare_single_word.RULE
@@ -1,7 +1,7 @@
---
license_expression: lgpl-2.0-plus
is_license_reference: yes
-relevance: 75
+relevance: 60
---
LGPL
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/license-clue_gpl-2.0_1.RULE b/src/licensedcode/data/rules/license-clue_gpl-2.0_1.RULE
new file mode 100644
index 00000000000..4bd2b96ff64
--- /dev/null
+++ b/src/licensedcode/data/rules/license-clue_gpl-2.0_1.RULE
@@ -0,0 +1,9 @@
+---
+license_expression: gpl-2.0
+is_license_clue: yes
+relevance: 80
+minimum_coverage: 90
+notes: found in linux/net/core/filter.c
+---
+
+EXPORT_PER_CPU_SYMBOL_GPL
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/license-intro_82.RULE b/src/licensedcode/data/rules/license-intro_82.RULE
new file mode 100644
index 00000000000..bbd3b2f6959
--- /dev/null
+++ b/src/licensedcode/data/rules/license-intro_82.RULE
@@ -0,0 +1,6 @@
+---
+license_expression: unknown-license-reference
+is_license_intro: yes
+---
+
+* Some parts copyright and used with permission.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/license-intro_83.RULE b/src/licensedcode/data/rules/license-intro_83.RULE
new file mode 100644
index 00000000000..3342dfd4ad3
--- /dev/null
+++ b/src/licensedcode/data/rules/license-intro_83.RULE
@@ -0,0 +1,7 @@
+---
+license_expression: unknown-license-reference
+is_license_intro: yes
+---
+
+including portions of which come from the
+Developer's Reference Manual and used with permission
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/license-intro_84.RULE b/src/licensedcode/data/rules/license-intro_84.RULE
new file mode 100644
index 00000000000..894212c700a
--- /dev/null
+++ b/src/licensedcode/data/rules/license-intro_84.RULE
@@ -0,0 +1,6 @@
+---
+license_expression: unknown-license-reference
+is_license_intro: yes
+---
+
+Permission to use code in the Developer's manual was granted
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/ms-rndis_1.RULE b/src/licensedcode/data/rules/ms-rndis_1.RULE
new file mode 100644
index 00000000000..563c5eaff49
--- /dev/null
+++ b/src/licensedcode/data/rules/ms-rndis_1.RULE
@@ -0,0 +1,7 @@
+---
+license_expression: ms-rndis
+is_license_notice: yes
+---
+
+* This software was originally developed in conformance with
+* {{Microsoft's Remote NDIS Specification License Agreement}}.
\ No newline at end of file
diff --git a/src/licensedcode/data/rules/proprietary-license_272.RULE b/src/licensedcode/data/rules/proprietary-license_272.RULE
index cb3bde24654..9a038527ffe 100644
--- a/src/licensedcode/data/rules/proprietary-license_272.RULE
+++ b/src/licensedcode/data/rules/proprietary-license_272.RULE
@@ -1,6 +1,6 @@
---
license_expression: proprietary-license
-is_license_notice: yes
+is_license_clue: yes
relevance: 100
---
diff --git a/src/licensedcode/data/rules/proprietary-license_890.RULE b/src/licensedcode/data/rules/proprietary-license_890.RULE
index 9dfdd5a3e09..6ba485bde68 100644
--- a/src/licensedcode/data/rules/proprietary-license_890.RULE
+++ b/src/licensedcode/data/rules/proprietary-license_890.RULE
@@ -9,7 +9,7 @@ notes: https://github.com/mog-rn/my-portfolio/blob/1476cc90573e346f974293fe1321e
BSD 3-Clause License
Redistribution and use in source and binary forms, with or without
-modification, are not permitted provided that the following condition are met:
+modification, are {{not permitted}} provided that the following condition are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
diff --git a/src/licensedcode/data/rules/public-domain_bare_words.RULE b/src/licensedcode/data/rules/public-domain_bare_words.RULE
index 5d9fb8c1d68..aa90b4812ef 100644
--- a/src/licensedcode/data/rules/public-domain_bare_words.RULE
+++ b/src/licensedcode/data/rules/public-domain_bare_words.RULE
@@ -1,6 +1,6 @@
---
license_expression: public-domain
-is_license_reference: yes
+is_license_clue: yes
is_continuous: yes
relevance: 70
---
diff --git a/src/licensedcode/data/rules/unknown-license-reference_66.RULE b/src/licensedcode/data/rules/unknown-license-reference_66.RULE
index 7e31b9babb3..2e4a738b080 100644
--- a/src/licensedcode/data/rules/unknown-license-reference_66.RULE
+++ b/src/licensedcode/data/rules/unknown-license-reference_66.RULE
@@ -2,6 +2,8 @@
license_expression: unknown-license-reference
is_license_reference: yes
relevance: 100
+is_deprecated: yes
+notes: this is now the ms-rndis_1.RULE
---
This software was originally developed in conformance with
diff --git a/src/licensedcode/detection.py b/src/licensedcode/detection.py
index ec99622c25f..7e5bf1dcf8a 100644
--- a/src/licensedcode/detection.py
+++ b/src/licensedcode/detection.py
@@ -70,6 +70,7 @@ def logger_debug(*args):
return logger.debug(' '.join(isinstance(a, str) and a or repr(a) for a in args))
MATCHER_UNDETECTED = '5-undetected'
+MATCHER_UNDETECTED_ORDER = 4
# All values of match_coverage less than this value then they are not considered
# as perfect detections
@@ -641,7 +642,6 @@ def len(self):
def coverage(self):
return self.match_coverage
- @property
def matched_text(self, whole_lines=False, highlight=True):
return self.text
@@ -713,8 +713,8 @@ def to_dict(
if rule_details:
result["rule_notes"] = self.rule.notes
result["referenced_filenames"] = self.rule.referenced_filenames
- if include_text and self.matched_text:
- result['matched_text'] = self.matched_text
+ if include_text and self.text:
+ result['matched_text'] = self.text
if license_text_diagnostics and self.matched_text_diagnostics:
result['matched_text_diagnostics'] = self.matched_text_diagnostics
if rule_details:
@@ -1163,6 +1163,31 @@ def is_false_positive(license_matches, package_license=False):
if package_license:
return False
+ # FIXME: actually run copyright detection here?
+ copyright_words = ["copyright", "(c)"]
+ has_copyrights = all(
+ True
+ for license_match in license_matches
+ if any(
+ True
+ for word in copyright_words
+ if word in license_match.matched_text().lower()
+ )
+ )
+ has_full_relevance = all(
+ True
+ for license_match in license_matches
+ if license_match.rule.relevance == 100
+ )
+ if has_copyrights or has_full_relevance:
+ return False
+
+ has_low_relevance = all(
+ True
+ for license_match in license_matches
+ if license_match.rule.relevance < 60
+ )
+
start_line_region = min(
license_match.start_line for license_match in license_matches
)
@@ -1194,13 +1219,13 @@ def is_false_positive(license_matches, package_license=False):
is_single_match = len(license_matches) == 1
- if is_single_match and is_bare_rule:
+ if is_single_match and is_bare_rule and has_low_relevance:
return True
if is_gpl and all_match_rule_length_one:
return True
- if start_line_region > FALSE_POSITIVE_START_LINE_THRESHOLD and any(
+ if has_low_relevance and start_line_region > FALSE_POSITIVE_START_LINE_THRESHOLD and any(
match_rule_length_value <= FALSE_POSITIVE_RULE_LENGTH_THRESHOLD
for match_rule_length_value in match_rule_length_values
):
@@ -1603,6 +1628,7 @@ def get_undetected_matches(query_string):
hispan=hispan,
query_run_start=match_start,
matcher=MATCHER_UNDETECTED,
+ matcher_order=MATCHER_UNDETECTED_ORDER,
query=query_run.query,
)
diff --git a/src/licensedcode/match.py b/src/licensedcode/match.py
index afb0178a8ca..84a60e70c98 100644
--- a/src/licensedcode/match.py
+++ b/src/licensedcode/match.py
@@ -213,6 +213,15 @@ class LicenseMatch(object):
)
)
+ matcher_order = attr.ib(
+ default=0,
+ metadata=dict(
+ help='An integer indicating the precedence of a matcher when compared to other matchers '
+ 'where the lowest value has the highest precedence. Used to select which of two '
+ 'equal matches to keep.'
+ )
+ )
+
start_line = attr.ib(
default=0,
metadata=dict(help='match start line, 1-based')
@@ -624,8 +633,10 @@ def combine(self, other):
if other.matcher not in self.matcher:
newmatcher = ' '.join([self.matcher, other.matcher])
+ newmatcher_order = max([self.matcher_order, other.matcher_order])
else:
newmatcher = self.matcher
+ newmatcher_order = self.matcher_order
if (
self.discard_reason == DiscardReason.NOT_DISCARDED
@@ -655,6 +666,7 @@ def combine(self, other):
hispan=Span(self.hispan | other.hispan),
query_run_start=min(self.query_run_start, other.query_run_start),
matcher=newmatcher,
+ matcher_order=newmatcher_order,
query=self.query,
discard_reason=discard_reason,
)
@@ -671,6 +683,7 @@ def update(self, other):
self.matcher = combined.matcher
self.query_run_start = min(self.query_run_start, other.query_run_start)
self.matcher = combined.matcher
+ self.matcher_order = combined.matcher_order
self.discard_reason = combined.discard_reason
return self
@@ -852,7 +865,7 @@ def merge_matches(matches, max_dist=None, trace=TRACE_MERGE):
# only merge matches with the same rule: sort then group by rule for the
# same rule, sort on start, longer high, longer match, matcher type
- sorter = lambda m: (m.rule.identifier, m.qspan.start, -m.hilen(), -m.len(), m.matcher)
+ sorter = lambda m: (m.rule.identifier, m.qspan.start, -m.hilen(), -m.len(), m.matcher_order)
matches.sort(key=sorter)
matches_by_rule = [
(rid, list(rule_matches))
@@ -1069,7 +1082,7 @@ def filter_contained_matches(
# NOTE: we do not filter matches in place: sorted creates a copy
# sort on start, longer high, longer match, matcher type
- sorter = lambda m: (m.qspan.start, -m.hilen(), -m.len(), m.matcher)
+ sorter = lambda m: (m.qspan.start, -m.hilen(), -m.len(), m.matcher_order)
matches = sorted(matches, key=sorter)
matches_pop = matches.pop
@@ -1190,7 +1203,7 @@ def filter_overlapping_matches(
# NOTE: we do not filter matches in place: sorted creates a copy
# sort on start, longer high, longer match, matcher type
- sorter = lambda m: (m.qspan.start, -m.hilen(), -m.len(), m.matcher)
+ sorter = lambda m: (m.qspan.start, -m.hilen(), -m.len(), m.matcher_order)
matches = sorted(matches, key=sorter)
matches_pop = matches.pop
@@ -2734,6 +2747,12 @@ def _log(_matches, _discarded, msg):
matches, discarded_contained = filter_contained_matches(matches)
_log(matches, discarded_contained, 'NON CONTAINED')
+ if trace_basic:
+ logger_debug(' #####refine_matches: after FILTER matches#', len(matches))
+ if trace:
+ for m in matches:
+ logger_debug(m)
+
matches, discarded_overlapping = filter_overlapping_matches(matches)
_log(matches, discarded_overlapping, 'NON OVERLAPPING')
diff --git a/src/licensedcode/match_aho.py b/src/licensedcode/match_aho.py
index 7a46821a31e..160c25a9c2f 100644
--- a/src/licensedcode/match_aho.py
+++ b/src/licensedcode/match_aho.py
@@ -76,10 +76,19 @@ def add_sequence(automaton, tids, rid, start=0, with_duplicates=False):
MATCH_AHO_EXACT = '2-aho'
+MATCH_AHO_EXACT_ORDER = 2
MATCH_AHO_FRAG = '5-aho-frag'
+MATCH_AHO_FRAG_ORDER = 5
-def exact_match(idx, query_run, automaton, matcher=MATCH_AHO_EXACT, **kwargs):
+def exact_match(
+ idx,
+ query_run,
+ automaton,
+ matcher=MATCH_AHO_EXACT,
+ matcher_order=MATCH_AHO_EXACT_ORDER,
+ **kwargs,
+):
"""
Return a list of exact LicenseMatch by matching the `query_run` against
the `automaton` and `idx` index.
@@ -111,7 +120,15 @@ def exact_match(idx, query_run, automaton, matcher=MATCH_AHO_EXACT, **kwargs):
rule = rules_by_rid[rid]
match = LicenseMatch(
- rule, qspan, ispan, hispan, qbegin, matcher=matcher, query=query)
+ rule=rule,
+ qspan=qspan,
+ ispan=ispan,
+ hispan=hispan,
+ query_run_start=qbegin,
+ matcher=matcher,
+ matcher_order=matcher_order,
+ query=query,
+ )
matches_append(match)
if TRACE and matches:
logger_debug(' ##exact_AHO: matches found#')
@@ -234,8 +251,16 @@ def match_fragments(idx, query_run):
qspan = Span(range(qpos, qpos + mlen))
ispan = Span(range(ipos, ipos + mlen))
hispan = Span(p for p in ispan if itokens[p] < len_legalese)
- match = LicenseMatch(rule, qspan, ispan, hispan, qbegin,
- matcher=MATCH_AHO_FRAG, query=query)
+ match = LicenseMatch(
+ rule=rule,
+ qspan=qspan,
+ ispan=ispan,
+ hispan=hispan,
+ qbegin=qbegin,
+ matcher=MATCH_AHO_FRAG,
+ matcher_order=MATCH_AHO_FRAG_ORDER,
+ query=query,
+ )
frag_matches.append(match)
# Merge matches as usual
diff --git a/src/licensedcode/match_hash.py b/src/licensedcode/match_hash.py
index e0ed6c8b719..92c77c1468f 100644
--- a/src/licensedcode/match_hash.py
+++ b/src/licensedcode/match_hash.py
@@ -10,7 +10,6 @@
from array import array
from hashlib import sha1
-
from licensedcode.match import LicenseMatch
from licensedcode.spans import Span
@@ -39,6 +38,7 @@ def logger_debug(*args):
pass
MATCH_HASH = '1-hash'
+MATCH_HASH_ORDER = 0
def tokens_hash(tokens):
@@ -73,6 +73,15 @@ def hash_match(idx, query_run, **kwargs):
qspan = Span(range(query_run.start, query_run.end + 1))
ispan = Span(range(0, rule.length))
hispan = Span(p for p in ispan if itokens[p] < len_legalese)
- match = LicenseMatch(rule, qspan, ispan, hispan, query_run.start, matcher=MATCH_HASH, query=query_run.query)
+ match = LicenseMatch(
+ rule=rule,
+ qspan=qspan,
+ ispan=ispan,
+ hispan=hispan,
+ query_run_start=query_run.start,
+ matcher=MATCH_HASH,
+ matcher_order=MATCH_HASH_ORDER,
+ query=query_run.query,
+ )
matches.append(match)
return matches
diff --git a/src/licensedcode/match_seq.py b/src/licensedcode/match_seq.py
index 26e59e37f02..6e297398021 100644
--- a/src/licensedcode/match_seq.py
+++ b/src/licensedcode/match_seq.py
@@ -10,11 +10,9 @@
from time import time
import sys
-
from licensedcode.match import LicenseMatch
from licensedcode.spans import Span
-
TRACE = False
TRACE2 = False
TRACE3 = False
@@ -38,17 +36,24 @@ def logger_debug(*args): pass
def logger_debug(*args):
return prn(' '.join(isinstance(a, str) and a or repr(a) for a in args))
-
"""
Matching strategy using pair-wise multiple local sequences alignment and diff-
like approaches.
"""
MATCH_SEQ = '3-seq'
-
-
-def match_sequence(idx, rule, query_run, high_postings, start_offset=0,
- match_blocks=None, deadline=sys.maxsize):
+MATCH_SEQ_ORDER = 3
+
+
+def match_sequence(
+ idx,
+ rule,
+ query_run,
+ high_postings,
+ start_offset=0,
+ match_blocks=None,
+ deadline=sys.maxsize,
+):
"""
Return a list of LicenseMatch by matching the `query_run` tokens sequence
starting at `start_offset` against the `idx` index for the candidate `rule`.
@@ -107,8 +112,15 @@ def match_sequence(idx, rule, query_run, high_postings, start_offset=0,
ispan = Span(range(ipos, ipos + mlen))
hispan = Span(p for p in ispan if itokens[p] < len_legalese)
match = LicenseMatch(
- rule, qspan, ispan, hispan, qbegin,
- matcher=MATCH_SEQ, query=query)
+ rule=rule,
+ qspan=qspan,
+ ispan=ispan,
+ hispan=hispan,
+ query_run_start=qbegin,
+ matcher=MATCH_SEQ,
+ matcher_order=MATCH_SEQ_ORDER,
+ query=query,
+ )
matches.append(match)
if TRACE2:
diff --git a/src/licensedcode/match_spdx_lid.py b/src/licensedcode/match_spdx_lid.py
index d5937fb1466..5efe7444d6b 100644
--- a/src/licensedcode/match_spdx_lid.py
+++ b/src/licensedcode/match_spdx_lid.py
@@ -59,6 +59,7 @@ def logger_debug(*args):
return logger.debug(' '.join(isinstance(a, str) and a or repr(a) for a in args))
MATCH_SPDX_ID = '1-spdx-id'
+MATCH_SPDX_ID_ORDER = 2
def spdx_id_match(idx, query_run, text, expression_symbols=None):
@@ -112,6 +113,7 @@ def spdx_id_match(idx, query_run, text, expression_symbols=None):
hispan=hispan,
query_run_start=match_start,
matcher=MATCH_SPDX_ID,
+ matcher_order=MATCH_SPDX_ID_ORDER,
query=query_run.query,
)
return match
@@ -136,7 +138,7 @@ def get_spdx_expression(text, expression_symbols=None):
expression_symbols = get_spdx_symbols()
unknown_symbol = get_unknown_spdx_symbol()
- #_prefix, exp_text = prepare_text(text)
+ # _prefix, exp_text = prepare_text(text)
expression = get_expression(
text=text,
@@ -361,7 +363,7 @@ def clean_text(text):
if is_markup_text(text):
text = demarkup_text(text)
- dangling_markup = ['','
','', '']
+ dangling_markup = ['', '', '', '']
for markup in dangling_markup:
if markup in text:
text = text.replace(markup, '')
@@ -384,7 +386,7 @@ def clean_text(text):
if '">' in text:
text_fragments = text.split('">')
if text_fragments[1] in text_fragments[0]:
- text = text_fragments[0]
+ text = text_fragments[0]
return ' '.join(text.split())
@@ -393,7 +395,6 @@ def clean_text(text):
'(spdx(?:\\-|\\s)+licen(?:s|c)e(?:\\-|\\s)+identifier\\s*:?\\s*)',
re.IGNORECASE).split
-
_nuget_split_spdx_lid = re.compile(
'(licenses(?:\\.|\\s)+nuget(?:\\.|\\s)+org\\s*:?\\s*)',
re.IGNORECASE).split
diff --git a/src/licensedcode/match_unknown.py b/src/licensedcode/match_unknown.py
index b83a62a01e0..820c9ba2c91 100644
--- a/src/licensedcode/match_unknown.py
+++ b/src/licensedcode/match_unknown.py
@@ -44,6 +44,7 @@ def logger_debug(*args):
pass
MATCH_UNKNOWN = '6-unknown'
+MATCH_UNKNOWN_ORDER = 6
UNKNOWN_NGRAM_LENGTH = 6
@@ -176,7 +177,7 @@ def get_tokens(_toks):
match_len = len(qspan)
if TRACE:
- #print('match_unknowns: matched_span:', get_tokens(matched_tokens))
+ # print('match_unknowns: matched_span:', get_tokens(matched_tokens))
print('match_unknowns: qspan, match_len, matched_span:', qspan, match_len, matched_tokens)
# we use the query side to build the ispans
@@ -227,6 +228,7 @@ def get_tokens(_toks):
hispan=hispan,
query_run_start=query_run.start,
matcher=MATCH_UNKNOWN,
+ matcher_order=MATCH_UNKNOWN_ORDER,
query=query,
)
diff --git a/tests/licensedcode/data/datadriven/external/spdx/uboot.c.yml b/tests/licensedcode/data/datadriven/external/spdx/uboot.c.yml
index 423ebdcd383..62635b1218b 100644
--- a/tests/licensedcode/data/datadriven/external/spdx/uboot.c.yml
+++ b/tests/licensedcode/data/datadriven/external/spdx/uboot.c.yml
@@ -32,8 +32,8 @@ license_expressions:
- gpl-2.0-plus
- gpl-2.0-plus OR bsd-simplified
- gpl-2.0-plus OR bsd-simplified
- - gpl-2.0-plus OR bsd-new
- - gpl-2.0-plus OR bsd-new
+ - gpl-2.0-plus AND bsd-new
+ - gpl-2.0-plus AND bsd-new
- gpl-2.0 OR ibm-pibs
- isc
- lgpl-2.0-plus
diff --git a/tests/licensedcode/data/datadriven/lic4/airo.c b/tests/licensedcode/data/datadriven/lic4/airo.c
new file mode 100644
index 00000000000..849d10c7aa5
--- /dev/null
+++ b/tests/licensedcode/data/datadriven/lic4/airo.c
@@ -0,0 +1,15 @@
+ This code is released under both the GPL version 2 and BSD licenses.
+ Either license may be used. The respective licenses are found at
+ the end of this file.
+
+ This code was developed by Benjamin Reed
+ including portions of which come from the Aironet PC4500
+ Developer's Reference Manual and used with permission. Copyright
+ (C) 1999 Benjamin Reed. All Rights Reserved. Permission to use
+ code in the Developer's manual was granted for this driver by
+ Aironet. Major code contributions were received from Javier Achirica
+ and Jean Tourrilhes .
+ Code was also integrated from the Cisco Aironet driver for Linux.
+ Support for MPI350 cards was added by Fabrice Bellet
+ .
+
diff --git a/tests/licensedcode/data/datadriven/lic4/airo.c.yml b/tests/licensedcode/data/datadriven/lic4/airo.c.yml
new file mode 100644
index 00000000000..2ee94967bb3
--- /dev/null
+++ b/tests/licensedcode/data/datadriven/lic4/airo.c.yml
@@ -0,0 +1,2 @@
+license_expressions:
+ - gpl-2.0 OR bsd-new
diff --git a/tests/licensedcode/data/datadriven/lic4/bsd-bare-in-spdx.txt b/tests/licensedcode/data/datadriven/lic4/bsd-bare-in-spdx.txt
new file mode 100644
index 00000000000..6f59e419eb2
--- /dev/null
+++ b/tests/licensedcode/data/datadriven/lic4/bsd-bare-in-spdx.txt
@@ -0,0 +1 @@
+ * SPDX-License-Identifier: (GPL-2.0+ OR BSD)
diff --git a/tests/licensedcode/data/datadriven/lic4/bsd-bare-in-spdx.txt.yml b/tests/licensedcode/data/datadriven/lic4/bsd-bare-in-spdx.txt.yml
new file mode 100644
index 00000000000..b06479745fc
--- /dev/null
+++ b/tests/licensedcode/data/datadriven/lic4/bsd-bare-in-spdx.txt.yml
@@ -0,0 +1,2 @@
+license_expressions:
+ - gpl-2.0-plus OR bsd-new
diff --git a/tests/licensedcode/data/datadriven/lic4/memdump.cocci b/tests/licensedcode/data/datadriven/lic4/memdump.cocci
new file mode 100644
index 00000000000..e8d6a79e9fd
--- /dev/null
+++ b/tests/licensedcode/data/datadriven/lic4/memdump.cocci
@@ -0,0 +1,8 @@
+///
+// Confidence: High
+// Copyright: (C) 2010-2012 Nicolas Palix. GPLv2.
+// Copyright: (C) 2010-2012 Julia Lawall, INRIA/LIP6. GPLv2.
+// Copyright: (C) 2010-2012 Gilles Muller, INRIA/LiP6. GPLv2.
+// URL: http://coccinelle.lip6.fr/
+// Comments:
+// Options: --no-includes --include-headers
\ No newline at end of file
diff --git a/tests/licensedcode/data/datadriven/lic4/memdump.cocci.yml b/tests/licensedcode/data/datadriven/lic4/memdump.cocci.yml
new file mode 100644
index 00000000000..d793b4ed4fe
--- /dev/null
+++ b/tests/licensedcode/data/datadriven/lic4/memdump.cocci.yml
@@ -0,0 +1,4 @@
+license_expressions:
+ - gpl-2.0
+ - gpl-2.0
+ - gpl-2.0
diff --git a/tests/licensedcode/data/plugin_license/scan/ffmpeg-license.expected.json b/tests/licensedcode/data/plugin_license/scan/ffmpeg-license.expected.json
index 07807553ad2..a2c4b775c00 100644
--- a/tests/licensedcode/data/plugin_license/scan/ffmpeg-license.expected.json
+++ b/tests/licensedcode/data/plugin_license/scan/ffmpeg-license.expected.json
@@ -82,6 +82,47 @@
}
]
},
+ {
+ "identifier": "gpl_2_0_and_lgpl_2_0_plus-e597690d-3d55-0948-8697-914f460389e8",
+ "license_expression": "gpl-2.0 AND lgpl-2.0-plus",
+ "license_expression_spdx": "GPL-2.0-only AND LGPL-2.0-or-later",
+ "detection_count": 1,
+ "detection_log": [],
+ "reference_matches": [
+ {
+ "license_expression": "gpl-2.0",
+ "license_expression_spdx": "GPL-2.0-only",
+ "from_file": "ffmpeg-LICENSE.md",
+ "start_line": 100,
+ "end_line": 100,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "gpl-2.0_bare_single_word.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0_bare_single_word.RULE",
+ "matched_text": "are incompatible with the GPLv2 and v3. We do not know for certain if their",
+ "matched_text_diagnostics": "GPLv2"
+ },
+ {
+ "license_expression": "lgpl-2.0-plus",
+ "license_expression_spdx": "LGPL-2.0-or-later",
+ "from_file": "ffmpeg-LICENSE.md",
+ "start_line": 101,
+ "end_line": 101,
+ "matcher": "2-aho",
+ "score": 60.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 60,
+ "rule_identifier": "lgpl_bare_single_word.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE",
+ "matched_text": "licenses are compatible with the LGPL.",
+ "matched_text_diagnostics": "LGPL."
+ }
+ ]
+ },
{
"identifier": "ijg_and_mit-e50613dc-8a09-65cc-c498-5d9527795382",
"license_expression": "ijg AND mit",
@@ -141,6 +182,31 @@
}
]
},
+ {
+ "identifier": "lgpl_2_0_plus-e66c5b24-33ce-ea1b-0e3b-28952361ec32",
+ "license_expression": "lgpl-2.0-plus",
+ "license_expression_spdx": "LGPL-2.0-or-later",
+ "detection_count": 1,
+ "detection_log": [],
+ "reference_matches": [
+ {
+ "license_expression": "lgpl-2.0-plus",
+ "license_expression_spdx": "LGPL-2.0-or-later",
+ "from_file": "ffmpeg-LICENSE.md",
+ "start_line": 104,
+ "end_line": 104,
+ "matcher": "2-aho",
+ "score": 60.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 60,
+ "rule_identifier": "lgpl_bare_single_word.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE",
+ "matched_text": "be under a complex license mix that is more restrictive than the LGPL and that",
+ "matched_text_diagnostics": "LGPL"
+ }
+ ]
+ },
{
"identifier": "lgpl_2_1_plus_and_other_permissive_and_gpl_2_0_plus-666058ef-8c38-3b17-d8e7-448b304de833",
"license_expression": "lgpl-2.1-plus AND other-permissive AND gpl-2.0-plus",
@@ -228,8 +294,8 @@
{
"path": "ffmpeg-LICENSE.md",
"type": "file",
- "detected_license_expression": "(lgpl-2.1-plus AND other-permissive AND gpl-2.0-plus) AND (lgpl-3.0 AND lgpl-3.0-plus AND (lgpl-3.0 AND gpl-3.0)) AND (ijg AND mit) AND gpl-1.0-plus AND (gpl-2.0 AND apache-2.0 AND lgpl-3.0-plus)",
- "detected_license_expression_spdx": "(LGPL-2.1-or-later AND LicenseRef-scancode-other-permissive AND GPL-2.0-or-later) AND (LGPL-3.0-only AND LGPL-3.0-or-later AND (LGPL-3.0-only AND GPL-3.0-only)) AND (IJG AND MIT) AND GPL-1.0-or-later AND (GPL-2.0-only AND Apache-2.0 AND LGPL-3.0-or-later)",
+ "detected_license_expression": "(lgpl-2.1-plus AND other-permissive AND gpl-2.0-plus) AND (lgpl-3.0 AND lgpl-3.0-plus AND (lgpl-3.0 AND gpl-3.0)) AND (ijg AND mit) AND gpl-1.0-plus AND (gpl-2.0 AND apache-2.0 AND lgpl-3.0-plus) AND (gpl-2.0 AND lgpl-2.0-plus) AND lgpl-2.0-plus",
+ "detected_license_expression_spdx": "(LGPL-2.1-or-later AND LicenseRef-scancode-other-permissive AND GPL-2.0-or-later) AND (LGPL-3.0-only AND LGPL-3.0-or-later AND (LGPL-3.0-only AND GPL-3.0-only)) AND (IJG AND MIT) AND GPL-1.0-or-later AND (GPL-2.0-only AND Apache-2.0 AND LGPL-3.0-or-later) AND (GPL-2.0-only AND LGPL-2.0-or-later) AND LGPL-2.0-or-later",
"license_detections": [
{
"license_expression": "lgpl-2.1-plus AND other-permissive AND gpl-2.0-plus",
@@ -448,41 +514,73 @@
],
"detection_log": [],
"identifier": "gpl_2_0_and_apache_2_0_and_lgpl_3_0_plus-c2393e5a-e531-304f-58a9-a6431d46d214"
- }
- ],
- "license_clues": [
+ },
{
- "license_expression": "gpl-2.0",
- "spdx_license_expression": "GPL-2.0-only",
- "from_file": "ffmpeg-LICENSE.md",
- "start_line": 100,
- "end_line": 100,
- "matcher": "2-aho",
- "score": 100.0,
- "matched_length": 1,
- "match_coverage": 100.0,
- "rule_relevance": 100,
- "rule_identifier": "gpl-2.0_bare_single_word.RULE",
- "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0_bare_single_word.RULE",
- "matched_text": "are incompatible with the GPLv2 and v3. We do not know for certain if their",
- "matched_text_diagnostics": "GPLv2"
+ "license_expression": "gpl-2.0 AND lgpl-2.0-plus",
+ "license_expression_spdx": "GPL-2.0-only AND LGPL-2.0-or-later",
+ "matches": [
+ {
+ "license_expression": "gpl-2.0",
+ "spdx_license_expression": "GPL-2.0-only",
+ "from_file": "ffmpeg-LICENSE.md",
+ "start_line": 100,
+ "end_line": 100,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "gpl-2.0_bare_single_word.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0_bare_single_word.RULE",
+ "matched_text": "are incompatible with the GPLv2 and v3. We do not know for certain if their",
+ "matched_text_diagnostics": "GPLv2"
+ },
+ {
+ "license_expression": "lgpl-2.0-plus",
+ "spdx_license_expression": "LGPL-2.0-or-later",
+ "from_file": "ffmpeg-LICENSE.md",
+ "start_line": 101,
+ "end_line": 101,
+ "matcher": "2-aho",
+ "score": 60.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 60,
+ "rule_identifier": "lgpl_bare_single_word.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE",
+ "matched_text": "licenses are compatible with the LGPL.",
+ "matched_text_diagnostics": "LGPL."
+ }
+ ],
+ "detection_log": [],
+ "identifier": "gpl_2_0_and_lgpl_2_0_plus-e597690d-3d55-0948-8697-914f460389e8"
},
{
"license_expression": "lgpl-2.0-plus",
- "spdx_license_expression": "LGPL-2.0-or-later",
- "from_file": "ffmpeg-LICENSE.md",
- "start_line": 101,
- "end_line": 101,
- "matcher": "2-aho",
- "score": 75.0,
- "matched_length": 1,
- "match_coverage": 100.0,
- "rule_relevance": 75,
- "rule_identifier": "lgpl_bare_single_word.RULE",
- "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE",
- "matched_text": "licenses are compatible with the LGPL.",
- "matched_text_diagnostics": "LGPL."
- },
+ "license_expression_spdx": "LGPL-2.0-or-later",
+ "matches": [
+ {
+ "license_expression": "lgpl-2.0-plus",
+ "spdx_license_expression": "LGPL-2.0-or-later",
+ "from_file": "ffmpeg-LICENSE.md",
+ "start_line": 104,
+ "end_line": 104,
+ "matcher": "2-aho",
+ "score": 60.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 60,
+ "rule_identifier": "lgpl_bare_single_word.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE",
+ "matched_text": "be under a complex license mix that is more restrictive than the LGPL and that",
+ "matched_text_diagnostics": "LGPL"
+ }
+ ],
+ "detection_log": [],
+ "identifier": "lgpl_2_0_plus-e66c5b24-33ce-ea1b-0e3b-28952361ec32"
+ }
+ ],
+ "license_clues": [
{
"license_expression": "proprietary-license",
"spdx_license_expression": "LicenseRef-scancode-proprietary-license",
@@ -498,22 +596,6 @@
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/proprietary-license_490.RULE",
"matched_text": "If you wish to enable these libraries, pass --enable-nonfree to configure.",
"matched_text_diagnostics": "enable-nonfree"
- },
- {
- "license_expression": "lgpl-2.0-plus",
- "spdx_license_expression": "LGPL-2.0-or-later",
- "from_file": "ffmpeg-LICENSE.md",
- "start_line": 104,
- "end_line": 104,
- "matcher": "2-aho",
- "score": 75.0,
- "matched_length": 1,
- "match_coverage": 100.0,
- "rule_relevance": 75,
- "rule_identifier": "lgpl_bare_single_word.RULE",
- "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE",
- "matched_text": "be under a complex license mix that is more restrictive than the LGPL and that",
- "matched_text_diagnostics": "LGPL"
}
],
"percentage_of_license_text": 34.78,
diff --git a/tests/packagedcode/data/debian/copyright/debian-slim-2021-04-07/usr/share/doc/libgcrypt20/copyright-detailed.expected.yml b/tests/packagedcode/data/debian/copyright/debian-slim-2021-04-07/usr/share/doc/libgcrypt20/copyright-detailed.expected.yml
index 80a1cf0b1be..8e1c236b241 100644
--- a/tests/packagedcode/data/debian/copyright/debian-slim-2021-04-07/usr/share/doc/libgcrypt20/copyright-detailed.expected.yml
+++ b/tests/packagedcode/data/debian/copyright/debian-slim-2021-04-07/usr/share/doc/libgcrypt20/copyright-detailed.expected.yml
@@ -348,8 +348,8 @@ license_detections:
* USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
identifier: bsd_new_or_gpl_1_0_plus-f8085429-0058-17f2-8a37-27a1965c9f8a
- - license_expression: x11-xconsortium AND public-domain
- license_expression_spdx: X11 AND LicenseRef-scancode-public-domain
+ - license_expression: x11-xconsortium
+ license_expression_spdx: X11
matches:
- license_expression: x11-xconsortium
spdx_license_expression: X11
@@ -385,6 +385,10 @@ license_detections:
be used in advertising or otherwise to promote the sale, use or other deal-
ings in this Software without prior written authorization from the X Consor-
tium.
+ identifier: x11_xconsortium-8bc3e205-5f29-ecad-90bc-2f492c65be46
+ - license_expression: public-domain
+ license_expression_spdx: LicenseRef-scancode-public-domain
+ matches:
- license_expression: public-domain
spdx_license_expression: LicenseRef-scancode-public-domain
from_file:
@@ -398,7 +402,7 @@ license_detections:
rule_identifier: public-domain_bare_words.RULE
rule_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/public-domain_bare_words.RULE
matched_text: Public domain
- identifier: x11_xconsortium_and_public_domain-3a4b5640-3d0e-289d-2ed6-5568ba1f72cd
+ identifier: public_domain-3dd945ae-65df-7d90-6467-60f8ecf2eb77
- license_expression: public-domain AND ocb-open-source-2013
license_expression_spdx: LicenseRef-scancode-public-domain AND LicenseRef-scancode-ocb-open-source-2013
matches:
diff --git a/tests/packagedcode/data/license_detection/reference-to-package/fusiondirectory.expected.json b/tests/packagedcode/data/license_detection/reference-to-package/fusiondirectory.expected.json
index f3a01506955..4b37c79dab4 100644
--- a/tests/packagedcode/data/license_detection/reference-to-package/fusiondirectory.expected.json
+++ b/tests/packagedcode/data/license_detection/reference-to-package/fusiondirectory.expected.json
@@ -5156,12 +5156,9 @@
{
"identifier": "gpl_2_0_plus-fed2dc38-09ac-103e-1b86-4a4f5c00614a",
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"detection_count": 2,
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"reference_matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -5542,6 +5539,31 @@
}
]
},
+ {
+ "identifier": "lgpl_3_0-6b4a45da-85cc-8eb0-5613-be81d4efd6a5",
+ "license_expression": "lgpl-3.0",
+ "license_expression_spdx": "LGPL-3.0-only",
+ "detection_count": 2,
+ "detection_log": [],
+ "reference_matches": [
+ {
+ "license_expression": "lgpl-3.0",
+ "license_expression_spdx": "LGPL-3.0-only",
+ "from_file": "fusiondirectory/debian/copyright.in",
+ "start_line": 2925,
+ "end_line": 2925,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 3,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "lgpl-3.0_37.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-3.0_37.RULE",
+ "matched_text": "License: LGPL (v3 or later)",
+ "matched_text_diagnostics": "License: LGPL (v3"
+ }
+ ]
+ },
{
"identifier": "lgpl_3_0_plus-4c8d95b2-1acf-7a81-473c-d8e70962288c",
"license_expression": "lgpl-3.0-plus",
@@ -5570,12 +5592,9 @@
{
"identifier": "mit-1f9f2ae8-7020-0a13-7934-461c752929a4",
"license_expression": "mit",
- "license_expression_spdx": null,
+ "license_expression_spdx": "MIT",
"detection_count": 6,
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"reference_matches": [
{
"license_expression": "mit",
@@ -5595,15 +5614,53 @@
}
]
},
+ {
+ "identifier": "mit_and_other_permissive-907b56d6-95b9-e85c-83c0-efd967c7e30a",
+ "license_expression": "mit AND other-permissive",
+ "license_expression_spdx": "MIT AND LicenseRef-scancode-other-permissive",
+ "detection_count": 2,
+ "detection_log": [],
+ "reference_matches": [
+ {
+ "license_expression": "mit",
+ "license_expression_spdx": "MIT",
+ "from_file": "fusiondirectory/debian/copyright.in",
+ "start_line": 3010,
+ "end_line": 3010,
+ "matcher": "2-aho",
+ "score": 90.0,
+ "matched_length": 3,
+ "match_coverage": 100.0,
+ "rule_relevance": 90,
+ "rule_identifier": "mit_221.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_221.RULE",
+ "matched_text": "License: MIT/X11 (BSD like)",
+ "matched_text_diagnostics": "License: MIT/X11 ("
+ },
+ {
+ "license_expression": "other-permissive",
+ "license_expression_spdx": "LicenseRef-scancode-other-permissive",
+ "from_file": "fusiondirectory/debian/copyright.in",
+ "start_line": 3010,
+ "end_line": 3010,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 2,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "other-permissive_16.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/other-permissive_16.RULE",
+ "matched_text": "License: MIT/X11 (BSD like)",
+ "matched_text_diagnostics": "BSD like)"
+ }
+ ]
+ },
{
"identifier": "public_domain-1a6a4f2c-bd92-9942-920f-be3d0c2bbda6",
"license_expression": "public-domain",
- "license_expression_spdx": null,
+ "license_expression_spdx": "LicenseRef-scancode-public-domain",
"detection_count": 2,
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"reference_matches": [
{
"license_expression": "public-domain",
@@ -5622,6 +5679,63 @@
"matched_text_diagnostics": "License: public-domain"
}
]
+ },
+ {
+ "identifier": "public_domain_and_bsd_original_and_gpl_1_0_plus-ccb73883-974d-42eb-d572-39fa7bf22f4c",
+ "license_expression": "public-domain AND bsd-original AND gpl-1.0-plus",
+ "license_expression_spdx": "LicenseRef-scancode-public-domain AND BSD-4-Clause AND GPL-1.0-or-later",
+ "detection_count": 2,
+ "detection_log": [],
+ "reference_matches": [
+ {
+ "license_expression": "public-domain",
+ "license_expression_spdx": "LicenseRef-scancode-public-domain",
+ "from_file": "fusiondirectory/debian/copyright.in",
+ "start_line": 3016,
+ "end_line": 3016,
+ "matcher": "2-aho",
+ "score": 99.0,
+ "matched_length": 3,
+ "match_coverage": 100.0,
+ "rule_relevance": 99,
+ "rule_identifier": "pypi_public_domain.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/pypi_public_domain.RULE",
+ "matched_text": "License: Public domain BSD (4 clause) GPL",
+ "matched_text_diagnostics": "License: Public domain"
+ },
+ {
+ "license_expression": "bsd-original",
+ "license_expression_spdx": "BSD-4-Clause",
+ "from_file": "fusiondirectory/debian/copyright.in",
+ "start_line": 3016,
+ "end_line": 3016,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 3,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "spdx_license_id_bsd-4-clause_for_bsd-original.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/spdx_license_id_bsd-4-clause_for_bsd-original.RULE",
+ "matched_text": "License: Public domain BSD (4 clause) GPL",
+ "matched_text_diagnostics": "BSD (4 clause)"
+ },
+ {
+ "license_expression": "gpl-1.0-plus",
+ "license_expression_spdx": "GPL-1.0-or-later",
+ "from_file": "fusiondirectory/debian/copyright.in",
+ "start_line": 3016,
+ "end_line": 3016,
+ "matcher": "2-aho",
+ "score": 50.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 50,
+ "rule_identifier": "gpl_bare_word_only.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl_bare_word_only.RULE",
+ "matched_text": "License: Public domain BSD (4 clause) GPL",
+ "matched_text_diagnostics": "GPL"
+ }
+ ]
}
],
"files": [
@@ -6135,8 +6249,8 @@
"vcs_url": "https://salsa.debian.org/debian/fusiondirectory.git",
"copyright": null,
"holder": null,
- "declared_license_expression": "gpl-2.0-plus AND free-unknown AND bsd-new AND lgpl-3.0-plus AND public-domain AND mit AND bsd-original AND (gpl-2.0-plus AND gpl-3.0-plus AND lgpl-2.1-plus AND lgpl-3.0-plus AND bsd-new AND bsd-original AND mit AND public-domain AND other-permissive) AND bsd-simplified",
- "declared_license_expression_spdx": "GPL-2.0-or-later AND LicenseRef-scancode-free-unknown AND BSD-3-Clause AND LGPL-3.0-or-later AND LicenseRef-scancode-public-domain AND MIT AND BSD-4-Clause AND (GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND BSD-3-Clause AND BSD-4-Clause AND MIT AND LicenseRef-scancode-public-domain AND LicenseRef-scancode-other-permissive) AND BSD-2-Clause",
+ "declared_license_expression": "gpl-2.0-plus AND free-unknown AND bsd-new AND lgpl-3.0-plus AND public-domain AND mit AND bsd-original AND (gpl-2.0-plus AND gpl-3.0-plus AND lgpl-2.1-plus AND lgpl-3.0-plus AND bsd-new AND bsd-original AND mit AND public-domain AND other-permissive) AND bsd-simplified AND lgpl-3.0 AND (mit AND other-permissive) AND (public-domain AND bsd-original AND gpl-1.0-plus)",
+ "declared_license_expression_spdx": "GPL-2.0-or-later AND LicenseRef-scancode-free-unknown AND BSD-3-Clause AND LGPL-3.0-or-later AND LicenseRef-scancode-public-domain AND MIT AND BSD-4-Clause AND (GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND BSD-3-Clause AND BSD-4-Clause AND MIT AND LicenseRef-scancode-public-domain AND LicenseRef-scancode-other-permissive) AND BSD-2-Clause AND LGPL-3.0-only AND (MIT AND LicenseRef-scancode-other-permissive) AND (LicenseRef-scancode-public-domain AND BSD-4-Clause AND GPL-1.0-or-later)",
"license_detections": [
{
"license_expression": "gpl-2.0-plus",
@@ -6500,7 +6614,7 @@
},
{
"license_expression": "public-domain",
- "license_expression_spdx": null,
+ "license_expression_spdx": "LicenseRef-scancode-public-domain",
"matches": [
{
"license_expression": "public-domain",
@@ -6519,15 +6633,12 @@
"matched_text_diagnostics": "License: public-domain"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "public_domain-1a6a4f2c-bd92-9942-920f-be3d0c2bbda6"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -6546,15 +6657,12 @@
"matched_text_diagnostics": "GPL-2+)."
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-fed2dc38-09ac-103e-1b86-4a4f5c00614a"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -6573,15 +6681,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -6600,15 +6705,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "mit",
- "license_expression_spdx": null,
+ "license_expression_spdx": "MIT",
"matches": [
{
"license_expression": "mit",
@@ -6627,15 +6729,12 @@
"matched_text_diagnostics": "License: Expat"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "mit-1f9f2ae8-7020-0a13-7934-461c752929a4"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -6654,15 +6753,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -6681,15 +6777,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -6708,15 +6801,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -6735,15 +6825,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -6762,15 +6849,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -6789,15 +6873,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -6816,15 +6897,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -6843,15 +6921,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -6870,15 +6945,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -6897,10 +6969,7 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
@@ -6929,7 +6998,7 @@
},
{
"license_expression": "mit",
- "license_expression_spdx": null,
+ "license_expression_spdx": "MIT",
"matches": [
{
"license_expression": "mit",
@@ -6948,15 +7017,12 @@
"matched_text_diagnostics": "License: Expat"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "mit-1f9f2ae8-7020-0a13-7934-461c752929a4"
},
{
"license_expression": "mit",
- "license_expression_spdx": null,
+ "license_expression_spdx": "MIT",
"matches": [
{
"license_expression": "mit",
@@ -6975,10 +7041,7 @@
"matched_text_diagnostics": "License: Expat"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "mit-1f9f2ae8-7020-0a13-7934-461c752929a4"
},
{
@@ -7605,6 +7668,30 @@
"detection_log": [],
"identifier": "gpl_2_0_plus-227f50b1-f05e-5b3b-b107-ae1e2f56448b"
},
+ {
+ "license_expression": "lgpl-3.0",
+ "license_expression_spdx": "LGPL-3.0-only",
+ "matches": [
+ {
+ "license_expression": "lgpl-3.0",
+ "spdx_license_expression": "LGPL-3.0-only",
+ "from_file": "fusiondirectory/debian/copyright.in",
+ "start_line": 2925,
+ "end_line": 2925,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 3,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "lgpl-3.0_37.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-3.0_37.RULE",
+ "matched_text": "License: LGPL (v3 or later)",
+ "matched_text_diagnostics": "License: LGPL (v3"
+ }
+ ],
+ "detection_log": [],
+ "identifier": "lgpl_3_0-6b4a45da-85cc-8eb0-5613-be81d4efd6a5"
+ },
{
"license_expression": "gpl-2.0-plus",
"license_expression_spdx": "GPL-2.0-or-later",
@@ -7892,6 +7979,102 @@
],
"detection_log": [],
"identifier": "gpl_2_0_plus-227f50b1-f05e-5b3b-b107-ae1e2f56448b"
+ },
+ {
+ "license_expression": "mit AND other-permissive",
+ "license_expression_spdx": "MIT AND LicenseRef-scancode-other-permissive",
+ "matches": [
+ {
+ "license_expression": "mit",
+ "spdx_license_expression": "MIT",
+ "from_file": "fusiondirectory/debian/copyright.in",
+ "start_line": 3010,
+ "end_line": 3010,
+ "matcher": "2-aho",
+ "score": 90.0,
+ "matched_length": 3,
+ "match_coverage": 100.0,
+ "rule_relevance": 90,
+ "rule_identifier": "mit_221.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_221.RULE",
+ "matched_text": "License: MIT/X11 (BSD like)",
+ "matched_text_diagnostics": "License: MIT/X11 ("
+ },
+ {
+ "license_expression": "other-permissive",
+ "spdx_license_expression": "LicenseRef-scancode-other-permissive",
+ "from_file": "fusiondirectory/debian/copyright.in",
+ "start_line": 3010,
+ "end_line": 3010,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 2,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "other-permissive_16.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/other-permissive_16.RULE",
+ "matched_text": "License: MIT/X11 (BSD like)",
+ "matched_text_diagnostics": "BSD like)"
+ }
+ ],
+ "detection_log": [],
+ "identifier": "mit_and_other_permissive-907b56d6-95b9-e85c-83c0-efd967c7e30a"
+ },
+ {
+ "license_expression": "public-domain AND bsd-original AND gpl-1.0-plus",
+ "license_expression_spdx": "LicenseRef-scancode-public-domain AND BSD-4-Clause AND GPL-1.0-or-later",
+ "matches": [
+ {
+ "license_expression": "public-domain",
+ "spdx_license_expression": "LicenseRef-scancode-public-domain",
+ "from_file": "fusiondirectory/debian/copyright.in",
+ "start_line": 3016,
+ "end_line": 3016,
+ "matcher": "2-aho",
+ "score": 99.0,
+ "matched_length": 3,
+ "match_coverage": 100.0,
+ "rule_relevance": 99,
+ "rule_identifier": "pypi_public_domain.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/pypi_public_domain.RULE",
+ "matched_text": "License: Public domain BSD (4 clause) GPL",
+ "matched_text_diagnostics": "License: Public domain"
+ },
+ {
+ "license_expression": "bsd-original",
+ "spdx_license_expression": "BSD-4-Clause",
+ "from_file": "fusiondirectory/debian/copyright.in",
+ "start_line": 3016,
+ "end_line": 3016,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 3,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "spdx_license_id_bsd-4-clause_for_bsd-original.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/spdx_license_id_bsd-4-clause_for_bsd-original.RULE",
+ "matched_text": "License: Public domain BSD (4 clause) GPL",
+ "matched_text_diagnostics": "BSD (4 clause)"
+ },
+ {
+ "license_expression": "gpl-1.0-plus",
+ "spdx_license_expression": "GPL-1.0-or-later",
+ "from_file": "fusiondirectory/debian/copyright.in",
+ "start_line": 3016,
+ "end_line": 3016,
+ "matcher": "2-aho",
+ "score": 50.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 50,
+ "rule_identifier": "gpl_bare_word_only.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl_bare_word_only.RULE",
+ "matched_text": "License: Public domain BSD (4 clause) GPL",
+ "matched_text_diagnostics": "GPL"
+ }
+ ],
+ "detection_log": [],
+ "identifier": "public_domain_and_bsd_original_and_gpl_1_0_plus-ccb73883-974d-42eb-d572-39fa7bf22f4c"
}
],
"other_license_expression": null,
@@ -13046,7 +13229,7 @@
},
{
"license_expression": "public-domain",
- "license_expression_spdx": null,
+ "license_expression_spdx": "LicenseRef-scancode-public-domain",
"matches": [
{
"license_expression": "public-domain",
@@ -13065,15 +13248,12 @@
"matched_text_diagnostics": "License: public-domain"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "public_domain-1a6a4f2c-bd92-9942-920f-be3d0c2bbda6"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -13092,15 +13272,12 @@
"matched_text_diagnostics": "GPL-2+)."
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-fed2dc38-09ac-103e-1b86-4a4f5c00614a"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -13119,15 +13296,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -13146,15 +13320,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "mit",
- "license_expression_spdx": null,
+ "license_expression_spdx": "MIT",
"matches": [
{
"license_expression": "mit",
@@ -13173,15 +13344,12 @@
"matched_text_diagnostics": "License: Expat"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "mit-1f9f2ae8-7020-0a13-7934-461c752929a4"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -13200,15 +13368,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -13227,15 +13392,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -13254,15 +13416,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -13281,15 +13440,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -13308,15 +13464,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -13335,15 +13488,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -13362,15 +13512,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -13389,15 +13536,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -13416,15 +13560,12 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
"license_expression": "gpl-2.0-plus",
- "license_expression_spdx": null,
+ "license_expression_spdx": "GPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0-plus",
@@ -13443,10 +13584,7 @@
"matched_text_diagnostics": "License: GPL-2+"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "gpl_2_0_plus-53a26be2-1f88-01ec-d294-921768a513c9"
},
{
@@ -13475,7 +13613,7 @@
},
{
"license_expression": "mit",
- "license_expression_spdx": null,
+ "license_expression_spdx": "MIT",
"matches": [
{
"license_expression": "mit",
@@ -13494,15 +13632,12 @@
"matched_text_diagnostics": "License: Expat"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "mit-1f9f2ae8-7020-0a13-7934-461c752929a4"
},
{
"license_expression": "mit",
- "license_expression_spdx": null,
+ "license_expression_spdx": "MIT",
"matches": [
{
"license_expression": "mit",
@@ -13521,10 +13656,7 @@
"matched_text_diagnostics": "License: Expat"
}
],
- "detection_log": [
- "possible-false-positive",
- "not-license-clues-as-more-detections-present"
- ],
+ "detection_log": [],
"identifier": "mit-1f9f2ae8-7020-0a13-7934-461c752929a4"
},
{
@@ -13997,8 +14129,8 @@
"pkg:deb/debian/fusiondirectory-theme-oxygen?arch=all&uuid=fixed-uid-done-for-testing-5642512d1758",
"pkg:deb/debian/fusiondirectory-webservice-shell?arch=all&uuid=fixed-uid-done-for-testing-5642512d1758"
],
- "detected_license_expression": "gpl-2.0-plus AND bsd-simplified",
- "detected_license_expression_spdx": "GPL-2.0-or-later AND BSD-2-Clause",
+ "detected_license_expression": "gpl-2.0-plus AND bsd-simplified AND lgpl-3.0 AND (mit AND other-permissive) AND (public-domain AND bsd-original AND gpl-1.0-plus)",
+ "detected_license_expression_spdx": "GPL-2.0-or-later AND BSD-2-Clause AND LGPL-3.0-only AND (MIT AND LicenseRef-scancode-other-permissive) AND (LicenseRef-scancode-public-domain AND BSD-4-Clause AND GPL-1.0-or-later)",
"license_detections": [
{
"license_expression": "gpl-2.0-plus",
@@ -14264,6 +14396,30 @@
"detection_log": [],
"identifier": "gpl_2_0_plus-227f50b1-f05e-5b3b-b107-ae1e2f56448b"
},
+ {
+ "license_expression": "lgpl-3.0",
+ "license_expression_spdx": "LGPL-3.0-only",
+ "matches": [
+ {
+ "license_expression": "lgpl-3.0",
+ "spdx_license_expression": "LGPL-3.0-only",
+ "from_file": "fusiondirectory/debian/copyright.in",
+ "start_line": 2925,
+ "end_line": 2925,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 3,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "lgpl-3.0_37.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-3.0_37.RULE",
+ "matched_text": "License: LGPL (v3 or later)",
+ "matched_text_diagnostics": "License: LGPL (v3"
+ }
+ ],
+ "detection_log": [],
+ "identifier": "lgpl_3_0-6b4a45da-85cc-8eb0-5613-be81d4efd6a5"
+ },
{
"license_expression": "gpl-2.0-plus",
"license_expression_spdx": "GPL-2.0-or-later",
@@ -14551,106 +14707,105 @@
],
"detection_log": [],
"identifier": "gpl_2_0_plus-227f50b1-f05e-5b3b-b107-ae1e2f56448b"
- }
- ],
- "license_clues": [
- {
- "license_expression": "lgpl-3.0",
- "spdx_license_expression": "LGPL-3.0-only",
- "from_file": "fusiondirectory/debian/copyright.in",
- "start_line": 2925,
- "end_line": 2925,
- "matcher": "2-aho",
- "score": 100.0,
- "matched_length": 3,
- "match_coverage": 100.0,
- "rule_relevance": 100,
- "rule_identifier": "lgpl-3.0_37.RULE",
- "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-3.0_37.RULE",
- "matched_text": "License: LGPL (v3 or later)",
- "matched_text_diagnostics": "License: LGPL (v3"
- },
- {
- "license_expression": "mit",
- "spdx_license_expression": "MIT",
- "from_file": "fusiondirectory/debian/copyright.in",
- "start_line": 3010,
- "end_line": 3010,
- "matcher": "2-aho",
- "score": 90.0,
- "matched_length": 3,
- "match_coverage": 100.0,
- "rule_relevance": 90,
- "rule_identifier": "mit_221.RULE",
- "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_221.RULE",
- "matched_text": "License: MIT/X11 (BSD like)",
- "matched_text_diagnostics": "License: MIT/X11 ("
},
{
- "license_expression": "other-permissive",
- "spdx_license_expression": "LicenseRef-scancode-other-permissive",
- "from_file": "fusiondirectory/debian/copyright.in",
- "start_line": 3010,
- "end_line": 3010,
- "matcher": "2-aho",
- "score": 100.0,
- "matched_length": 2,
- "match_coverage": 100.0,
- "rule_relevance": 100,
- "rule_identifier": "other-permissive_16.RULE",
- "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/other-permissive_16.RULE",
- "matched_text": "License: MIT/X11 (BSD like)",
- "matched_text_diagnostics": "BSD like)"
- },
- {
- "license_expression": "public-domain",
- "spdx_license_expression": "LicenseRef-scancode-public-domain",
- "from_file": "fusiondirectory/debian/copyright.in",
- "start_line": 3016,
- "end_line": 3016,
- "matcher": "2-aho",
- "score": 99.0,
- "matched_length": 3,
- "match_coverage": 100.0,
- "rule_relevance": 99,
- "rule_identifier": "pypi_public_domain.RULE",
- "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/pypi_public_domain.RULE",
- "matched_text": "License: Public domain BSD (4 clause) GPL",
- "matched_text_diagnostics": "License: Public domain"
- },
- {
- "license_expression": "bsd-original",
- "spdx_license_expression": "BSD-4-Clause",
- "from_file": "fusiondirectory/debian/copyright.in",
- "start_line": 3016,
- "end_line": 3016,
- "matcher": "2-aho",
- "score": 100.0,
- "matched_length": 3,
- "match_coverage": 100.0,
- "rule_relevance": 100,
- "rule_identifier": "spdx_license_id_bsd-4-clause_for_bsd-original.RULE",
- "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/spdx_license_id_bsd-4-clause_for_bsd-original.RULE",
- "matched_text": "License: Public domain BSD (4 clause) GPL",
- "matched_text_diagnostics": "BSD (4 clause)"
+ "license_expression": "mit AND other-permissive",
+ "license_expression_spdx": "MIT AND LicenseRef-scancode-other-permissive",
+ "matches": [
+ {
+ "license_expression": "mit",
+ "spdx_license_expression": "MIT",
+ "from_file": "fusiondirectory/debian/copyright.in",
+ "start_line": 3010,
+ "end_line": 3010,
+ "matcher": "2-aho",
+ "score": 90.0,
+ "matched_length": 3,
+ "match_coverage": 100.0,
+ "rule_relevance": 90,
+ "rule_identifier": "mit_221.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_221.RULE",
+ "matched_text": "License: MIT/X11 (BSD like)",
+ "matched_text_diagnostics": "License: MIT/X11 ("
+ },
+ {
+ "license_expression": "other-permissive",
+ "spdx_license_expression": "LicenseRef-scancode-other-permissive",
+ "from_file": "fusiondirectory/debian/copyright.in",
+ "start_line": 3010,
+ "end_line": 3010,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 2,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "other-permissive_16.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/other-permissive_16.RULE",
+ "matched_text": "License: MIT/X11 (BSD like)",
+ "matched_text_diagnostics": "BSD like)"
+ }
+ ],
+ "detection_log": [],
+ "identifier": "mit_and_other_permissive-907b56d6-95b9-e85c-83c0-efd967c7e30a"
},
{
- "license_expression": "gpl-1.0-plus",
- "spdx_license_expression": "GPL-1.0-or-later",
- "from_file": "fusiondirectory/debian/copyright.in",
- "start_line": 3016,
- "end_line": 3016,
- "matcher": "2-aho",
- "score": 50.0,
- "matched_length": 1,
- "match_coverage": 100.0,
- "rule_relevance": 50,
- "rule_identifier": "gpl_bare_word_only.RULE",
- "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl_bare_word_only.RULE",
- "matched_text": "License: Public domain BSD (4 clause) GPL",
- "matched_text_diagnostics": "GPL"
+ "license_expression": "public-domain AND bsd-original AND gpl-1.0-plus",
+ "license_expression_spdx": "LicenseRef-scancode-public-domain AND BSD-4-Clause AND GPL-1.0-or-later",
+ "matches": [
+ {
+ "license_expression": "public-domain",
+ "spdx_license_expression": "LicenseRef-scancode-public-domain",
+ "from_file": "fusiondirectory/debian/copyright.in",
+ "start_line": 3016,
+ "end_line": 3016,
+ "matcher": "2-aho",
+ "score": 99.0,
+ "matched_length": 3,
+ "match_coverage": 100.0,
+ "rule_relevance": 99,
+ "rule_identifier": "pypi_public_domain.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/pypi_public_domain.RULE",
+ "matched_text": "License: Public domain BSD (4 clause) GPL",
+ "matched_text_diagnostics": "License: Public domain"
+ },
+ {
+ "license_expression": "bsd-original",
+ "spdx_license_expression": "BSD-4-Clause",
+ "from_file": "fusiondirectory/debian/copyright.in",
+ "start_line": 3016,
+ "end_line": 3016,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 3,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "spdx_license_id_bsd-4-clause_for_bsd-original.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/spdx_license_id_bsd-4-clause_for_bsd-original.RULE",
+ "matched_text": "License: Public domain BSD (4 clause) GPL",
+ "matched_text_diagnostics": "BSD (4 clause)"
+ },
+ {
+ "license_expression": "gpl-1.0-plus",
+ "spdx_license_expression": "GPL-1.0-or-later",
+ "from_file": "fusiondirectory/debian/copyright.in",
+ "start_line": 3016,
+ "end_line": 3016,
+ "matcher": "2-aho",
+ "score": 50.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 50,
+ "rule_identifier": "gpl_bare_word_only.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl_bare_word_only.RULE",
+ "matched_text": "License: Public domain BSD (4 clause) GPL",
+ "matched_text_diagnostics": "GPL"
+ }
+ ],
+ "detection_log": [],
+ "identifier": "public_domain_and_bsd_original_and_gpl_1_0_plus-ccb73883-974d-42eb-d572-39fa7bf22f4c"
}
],
+ "license_clues": [],
"percentage_of_license_text": 0.66,
"scan_errors": []
},
diff --git a/tests/packagedcode/data/license_detection/reference-to-package/samba.expected.json b/tests/packagedcode/data/license_detection/reference-to-package/samba.expected.json
index bd17a620382..6c2e2cb60fa 100644
--- a/tests/packagedcode/data/license_detection/reference-to-package/samba.expected.json
+++ b/tests/packagedcode/data/license_detection/reference-to-package/samba.expected.json
@@ -267,9 +267,66 @@
]
},
{
- "identifier": "gpl_3_0_and_gpl_1_0_plus_and_lgpl_3_0_plus_and_lgpl_3_0_and_cc_by_sa_3_0_and_cc_by_sa_4_0_and_dco_1_1_and_gpl_2_0-c27079b5-2c85-9902-b997-c5f0081e9516",
- "license_expression": "gpl-3.0 AND gpl-1.0-plus AND lgpl-3.0-plus AND lgpl-3.0 AND cc-by-sa-3.0 AND cc-by-sa-4.0 AND dco-1.1 AND gpl-2.0",
- "license_expression_spdx": "GPL-3.0-only AND GPL-1.0-or-later AND LGPL-3.0-or-later AND LGPL-3.0-only AND CC-BY-SA-3.0 AND CC-BY-SA-4.0 AND LicenseRef-scancode-dco-1.1 AND GPL-2.0-only",
+ "identifier": "gpl_3_0_and_lgpl_3_0_and_gpl_2_0-ee9a67a8-9de9-86d0-077b-8e6f7f285b72",
+ "license_expression": "gpl-3.0 AND lgpl-3.0 AND gpl-2.0",
+ "license_expression_spdx": "GPL-3.0-only AND LGPL-3.0-only AND GPL-2.0-only",
+ "detection_count": 3,
+ "detection_log": [],
+ "reference_matches": [
+ {
+ "license_expression": "gpl-3.0",
+ "license_expression_spdx": "GPL-3.0-only",
+ "from_file": "samba/README.contributing",
+ "start_line": 38,
+ "end_line": 38,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "gpl-3.0_32.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-3.0_32.RULE",
+ "matched_text": "accommodate the licenses we use, which are GPLv3 and LGPLv3 (or later)",
+ "matched_text_diagnostics": "GPLv3"
+ },
+ {
+ "license_expression": "lgpl-3.0",
+ "license_expression_spdx": "LGPL-3.0-only",
+ "from_file": "samba/README.contributing",
+ "start_line": 38,
+ "end_line": 38,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "lgpl-3.0_29.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-3.0_29.RULE",
+ "matched_text": "accommodate the licenses we use, which are GPLv3 and LGPLv3 (or later)",
+ "matched_text_diagnostics": "LGPLv3 ("
+ },
+ {
+ "license_expression": "gpl-2.0",
+ "license_expression_spdx": "GPL-2.0-only",
+ "from_file": "samba/README.contributing",
+ "start_line": 39,
+ "end_line": 39,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "gpl-2.0_bare_single_word.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0_bare_single_word.RULE",
+ "matched_text": "whereas the Linux kernel uses GPLv2.",
+ "matched_text_diagnostics": "GPLv2."
+ }
+ ]
+ },
+ {
+ "identifier": "gpl_3_0_and_lgpl_3_0_and_gpl_2_0_and_gpl_1_0_plus_and_lgpl_3_0_plus_and_cc_by_sa_3_0_and_cc_by_sa_4_0_and_dco_1_1-91b1ed8a-fad5-77d3-29d0-7667c29ee122",
+ "license_expression": "gpl-3.0 AND lgpl-3.0 AND gpl-2.0 AND gpl-1.0-plus AND lgpl-3.0-plus AND cc-by-sa-3.0 AND cc-by-sa-4.0 AND dco-1.1",
+ "license_expression_spdx": "GPL-3.0-only AND LGPL-3.0-only AND GPL-2.0-only AND GPL-1.0-or-later AND LGPL-3.0-or-later AND CC-BY-SA-3.0 AND CC-BY-SA-4.0 AND LicenseRef-scancode-dco-1.1",
"detection_count": 1,
"detection_log": [
"unknown-reference-to-local-file"
@@ -307,6 +364,54 @@
"matched_text": " GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. \n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n Preamble\n\n The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works. By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users. We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors. You can apply it to\nyour programs, too.\n\n When we speak of free software, we are referring to freedom, not\nprice. Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights. Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received. You must make sure that they, too, receive\nor can get the source code. And you must show them these terms so they\nknow their rights.\n\n Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software. For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so. This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software. The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable. Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts. If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary. To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n The precise terms and conditions for copying, distribution and\nmodification follow.\n\n TERMS AND CONDITIONS\n\n 0. Definitions.\n\n \"This License\" refers to version 3 of the GNU General Public License.\n\n \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n \"The Program\" refers to any copyrightable work licensed under this\nLicense. Each licensee is addressed as \"you\". \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy. The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy. Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies. Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License. If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n 1. Source Code.\n\n The \"source code\" for a work means the preferred form of the work\nfor making modifications to it. \"Object code\" means any non-source\nform of a work.\n\n A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form. A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities. However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work. For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n The Corresponding Source for a work in source code form is that\nsame work.\n\n 2. Basic Permissions.\n\n All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met. This License explicitly affirms your unlimited\npermission to run the unmodified Program. The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work. This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force. You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright. Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n Conveying under any other circumstances is permitted solely under\nthe conditions stated below. Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n 3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n 4. Conveying Verbatim Copies.\n\n You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n 5. Conveying Modified Source Versions.\n\n You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n a) The work must carry prominent notices stating that you modified\n it, and giving a relevant date.\n\n b) The work must carry prominent notices stating that it is\n released under this License and any conditions added under section\n 7. This requirement modifies the requirement in section 4 to\n \"keep intact all notices\".\n\n c) You must license the entire work, as a whole, under this\n License to anyone who comes into possession of a copy. This\n License will therefore apply, along with any applicable section 7\n additional terms, to the whole of the work, and all its parts,\n regardless of how they are packaged. This License gives no\n permission to license the work in any other way, but it does not\n invalidate such permission if you have separately received it.\n\n d) If the work has interactive user interfaces, each must display\n Appropriate Legal Notices; however, if the Program has interactive\n interfaces that do not display Appropriate Legal Notices, your\n work need not make them do so.\n\n A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit. Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n 6. Conveying Non-Source Forms.\n\n You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n a) Convey the object code in, or embodied in, a physical product\n (including a physical distribution medium), accompanied by the\n Corresponding Source fixed on a durable physical medium\n customarily used for software interchange.\n\n b) Convey the object code in, or embodied in, a physical product\n (including a physical distribution medium), accompanied by a\n written offer, valid for at least three years and valid for as\n long as you offer spare parts or customer support for that product\n model, to give anyone who possesses the object code either (1) a\n copy of the Corresponding Source for all the software in the\n product that is covered by this License, on a durable physical\n medium customarily used for software interchange, for a price no\n more than your reasonable cost of physically performing this\n conveying of source, or (2) access to copy the\n Corresponding Source from a network server at no charge.\n\n c) Convey individual copies of the object code with a copy of the\n written offer to provide the Corresponding Source. This\n alternative is allowed only occasionally and noncommercially, and\n only if you received the object code with such an offer, in accord\n with subsection 6b.\n\n d) Convey the object code by offering access from a designated\n place (gratis or for a charge), and offer equivalent access to the\n Corresponding Source in the same way through the same place at no\n further charge. You need not require recipients to copy the\n Corresponding Source along with the object code. If the place to\n copy the object code is a network server, the Corresponding Source\n may be on a different server (operated by you or a third party)\n that supports equivalent copying facilities, provided you maintain\n clear directions next to the object code saying where to find the\n Corresponding Source. Regardless of what server hosts the\n Corresponding Source, you remain obligated to ensure that it is\n available for as long as needed to satisfy these requirements.\n\n e) Convey the object code using peer-to-peer transmission, provided\n you inform other peers where the object code and Corresponding\n Source of the work are being offered to the general public at no\n charge under subsection 6d.\n\n A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling. In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage. For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product. A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source. The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information. But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed. Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n 7. Additional Terms.\n\n \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law. If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit. (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.) You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n a) Disclaiming warranty or limiting liability differently from the\n terms of sections 15 and 16 of this License; or\n\n b) Requiring preservation of specified reasonable legal notices or\n author attributions in that material or in the Appropriate Legal\n Notices displayed by works containing it; or\n\n c) Prohibiting misrepresentation of the origin of that material, or\n requiring that modified versions of such material be marked in\n reasonable ways as different from the original version; or\n\n d) Limiting the use for publicity purposes of names of licensors or\n authors of the material; or\n\n e) Declining to grant rights under trademark law for use of some\n trade names, trademarks, or service marks; or\n\n f) Requiring indemnification of licensors and authors of that\n material by anyone who conveys the material (or modified versions of\n it) with contractual assumptions of liability to the recipient, for\n any liability that these contractual assumptions directly impose on\n those licensors and authors.\n\n All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10. If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term. If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n 8. Termination.\n\n You may not propagate or modify a covered work except as expressly\nprovided under this License. Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License. If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n 9. Acceptance Not Required for Having Copies.\n\n You are not required to accept this License in order to receive or\nrun a copy of the Program. Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance. However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work. These actions infringe copyright if you do\nnot accept this License. Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n 10. Automatic Licensing of Downstream Recipients.\n\n Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License. You are not responsible\nfor enforcing compliance by third parties with this License.\n\n An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations. If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License. For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n 11. Patents.\n\n A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based. The\nwork thus licensed is called the contributor's \"contributor version\".\n\n A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version. For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement). To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients. \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License. You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n 12. No Surrender of Others' Freedom.\n\n If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License. If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all. For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n 13. Use with the GNU Affero General Public License.\n\n Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work. The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n 14. Revised Versions of this License.\n\n The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time. Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n Each version is given a distinguishing version number. If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation. If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n Later license versions may give you additional or different\npermissions. However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n 15. Disclaimer of Warranty.\n\n THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n 16. Limitation of Liability.\n\n IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n 17. Interpretation of Sections 15 and 16.\n\n If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n END OF TERMS AND CONDITIONS\n\n How to Apply These Terms to Your New Programs\n\n If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n To do so, attach the following notices to the program. It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n \n Copyright (C) \n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with this program. If not, see .\n\nAlso add information on how to contact you by electronic and paper mail.\n\n If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n Copyright (C) \n This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n This is free software, and you are welcome to redistribute it\n under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License. Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n.\n\n The GNU General Public License does not permit incorporating your program\ninto proprietary programs. If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library. If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License. But first, please read\n.",
"matched_text_diagnostics": "GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. \n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n Preamble\n\n The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works. By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users. We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors. You can apply it to\nyour programs, too.\n\n When we speak of free software, we are referring to freedom, not\nprice. Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights. Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received. You must make sure that they, too, receive\nor can get the source code. And you must show them these terms so they\nknow their rights.\n\n Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software. For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so. This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software. The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable. Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts. If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary. To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n The precise terms and conditions for copying, distribution and\nmodification follow.\n\n TERMS AND CONDITIONS\n\n 0. Definitions.\n\n \"This License\" refers to version 3 of the GNU General Public License.\n\n \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n \"The Program\" refers to any copyrightable work licensed under this\nLicense. Each licensee is addressed as \"you\". \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy. The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy. Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies. Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License. If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n 1. Source Code.\n\n The \"source code\" for a work means the preferred form of the work\nfor making modifications to it. \"Object code\" means any non-source\nform of a work.\n\n A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form. A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities. However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work. For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n The Corresponding Source for a work in source code form is that\nsame work.\n\n 2. Basic Permissions.\n\n All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met. This License explicitly affirms your unlimited\npermission to run the unmodified Program. The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work. This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force. You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright. Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n Conveying under any other circumstances is permitted solely under\nthe conditions stated below. Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n 3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n 4. Conveying Verbatim Copies.\n\n You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n 5. Conveying Modified Source Versions.\n\n You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n a) The work must carry prominent notices stating that you modified\n it, and giving a relevant date.\n\n b) The work must carry prominent notices stating that it is\n released under this License and any conditions added under section\n 7. This requirement modifies the requirement in section 4 to\n \"keep intact all notices\".\n\n c) You must license the entire work, as a whole, under this\n License to anyone who comes into possession of a copy. This\n License will therefore apply, along with any applicable section 7\n additional terms, to the whole of the work, and all its parts,\n regardless of how they are packaged. This License gives no\n permission to license the work in any other way, but it does not\n invalidate such permission if you have separately received it.\n\n d) If the work has interactive user interfaces, each must display\n Appropriate Legal Notices; however, if the Program has interactive\n interfaces that do not display Appropriate Legal Notices, your\n work need not make them do so.\n\n A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit. Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n 6. Conveying Non-Source Forms.\n\n You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n a) Convey the object code in, or embodied in, a physical product\n (including a physical distribution medium), accompanied by the\n Corresponding Source fixed on a durable physical medium\n customarily used for software interchange.\n\n b) Convey the object code in, or embodied in, a physical product\n (including a physical distribution medium), accompanied by a\n written offer, valid for at least three years and valid for as\n long as you offer spare parts or customer support for that product\n model, to give anyone who possesses the object code either (1) a\n copy of the Corresponding Source for all the software in the\n product that is covered by this License, on a durable physical\n medium customarily used for software interchange, for a price no\n more than your reasonable cost of physically performing this\n conveying of source, or (2) access to copy the\n Corresponding Source from a network server at no charge.\n\n c) Convey individual copies of the object code with a copy of the\n written offer to provide the Corresponding Source. This\n alternative is allowed only occasionally and noncommercially, and\n only if you received the object code with such an offer, in accord\n with subsection 6b.\n\n d) Convey the object code by offering access from a designated\n place (gratis or for a charge), and offer equivalent access to the\n Corresponding Source in the same way through the same place at no\n further charge. You need not require recipients to copy the\n Corresponding Source along with the object code. If the place to\n copy the object code is a network server, the Corresponding Source\n may be on a different server (operated by you or a third party)\n that supports equivalent copying facilities, provided you maintain\n clear directions next to the object code saying where to find the\n Corresponding Source. Regardless of what server hosts the\n Corresponding Source, you remain obligated to ensure that it is\n available for as long as needed to satisfy these requirements.\n\n e) Convey the object code using peer-to-peer transmission, provided\n you inform other peers where the object code and Corresponding\n Source of the work are being offered to the general public at no\n charge under subsection 6d.\n\n A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling. In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage. For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product. A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source. The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information. But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed. Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n 7. Additional Terms.\n\n \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law. If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit. (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.) You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n a) Disclaiming warranty or limiting liability differently from the\n terms of sections 15 and 16 of this License; or\n\n b) Requiring preservation of specified reasonable legal notices or\n author attributions in that material or in the Appropriate Legal\n Notices displayed by works containing it; or\n\n c) Prohibiting misrepresentation of the origin of that material, or\n requiring that modified versions of such material be marked in\n reasonable ways as different from the original version; or\n\n d) Limiting the use for publicity purposes of names of licensors or\n authors of the material; or\n\n e) Declining to grant rights under trademark law for use of some\n trade names, trademarks, or service marks; or\n\n f) Requiring indemnification of licensors and authors of that\n material by anyone who conveys the material (or modified versions of\n it) with contractual assumptions of liability to the recipient, for\n any liability that these contractual assumptions directly impose on\n those licensors and authors.\n\n All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10. If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term. If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n 8. Termination.\n\n You may not propagate or modify a covered work except as expressly\nprovided under this License. Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License. If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n 9. Acceptance Not Required for Having Copies.\n\n You are not required to accept this License in order to receive or\nrun a copy of the Program. Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance. However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work. These actions infringe copyright if you do\nnot accept this License. Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n 10. Automatic Licensing of Downstream Recipients.\n\n Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License. You are not responsible\nfor enforcing compliance by third parties with this License.\n\n An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations. If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License. For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n 11. Patents.\n\n A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based. The\nwork thus licensed is called the contributor's \"contributor version\".\n\n A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version. For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement). To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients. \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License. You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n 12. No Surrender of Others' Freedom.\n\n If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License. If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all. For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n 13. Use with the GNU Affero General Public License.\n\n Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work. The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n 14. Revised Versions of this License.\n\n The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time. Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n Each version is given a distinguishing version number. If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation. If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n Later license versions may give you additional or different\npermissions. However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n 15. Disclaimer of Warranty.\n\n THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n 16. Limitation of Liability.\n\n IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n 17. Interpretation of Sections 15 and 16.\n\n If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n END OF TERMS AND CONDITIONS\n\n How to Apply These Terms to Your New Programs\n\n If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n To do so, attach the following notices to the program. It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n \n Copyright (C) \n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with this program. If not, see .\n\nAlso add information on how to contact you by electronic and paper mail.\n\n If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n Copyright (C) \n This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n This is free software, and you are welcome to redistribute it\n under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License. Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n.\n\n The GNU General Public License does not permit incorporating your program\ninto proprietary programs. If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library. If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License. But first, please read\n."
},
+ {
+ "license_expression": "gpl-3.0",
+ "license_expression_spdx": "GPL-3.0-only",
+ "from_file": "samba/README.contributing",
+ "start_line": 38,
+ "end_line": 38,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "gpl-3.0_32.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-3.0_32.RULE",
+ "matched_text": "accommodate the licenses we use, which are GPLv3 and LGPLv3 (or later)",
+ "matched_text_diagnostics": "GPLv3"
+ },
+ {
+ "license_expression": "lgpl-3.0",
+ "license_expression_spdx": "LGPL-3.0-only",
+ "from_file": "samba/README.contributing",
+ "start_line": 38,
+ "end_line": 38,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "lgpl-3.0_29.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-3.0_29.RULE",
+ "matched_text": "accommodate the licenses we use, which are GPLv3 and LGPLv3 (or later)",
+ "matched_text_diagnostics": "LGPLv3 ("
+ },
+ {
+ "license_expression": "gpl-2.0",
+ "license_expression_spdx": "GPL-2.0-only",
+ "from_file": "samba/README.contributing",
+ "start_line": 39,
+ "end_line": 39,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "gpl-2.0_bare_single_word.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0_bare_single_word.RULE",
+ "matched_text": "whereas the Linux kernel uses GPLv2.",
+ "matched_text_diagnostics": "GPLv2."
+ },
{
"license_expression": "gpl-1.0-plus",
"license_expression_spdx": "GPL-1.0-or-later",
@@ -606,9 +711,65 @@
"type": "file",
"package_data": [],
"for_packages": [],
- "detected_license_expression": "gpl-1.0-plus AND (gpl-1.0-plus AND lgpl-3.0-plus AND gpl-3.0 AND lgpl-3.0) AND (cc-by-sa-3.0 AND cc-by-sa-4.0 AND dco-1.1)",
- "detected_license_expression_spdx": "GPL-1.0-or-later AND (GPL-1.0-or-later AND LGPL-3.0-or-later AND GPL-3.0-only AND LGPL-3.0-only) AND (CC-BY-SA-3.0 AND CC-BY-SA-4.0 AND LicenseRef-scancode-dco-1.1)",
+ "detected_license_expression": "(gpl-3.0 AND lgpl-3.0 AND gpl-2.0) AND gpl-1.0-plus AND (gpl-1.0-plus AND lgpl-3.0-plus AND gpl-3.0 AND lgpl-3.0) AND (cc-by-sa-3.0 AND cc-by-sa-4.0 AND dco-1.1)",
+ "detected_license_expression_spdx": "(GPL-3.0-only AND LGPL-3.0-only AND GPL-2.0-only) AND GPL-1.0-or-later AND (GPL-1.0-or-later AND LGPL-3.0-or-later AND GPL-3.0-only AND LGPL-3.0-only) AND (CC-BY-SA-3.0 AND CC-BY-SA-4.0 AND LicenseRef-scancode-dco-1.1)",
"license_detections": [
+ {
+ "license_expression": "gpl-3.0 AND lgpl-3.0 AND gpl-2.0",
+ "license_expression_spdx": "GPL-3.0-only AND LGPL-3.0-only AND GPL-2.0-only",
+ "matches": [
+ {
+ "license_expression": "gpl-3.0",
+ "spdx_license_expression": "GPL-3.0-only",
+ "from_file": "samba/README.contributing",
+ "start_line": 38,
+ "end_line": 38,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "gpl-3.0_32.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-3.0_32.RULE",
+ "matched_text": "accommodate the licenses we use, which are GPLv3 and LGPLv3 (or later)",
+ "matched_text_diagnostics": "GPLv3"
+ },
+ {
+ "license_expression": "lgpl-3.0",
+ "spdx_license_expression": "LGPL-3.0-only",
+ "from_file": "samba/README.contributing",
+ "start_line": 38,
+ "end_line": 38,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "lgpl-3.0_29.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-3.0_29.RULE",
+ "matched_text": "accommodate the licenses we use, which are GPLv3 and LGPLv3 (or later)",
+ "matched_text_diagnostics": "LGPLv3 ("
+ },
+ {
+ "license_expression": "gpl-2.0",
+ "spdx_license_expression": "GPL-2.0-only",
+ "from_file": "samba/README.contributing",
+ "start_line": 39,
+ "end_line": 39,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "gpl-2.0_bare_single_word.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0_bare_single_word.RULE",
+ "matched_text": "whereas the Linux kernel uses GPLv2.",
+ "matched_text_diagnostics": "GPLv2."
+ }
+ ],
+ "detection_log": [],
+ "identifier": "gpl_3_0_and_lgpl_3_0_and_gpl_2_0-ee9a67a8-9de9-86d0-077b-8e6f7f285b72"
+ },
{
"license_expression": "gpl-1.0-plus",
"license_expression_spdx": "GPL-1.0-or-later",
@@ -779,54 +940,6 @@
}
],
"license_clues": [
- {
- "license_expression": "gpl-3.0",
- "spdx_license_expression": "GPL-3.0-only",
- "from_file": "samba/README.contributing",
- "start_line": 38,
- "end_line": 38,
- "matcher": "2-aho",
- "score": 100.0,
- "matched_length": 1,
- "match_coverage": 100.0,
- "rule_relevance": 100,
- "rule_identifier": "gpl-3.0_32.RULE",
- "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-3.0_32.RULE",
- "matched_text": "accommodate the licenses we use, which are GPLv3 and LGPLv3 (or later)",
- "matched_text_diagnostics": "GPLv3"
- },
- {
- "license_expression": "lgpl-3.0",
- "spdx_license_expression": "LGPL-3.0-only",
- "from_file": "samba/README.contributing",
- "start_line": 38,
- "end_line": 38,
- "matcher": "2-aho",
- "score": 100.0,
- "matched_length": 1,
- "match_coverage": 100.0,
- "rule_relevance": 100,
- "rule_identifier": "lgpl-3.0_29.RULE",
- "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-3.0_29.RULE",
- "matched_text": "accommodate the licenses we use, which are GPLv3 and LGPLv3 (or later)",
- "matched_text_diagnostics": "LGPLv3 ("
- },
- {
- "license_expression": "gpl-2.0",
- "spdx_license_expression": "GPL-2.0-only",
- "from_file": "samba/README.contributing",
- "start_line": 39,
- "end_line": 39,
- "matcher": "2-aho",
- "score": 100.0,
- "matched_length": 1,
- "match_coverage": 100.0,
- "rule_relevance": 100,
- "rule_identifier": "gpl-2.0_bare_single_word.RULE",
- "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0_bare_single_word.RULE",
- "matched_text": "whereas the Linux kernel uses GPLv2.",
- "matched_text_diagnostics": "GPLv2."
- },
{
"license_expression": "gpl-2.0-plus",
"spdx_license_expression": "GPL-2.0-or-later",
@@ -970,8 +1083,8 @@
"vcs_url": null,
"copyright": null,
"holder": null,
- "declared_license_expression": "gpl-3.0 AND gpl-1.0-plus AND (gpl-1.0-plus AND lgpl-3.0-plus AND gpl-3.0 AND lgpl-3.0) AND (cc-by-sa-3.0 AND cc-by-sa-4.0 AND dco-1.1) AND gpl-2.0",
- "declared_license_expression_spdx": "GPL-3.0-only AND GPL-1.0-or-later AND (GPL-1.0-or-later AND LGPL-3.0-or-later AND GPL-3.0-only AND LGPL-3.0-only) AND (CC-BY-SA-3.0 AND CC-BY-SA-4.0 AND LicenseRef-scancode-dco-1.1) AND GPL-2.0-only",
+ "declared_license_expression": "gpl-3.0 AND (gpl-3.0 AND lgpl-3.0 AND gpl-2.0) AND gpl-1.0-plus AND (gpl-1.0-plus AND lgpl-3.0-plus AND gpl-3.0 AND lgpl-3.0) AND (cc-by-sa-3.0 AND cc-by-sa-4.0 AND dco-1.1) AND gpl-2.0",
+ "declared_license_expression_spdx": "GPL-3.0-only AND (GPL-3.0-only AND LGPL-3.0-only AND GPL-2.0-only) AND GPL-1.0-or-later AND (GPL-1.0-or-later AND LGPL-3.0-or-later AND GPL-3.0-only AND LGPL-3.0-only) AND (CC-BY-SA-3.0 AND CC-BY-SA-4.0 AND LicenseRef-scancode-dco-1.1) AND GPL-2.0-only",
"license_detections": [
{
"license_expression": "gpl-3.0",
@@ -997,6 +1110,62 @@
"detection_log": [],
"identifier": "gpl_3_0-ab79e5a8-e510-cbf4-5302-ef968484bcdf"
},
+ {
+ "license_expression": "gpl-3.0 AND lgpl-3.0 AND gpl-2.0",
+ "license_expression_spdx": "GPL-3.0-only AND LGPL-3.0-only AND GPL-2.0-only",
+ "matches": [
+ {
+ "license_expression": "gpl-3.0",
+ "spdx_license_expression": "GPL-3.0-only",
+ "from_file": "samba/README.contributing",
+ "start_line": 38,
+ "end_line": 38,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "gpl-3.0_32.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-3.0_32.RULE",
+ "matched_text": "accommodate the licenses we use, which are GPLv3 and LGPLv3 (or later)",
+ "matched_text_diagnostics": "GPLv3"
+ },
+ {
+ "license_expression": "lgpl-3.0",
+ "spdx_license_expression": "LGPL-3.0-only",
+ "from_file": "samba/README.contributing",
+ "start_line": 38,
+ "end_line": 38,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "lgpl-3.0_29.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-3.0_29.RULE",
+ "matched_text": "accommodate the licenses we use, which are GPLv3 and LGPLv3 (or later)",
+ "matched_text_diagnostics": "LGPLv3 ("
+ },
+ {
+ "license_expression": "gpl-2.0",
+ "spdx_license_expression": "GPL-2.0-only",
+ "from_file": "samba/README.contributing",
+ "start_line": 39,
+ "end_line": 39,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "gpl-2.0_bare_single_word.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0_bare_single_word.RULE",
+ "matched_text": "whereas the Linux kernel uses GPLv2.",
+ "matched_text_diagnostics": "GPLv2."
+ }
+ ],
+ "detection_log": [],
+ "identifier": "gpl_3_0_and_lgpl_3_0_and_gpl_2_0-ee9a67a8-9de9-86d0-077b-8e6f7f285b72"
+ },
{
"license_expression": "gpl-1.0-plus",
"license_expression_spdx": "GPL-1.0-or-later",
@@ -1298,8 +1467,8 @@
"vcs_url": null,
"copyright": null,
"holder": null,
- "declared_license_expression": "gpl-3.0 AND gpl-1.0-plus AND (gpl-1.0-plus AND lgpl-3.0-plus AND gpl-3.0 AND lgpl-3.0) AND (cc-by-sa-3.0 AND cc-by-sa-4.0 AND dco-1.1) AND gpl-2.0",
- "declared_license_expression_spdx": "GPL-3.0-only AND GPL-1.0-or-later AND (GPL-1.0-or-later AND LGPL-3.0-or-later AND GPL-3.0-only AND LGPL-3.0-only) AND (CC-BY-SA-3.0 AND CC-BY-SA-4.0 AND LicenseRef-scancode-dco-1.1) AND GPL-2.0-only",
+ "declared_license_expression": "gpl-3.0 AND (gpl-3.0 AND lgpl-3.0 AND gpl-2.0) AND gpl-1.0-plus AND (gpl-1.0-plus AND lgpl-3.0-plus AND gpl-3.0 AND lgpl-3.0) AND (cc-by-sa-3.0 AND cc-by-sa-4.0 AND dco-1.1) AND gpl-2.0",
+ "declared_license_expression_spdx": "GPL-3.0-only AND (GPL-3.0-only AND LGPL-3.0-only AND GPL-2.0-only) AND GPL-1.0-or-later AND (GPL-1.0-or-later AND LGPL-3.0-or-later AND GPL-3.0-only AND LGPL-3.0-only) AND (CC-BY-SA-3.0 AND CC-BY-SA-4.0 AND LicenseRef-scancode-dco-1.1) AND GPL-2.0-only",
"license_detections": [
{
"license_expression": "gpl-3.0",
@@ -1325,6 +1494,62 @@
"detection_log": [],
"identifier": "gpl_3_0-ab79e5a8-e510-cbf4-5302-ef968484bcdf"
},
+ {
+ "license_expression": "gpl-3.0 AND lgpl-3.0 AND gpl-2.0",
+ "license_expression_spdx": "GPL-3.0-only AND LGPL-3.0-only AND GPL-2.0-only",
+ "matches": [
+ {
+ "license_expression": "gpl-3.0",
+ "spdx_license_expression": "GPL-3.0-only",
+ "from_file": "samba/README.contributing",
+ "start_line": 38,
+ "end_line": 38,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "gpl-3.0_32.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-3.0_32.RULE",
+ "matched_text": "accommodate the licenses we use, which are GPLv3 and LGPLv3 (or later)",
+ "matched_text_diagnostics": "GPLv3"
+ },
+ {
+ "license_expression": "lgpl-3.0",
+ "spdx_license_expression": "LGPL-3.0-only",
+ "from_file": "samba/README.contributing",
+ "start_line": 38,
+ "end_line": 38,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "lgpl-3.0_29.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-3.0_29.RULE",
+ "matched_text": "accommodate the licenses we use, which are GPLv3 and LGPLv3 (or later)",
+ "matched_text_diagnostics": "LGPLv3 ("
+ },
+ {
+ "license_expression": "gpl-2.0",
+ "spdx_license_expression": "GPL-2.0-only",
+ "from_file": "samba/README.contributing",
+ "start_line": 39,
+ "end_line": 39,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "gpl-2.0_bare_single_word.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0_bare_single_word.RULE",
+ "matched_text": "whereas the Linux kernel uses GPLv2.",
+ "matched_text_diagnostics": "GPLv2."
+ }
+ ],
+ "detection_log": [],
+ "identifier": "gpl_3_0_and_lgpl_3_0_and_gpl_2_0-ee9a67a8-9de9-86d0-077b-8e6f7f285b72"
+ },
{
"license_expression": "gpl-1.0-plus",
"license_expression_spdx": "GPL-1.0-or-later",
@@ -1627,12 +1852,12 @@
"type": "file",
"package_data": [],
"for_packages": [],
- "detected_license_expression": "gpl-3.0 AND gpl-1.0-plus AND lgpl-3.0-plus AND lgpl-3.0 AND cc-by-sa-3.0 AND cc-by-sa-4.0 AND dco-1.1 AND gpl-2.0",
- "detected_license_expression_spdx": "GPL-3.0-only AND GPL-1.0-or-later AND LGPL-3.0-or-later AND LGPL-3.0-only AND CC-BY-SA-3.0 AND CC-BY-SA-4.0 AND LicenseRef-scancode-dco-1.1 AND GPL-2.0-only",
+ "detected_license_expression": "gpl-3.0 AND lgpl-3.0 AND gpl-2.0 AND gpl-1.0-plus AND lgpl-3.0-plus AND cc-by-sa-3.0 AND cc-by-sa-4.0 AND dco-1.1",
+ "detected_license_expression_spdx": "GPL-3.0-only AND LGPL-3.0-only AND GPL-2.0-only AND GPL-1.0-or-later AND LGPL-3.0-or-later AND CC-BY-SA-3.0 AND CC-BY-SA-4.0 AND LicenseRef-scancode-dco-1.1",
"license_detections": [
{
- "license_expression": "gpl-3.0 AND gpl-1.0-plus AND lgpl-3.0-plus AND lgpl-3.0 AND cc-by-sa-3.0 AND cc-by-sa-4.0 AND dco-1.1 AND gpl-2.0",
- "license_expression_spdx": "GPL-3.0-only AND GPL-1.0-or-later AND LGPL-3.0-or-later AND LGPL-3.0-only AND CC-BY-SA-3.0 AND CC-BY-SA-4.0 AND LicenseRef-scancode-dco-1.1 AND GPL-2.0-only",
+ "license_expression": "gpl-3.0 AND lgpl-3.0 AND gpl-2.0 AND gpl-1.0-plus AND lgpl-3.0-plus AND cc-by-sa-3.0 AND cc-by-sa-4.0 AND dco-1.1",
+ "license_expression_spdx": "GPL-3.0-only AND LGPL-3.0-only AND GPL-2.0-only AND GPL-1.0-or-later AND LGPL-3.0-or-later AND CC-BY-SA-3.0 AND CC-BY-SA-4.0 AND LicenseRef-scancode-dco-1.1",
"matches": [
{
"license_expression": "free-unknown",
@@ -1666,6 +1891,54 @@
"matched_text": " GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. \n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n Preamble\n\n The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works. By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users. We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors. You can apply it to\nyour programs, too.\n\n When we speak of free software, we are referring to freedom, not\nprice. Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights. Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received. You must make sure that they, too, receive\nor can get the source code. And you must show them these terms so they\nknow their rights.\n\n Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software. For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so. This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software. The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable. Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts. If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary. To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n The precise terms and conditions for copying, distribution and\nmodification follow.\n\n TERMS AND CONDITIONS\n\n 0. Definitions.\n\n \"This License\" refers to version 3 of the GNU General Public License.\n\n \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n \"The Program\" refers to any copyrightable work licensed under this\nLicense. Each licensee is addressed as \"you\". \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy. The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy. Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies. Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License. If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n 1. Source Code.\n\n The \"source code\" for a work means the preferred form of the work\nfor making modifications to it. \"Object code\" means any non-source\nform of a work.\n\n A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form. A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities. However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work. For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n The Corresponding Source for a work in source code form is that\nsame work.\n\n 2. Basic Permissions.\n\n All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met. This License explicitly affirms your unlimited\npermission to run the unmodified Program. The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work. This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force. You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright. Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n Conveying under any other circumstances is permitted solely under\nthe conditions stated below. Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n 3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n 4. Conveying Verbatim Copies.\n\n You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n 5. Conveying Modified Source Versions.\n\n You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n a) The work must carry prominent notices stating that you modified\n it, and giving a relevant date.\n\n b) The work must carry prominent notices stating that it is\n released under this License and any conditions added under section\n 7. This requirement modifies the requirement in section 4 to\n \"keep intact all notices\".\n\n c) You must license the entire work, as a whole, under this\n License to anyone who comes into possession of a copy. This\n License will therefore apply, along with any applicable section 7\n additional terms, to the whole of the work, and all its parts,\n regardless of how they are packaged. This License gives no\n permission to license the work in any other way, but it does not\n invalidate such permission if you have separately received it.\n\n d) If the work has interactive user interfaces, each must display\n Appropriate Legal Notices; however, if the Program has interactive\n interfaces that do not display Appropriate Legal Notices, your\n work need not make them do so.\n\n A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit. Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n 6. Conveying Non-Source Forms.\n\n You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n a) Convey the object code in, or embodied in, a physical product\n (including a physical distribution medium), accompanied by the\n Corresponding Source fixed on a durable physical medium\n customarily used for software interchange.\n\n b) Convey the object code in, or embodied in, a physical product\n (including a physical distribution medium), accompanied by a\n written offer, valid for at least three years and valid for as\n long as you offer spare parts or customer support for that product\n model, to give anyone who possesses the object code either (1) a\n copy of the Corresponding Source for all the software in the\n product that is covered by this License, on a durable physical\n medium customarily used for software interchange, for a price no\n more than your reasonable cost of physically performing this\n conveying of source, or (2) access to copy the\n Corresponding Source from a network server at no charge.\n\n c) Convey individual copies of the object code with a copy of the\n written offer to provide the Corresponding Source. This\n alternative is allowed only occasionally and noncommercially, and\n only if you received the object code with such an offer, in accord\n with subsection 6b.\n\n d) Convey the object code by offering access from a designated\n place (gratis or for a charge), and offer equivalent access to the\n Corresponding Source in the same way through the same place at no\n further charge. You need not require recipients to copy the\n Corresponding Source along with the object code. If the place to\n copy the object code is a network server, the Corresponding Source\n may be on a different server (operated by you or a third party)\n that supports equivalent copying facilities, provided you maintain\n clear directions next to the object code saying where to find the\n Corresponding Source. Regardless of what server hosts the\n Corresponding Source, you remain obligated to ensure that it is\n available for as long as needed to satisfy these requirements.\n\n e) Convey the object code using peer-to-peer transmission, provided\n you inform other peers where the object code and Corresponding\n Source of the work are being offered to the general public at no\n charge under subsection 6d.\n\n A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling. In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage. For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product. A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source. The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information. But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed. Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n 7. Additional Terms.\n\n \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law. If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit. (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.) You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n a) Disclaiming warranty or limiting liability differently from the\n terms of sections 15 and 16 of this License; or\n\n b) Requiring preservation of specified reasonable legal notices or\n author attributions in that material or in the Appropriate Legal\n Notices displayed by works containing it; or\n\n c) Prohibiting misrepresentation of the origin of that material, or\n requiring that modified versions of such material be marked in\n reasonable ways as different from the original version; or\n\n d) Limiting the use for publicity purposes of names of licensors or\n authors of the material; or\n\n e) Declining to grant rights under trademark law for use of some\n trade names, trademarks, or service marks; or\n\n f) Requiring indemnification of licensors and authors of that\n material by anyone who conveys the material (or modified versions of\n it) with contractual assumptions of liability to the recipient, for\n any liability that these contractual assumptions directly impose on\n those licensors and authors.\n\n All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10. If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term. If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n 8. Termination.\n\n You may not propagate or modify a covered work except as expressly\nprovided under this License. Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License. If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n 9. Acceptance Not Required for Having Copies.\n\n You are not required to accept this License in order to receive or\nrun a copy of the Program. Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance. However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work. These actions infringe copyright if you do\nnot accept this License. Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n 10. Automatic Licensing of Downstream Recipients.\n\n Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License. You are not responsible\nfor enforcing compliance by third parties with this License.\n\n An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations. If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License. For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n 11. Patents.\n\n A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based. The\nwork thus licensed is called the contributor's \"contributor version\".\n\n A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version. For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement). To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients. \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License. You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n 12. No Surrender of Others' Freedom.\n\n If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License. If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all. For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n 13. Use with the GNU Affero General Public License.\n\n Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work. The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n 14. Revised Versions of this License.\n\n The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time. Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n Each version is given a distinguishing version number. If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation. If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n Later license versions may give you additional or different\npermissions. However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n 15. Disclaimer of Warranty.\n\n THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n 16. Limitation of Liability.\n\n IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n 17. Interpretation of Sections 15 and 16.\n\n If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n END OF TERMS AND CONDITIONS\n\n How to Apply These Terms to Your New Programs\n\n If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n To do so, attach the following notices to the program. It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n \n Copyright (C) \n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with this program. If not, see .\n\nAlso add information on how to contact you by electronic and paper mail.\n\n If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n Copyright (C) \n This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n This is free software, and you are welcome to redistribute it\n under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License. Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n.\n\n The GNU General Public License does not permit incorporating your program\ninto proprietary programs. If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library. If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License. But first, please read\n.",
"matched_text_diagnostics": "GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. \n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n Preamble\n\n The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works. By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users. We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors. You can apply it to\nyour programs, too.\n\n When we speak of free software, we are referring to freedom, not\nprice. Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights. Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received. You must make sure that they, too, receive\nor can get the source code. And you must show them these terms so they\nknow their rights.\n\n Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software. For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so. This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software. The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable. Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts. If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary. To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n The precise terms and conditions for copying, distribution and\nmodification follow.\n\n TERMS AND CONDITIONS\n\n 0. Definitions.\n\n \"This License\" refers to version 3 of the GNU General Public License.\n\n \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n \"The Program\" refers to any copyrightable work licensed under this\nLicense. Each licensee is addressed as \"you\". \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy. The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy. Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies. Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License. If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n 1. Source Code.\n\n The \"source code\" for a work means the preferred form of the work\nfor making modifications to it. \"Object code\" means any non-source\nform of a work.\n\n A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form. A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities. However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work. For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n The Corresponding Source for a work in source code form is that\nsame work.\n\n 2. Basic Permissions.\n\n All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met. This License explicitly affirms your unlimited\npermission to run the unmodified Program. The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work. This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force. You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright. Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n Conveying under any other circumstances is permitted solely under\nthe conditions stated below. Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n 3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n 4. Conveying Verbatim Copies.\n\n You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n 5. Conveying Modified Source Versions.\n\n You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n a) The work must carry prominent notices stating that you modified\n it, and giving a relevant date.\n\n b) The work must carry prominent notices stating that it is\n released under this License and any conditions added under section\n 7. This requirement modifies the requirement in section 4 to\n \"keep intact all notices\".\n\n c) You must license the entire work, as a whole, under this\n License to anyone who comes into possession of a copy. This\n License will therefore apply, along with any applicable section 7\n additional terms, to the whole of the work, and all its parts,\n regardless of how they are packaged. This License gives no\n permission to license the work in any other way, but it does not\n invalidate such permission if you have separately received it.\n\n d) If the work has interactive user interfaces, each must display\n Appropriate Legal Notices; however, if the Program has interactive\n interfaces that do not display Appropriate Legal Notices, your\n work need not make them do so.\n\n A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit. Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n 6. Conveying Non-Source Forms.\n\n You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n a) Convey the object code in, or embodied in, a physical product\n (including a physical distribution medium), accompanied by the\n Corresponding Source fixed on a durable physical medium\n customarily used for software interchange.\n\n b) Convey the object code in, or embodied in, a physical product\n (including a physical distribution medium), accompanied by a\n written offer, valid for at least three years and valid for as\n long as you offer spare parts or customer support for that product\n model, to give anyone who possesses the object code either (1) a\n copy of the Corresponding Source for all the software in the\n product that is covered by this License, on a durable physical\n medium customarily used for software interchange, for a price no\n more than your reasonable cost of physically performing this\n conveying of source, or (2) access to copy the\n Corresponding Source from a network server at no charge.\n\n c) Convey individual copies of the object code with a copy of the\n written offer to provide the Corresponding Source. This\n alternative is allowed only occasionally and noncommercially, and\n only if you received the object code with such an offer, in accord\n with subsection 6b.\n\n d) Convey the object code by offering access from a designated\n place (gratis or for a charge), and offer equivalent access to the\n Corresponding Source in the same way through the same place at no\n further charge. You need not require recipients to copy the\n Corresponding Source along with the object code. If the place to\n copy the object code is a network server, the Corresponding Source\n may be on a different server (operated by you or a third party)\n that supports equivalent copying facilities, provided you maintain\n clear directions next to the object code saying where to find the\n Corresponding Source. Regardless of what server hosts the\n Corresponding Source, you remain obligated to ensure that it is\n available for as long as needed to satisfy these requirements.\n\n e) Convey the object code using peer-to-peer transmission, provided\n you inform other peers where the object code and Corresponding\n Source of the work are being offered to the general public at no\n charge under subsection 6d.\n\n A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling. In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage. For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product. A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source. The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information. But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed. Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n 7. Additional Terms.\n\n \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law. If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit. (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.) You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n a) Disclaiming warranty or limiting liability differently from the\n terms of sections 15 and 16 of this License; or\n\n b) Requiring preservation of specified reasonable legal notices or\n author attributions in that material or in the Appropriate Legal\n Notices displayed by works containing it; or\n\n c) Prohibiting misrepresentation of the origin of that material, or\n requiring that modified versions of such material be marked in\n reasonable ways as different from the original version; or\n\n d) Limiting the use for publicity purposes of names of licensors or\n authors of the material; or\n\n e) Declining to grant rights under trademark law for use of some\n trade names, trademarks, or service marks; or\n\n f) Requiring indemnification of licensors and authors of that\n material by anyone who conveys the material (or modified versions of\n it) with contractual assumptions of liability to the recipient, for\n any liability that these contractual assumptions directly impose on\n those licensors and authors.\n\n All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10. If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term. If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n 8. Termination.\n\n You may not propagate or modify a covered work except as expressly\nprovided under this License. Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License. If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n 9. Acceptance Not Required for Having Copies.\n\n You are not required to accept this License in order to receive or\nrun a copy of the Program. Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance. However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work. These actions infringe copyright if you do\nnot accept this License. Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n 10. Automatic Licensing of Downstream Recipients.\n\n Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License. You are not responsible\nfor enforcing compliance by third parties with this License.\n\n An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations. If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License. For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n 11. Patents.\n\n A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based. The\nwork thus licensed is called the contributor's \"contributor version\".\n\n A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version. For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement). To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients. \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License. You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n 12. No Surrender of Others' Freedom.\n\n If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License. If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all. For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n 13. Use with the GNU Affero General Public License.\n\n Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work. The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n 14. Revised Versions of this License.\n\n The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time. Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n Each version is given a distinguishing version number. If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation. If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n Later license versions may give you additional or different\npermissions. However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n 15. Disclaimer of Warranty.\n\n THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n 16. Limitation of Liability.\n\n IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n 17. Interpretation of Sections 15 and 16.\n\n If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n END OF TERMS AND CONDITIONS\n\n How to Apply These Terms to Your New Programs\n\n If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n To do so, attach the following notices to the program. It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n \n Copyright (C) \n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with this program. If not, see .\n\nAlso add information on how to contact you by electronic and paper mail.\n\n If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n Copyright (C) \n This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n This is free software, and you are welcome to redistribute it\n under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License. Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n.\n\n The GNU General Public License does not permit incorporating your program\ninto proprietary programs. If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library. If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License. But first, please read\n."
},
+ {
+ "license_expression": "gpl-3.0",
+ "spdx_license_expression": "GPL-3.0-only",
+ "from_file": "samba/README.contributing",
+ "start_line": 38,
+ "end_line": 38,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "gpl-3.0_32.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-3.0_32.RULE",
+ "matched_text": "accommodate the licenses we use, which are GPLv3 and LGPLv3 (or later)",
+ "matched_text_diagnostics": "GPLv3"
+ },
+ {
+ "license_expression": "lgpl-3.0",
+ "spdx_license_expression": "LGPL-3.0-only",
+ "from_file": "samba/README.contributing",
+ "start_line": 38,
+ "end_line": 38,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "lgpl-3.0_29.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-3.0_29.RULE",
+ "matched_text": "accommodate the licenses we use, which are GPLv3 and LGPLv3 (or later)",
+ "matched_text_diagnostics": "LGPLv3 ("
+ },
+ {
+ "license_expression": "gpl-2.0",
+ "spdx_license_expression": "GPL-2.0-only",
+ "from_file": "samba/README.contributing",
+ "start_line": 39,
+ "end_line": 39,
+ "matcher": "2-aho",
+ "score": 100.0,
+ "matched_length": 1,
+ "match_coverage": 100.0,
+ "rule_relevance": 100,
+ "rule_identifier": "gpl-2.0_bare_single_word.RULE",
+ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0_bare_single_word.RULE",
+ "matched_text": "whereas the Linux kernel uses GPLv2.",
+ "matched_text_diagnostics": "GPLv2."
+ },
{
"license_expression": "gpl-1.0-plus",
"spdx_license_expression": "GPL-1.0-or-later",
@@ -1862,7 +2135,7 @@
"detection_log": [
"unknown-reference-to-local-file"
],
- "identifier": "gpl_3_0_and_gpl_1_0_plus_and_lgpl_3_0_plus_and_lgpl_3_0_and_cc_by_sa_3_0_and_cc_by_sa_4_0_and_dco_1_1_and_gpl_2_0-c27079b5-2c85-9902-b997-c5f0081e9516"
+ "identifier": "gpl_3_0_and_lgpl_3_0_and_gpl_2_0_and_gpl_1_0_plus_and_lgpl_3_0_plus_and_cc_by_sa_3_0_and_cc_by_sa_4_0_and_dco_1_1-91b1ed8a-fad5-77d3-29d0-7667c29ee122"
}
],
"license_clues": [],
diff --git a/tests/packagedcode/data/m2/javassist/javassist/3.4.GA/javassist-3.4.GA.pom.package.json b/tests/packagedcode/data/m2/javassist/javassist/3.4.GA/javassist-3.4.GA.pom.package.json
index 0a099103658..2ad03711c67 100644
--- a/tests/packagedcode/data/m2/javassist/javassist/3.4.GA/javassist-3.4.GA.pom.package.json
+++ b/tests/packagedcode/data/m2/javassist/javassist/3.4.GA/javassist-3.4.GA.pom.package.json
@@ -36,10 +36,10 @@
"start_line": 1,
"end_line": 1,
"matcher": "2-aho",
- "score": 75.0,
+ "score": 60.0,
"matched_length": 1,
"match_coverage": 100.0,
- "rule_relevance": 75,
+ "rule_relevance": 60,
"rule_identifier": "lgpl_bare_single_word.RULE",
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE",
"matched_text": "- name: lgpl"
@@ -51,16 +51,16 @@
"start_line": 2,
"end_line": 2,
"matcher": "2-aho",
- "score": 75.0,
+ "score": 60.0,
"matched_length": 1,
"match_coverage": 100.0,
- "rule_relevance": 75,
+ "rule_relevance": 60,
"rule_identifier": "lgpl_bare_single_word.RULE",
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE",
"matched_text": " url: http://repository.jboss.com/licenses/lgpl.txt"
}
],
- "identifier": "lgpl_2_0_plus-10aa305b-de20-e6cc-d2a0-3f4e76b8a2f9"
+ "identifier": "lgpl_2_0_plus-352c9c42-1459-8dfe-3910-c459079c06b9"
}
],
"other_license_expression": null,
diff --git a/tests/packagedcode/data/maven2/jrecordbind-2.3.4/jrecordbind-2.3.4.pom.package.json b/tests/packagedcode/data/maven2/jrecordbind-2.3.4/jrecordbind-2.3.4.pom.package.json
index 610d63259b0..08166798263 100644
--- a/tests/packagedcode/data/maven2/jrecordbind-2.3.4/jrecordbind-2.3.4.pom.package.json
+++ b/tests/packagedcode/data/maven2/jrecordbind-2.3.4/jrecordbind-2.3.4.pom.package.json
@@ -44,10 +44,10 @@
"start_line": 1,
"end_line": 1,
"matcher": "2-aho",
- "score": 75.0,
+ "score": 60.0,
"matched_length": 1,
"match_coverage": 100.0,
- "rule_relevance": 75,
+ "rule_relevance": 60,
"rule_identifier": "lgpl_bare_single_word.RULE",
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE",
"matched_text": "- name: LGPL"
@@ -68,7 +68,7 @@
"matched_text": " url: http://www.gnu.org/copyleft/lesser.html"
}
],
- "identifier": "lgpl_2_0_plus_and_lgpl_2_1_plus-b52b959e-48c6-d927-c4d0-cf7842fb12fa"
+ "identifier": "lgpl_2_0_plus_and_lgpl_2_1_plus-99bbf99a-48ea-24c4-e2df-f242abe6446f"
}
],
"other_license_expression": null,
diff --git a/tests/packagedcode/data/plugin/maven-package-expected.json b/tests/packagedcode/data/plugin/maven-package-expected.json
index 9f093812996..c80a577b26d 100644
--- a/tests/packagedcode/data/plugin/maven-package-expected.json
+++ b/tests/packagedcode/data/plugin/maven-package-expected.json
@@ -1424,10 +1424,10 @@
"start_line": 1,
"end_line": 1,
"matcher": "2-aho",
- "score": 75.0,
+ "score": 60.0,
"matched_length": 1,
"match_coverage": 100.0,
- "rule_relevance": 75,
+ "rule_relevance": 60,
"rule_identifier": "lgpl_bare_single_word.RULE",
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE",
"matched_text": "- name: LGPL"
@@ -1448,7 +1448,7 @@
"matched_text": " url: http://www.gnu.org/copyleft/lesser.html"
}
],
- "identifier": "lgpl_2_0_plus_and_lgpl_2_1_plus-b52b959e-48c6-d927-c4d0-cf7842fb12fa"
+ "identifier": "lgpl_2_0_plus_and_lgpl_2_1_plus-99bbf99a-48ea-24c4-e2df-f242abe6446f"
}
],
"other_license_expression": null,
@@ -9312,10 +9312,10 @@
"start_line": 1,
"end_line": 1,
"matcher": "2-aho",
- "score": 75.0,
+ "score": 60.0,
"matched_length": 1,
"match_coverage": 100.0,
- "rule_relevance": 75,
+ "rule_relevance": 60,
"rule_identifier": "lgpl_bare_single_word.RULE",
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE",
"matched_text": "- name: LGPL"
@@ -9336,7 +9336,7 @@
"matched_text": " url: http://www.gnu.org/copyleft/lesser.html"
}
],
- "identifier": "lgpl_2_0_plus_and_lgpl_2_1_plus-b52b959e-48c6-d927-c4d0-cf7842fb12fa"
+ "identifier": "lgpl_2_0_plus_and_lgpl_2_1_plus-99bbf99a-48ea-24c4-e2df-f242abe6446f"
}
],
"other_license_expression": null,
diff --git a/tests/packagedcode/data/plugin/maven-package-with-license-expected.json b/tests/packagedcode/data/plugin/maven-package-with-license-expected.json
index 9f093812996..c80a577b26d 100644
--- a/tests/packagedcode/data/plugin/maven-package-with-license-expected.json
+++ b/tests/packagedcode/data/plugin/maven-package-with-license-expected.json
@@ -1424,10 +1424,10 @@
"start_line": 1,
"end_line": 1,
"matcher": "2-aho",
- "score": 75.0,
+ "score": 60.0,
"matched_length": 1,
"match_coverage": 100.0,
- "rule_relevance": 75,
+ "rule_relevance": 60,
"rule_identifier": "lgpl_bare_single_word.RULE",
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE",
"matched_text": "- name: LGPL"
@@ -1448,7 +1448,7 @@
"matched_text": " url: http://www.gnu.org/copyleft/lesser.html"
}
],
- "identifier": "lgpl_2_0_plus_and_lgpl_2_1_plus-b52b959e-48c6-d927-c4d0-cf7842fb12fa"
+ "identifier": "lgpl_2_0_plus_and_lgpl_2_1_plus-99bbf99a-48ea-24c4-e2df-f242abe6446f"
}
],
"other_license_expression": null,
@@ -9312,10 +9312,10 @@
"start_line": 1,
"end_line": 1,
"matcher": "2-aho",
- "score": 75.0,
+ "score": 60.0,
"matched_length": 1,
"match_coverage": 100.0,
- "rule_relevance": 75,
+ "rule_relevance": 60,
"rule_identifier": "lgpl_bare_single_word.RULE",
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE",
"matched_text": "- name: LGPL"
@@ -9336,7 +9336,7 @@
"matched_text": " url: http://www.gnu.org/copyleft/lesser.html"
}
],
- "identifier": "lgpl_2_0_plus_and_lgpl_2_1_plus-b52b959e-48c6-d927-c4d0-cf7842fb12fa"
+ "identifier": "lgpl_2_0_plus_and_lgpl_2_1_plus-99bbf99a-48ea-24c4-e2df-f242abe6446f"
}
],
"other_license_expression": null,
diff --git a/tests/packagedcode/data/pypi/setup.py-versions/chardet-3.0.4/setup.py-expected.json b/tests/packagedcode/data/pypi/setup.py-versions/chardet-3.0.4/setup.py-expected.json
index 4a1b967603b..95995e79a7a 100644
--- a/tests/packagedcode/data/pypi/setup.py-versions/chardet-3.0.4/setup.py-expected.json
+++ b/tests/packagedcode/data/pypi/setup.py-versions/chardet-3.0.4/setup.py-expected.json
@@ -70,16 +70,16 @@
"start_line": 1,
"end_line": 1,
"matcher": "1-hash",
- "score": 75.0,
+ "score": 60.0,
"matched_length": 1,
"match_coverage": 100.0,
- "rule_relevance": 75,
+ "rule_relevance": 60,
"rule_identifier": "lgpl_bare_single_word.RULE",
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE",
"matched_text": "LGPL"
}
],
- "identifier": "lgpl_2_0_plus-64f6d457-252f-6fe3-26b9-ae66d29ef973"
+ "identifier": "lgpl_2_0_plus-e66c5b24-33ce-ea1b-0e3b-28952361ec32"
},
{
"license_expression": "lgpl-2.0-plus",
diff --git a/tests/packagedcode/data/rpm_installed/end-to-end/bdb-fedora-rootfs.tar.xz-expected.json b/tests/packagedcode/data/rpm_installed/end-to-end/bdb-fedora-rootfs.tar.xz-expected.json
index 2f1f39b3ffb..5e9fd90ebd8 100644
--- a/tests/packagedcode/data/rpm_installed/end-to-end/bdb-fedora-rootfs.tar.xz-expected.json
+++ b/tests/packagedcode/data/rpm_installed/end-to-end/bdb-fedora-rootfs.tar.xz-expected.json
@@ -197714,12 +197714,12 @@
"vcs_url": null,
"copyright": null,
"holder": null,
- "declared_license_expression": "gpl-2.0 AND gpl-2.0-plus AND lgpl-2.0-plus AND public-domain",
- "declared_license_expression_spdx": "GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LicenseRef-scancode-public-domain",
+ "declared_license_expression": "(gpl-2.0 AND gpl-2.0-plus AND lgpl-2.0-plus) AND public-domain",
+ "declared_license_expression_spdx": "(GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-or-later) AND LicenseRef-scancode-public-domain",
"license_detections": [
{
- "license_expression": "gpl-2.0 AND gpl-2.0-plus AND lgpl-2.0-plus AND public-domain",
- "license_expression_spdx": "GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LicenseRef-scancode-public-domain",
+ "license_expression": "gpl-2.0 AND gpl-2.0-plus AND lgpl-2.0-plus",
+ "license_expression_spdx": "GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0",
@@ -197765,7 +197765,14 @@
"rule_identifier": "lgpl-2.0-plus_68.RULE",
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-2.0-plus_68.RULE",
"matched_text": "GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain"
- },
+ }
+ ],
+ "identifier": "gpl_2_0_and_gpl_2_0_plus_and_lgpl_2_0_plus-bd982d63-f4d1-02a6-78c8-2d4f38d0725b"
+ },
+ {
+ "license_expression": "public-domain",
+ "license_expression_spdx": "LicenseRef-scancode-public-domain",
+ "matches": [
{
"license_expression": "public-domain",
"spdx_license_expression": "LicenseRef-scancode-public-domain",
@@ -197782,7 +197789,7 @@
"matched_text": "GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain"
}
],
- "identifier": "gpl_2_0_and_gpl_2_0_plus_and_lgpl_2_0_plus_and_public_domain-9df80b2e-1f8f-4b93-bab5-db0fafee93fd"
+ "identifier": "public_domain-3dd945ae-65df-7d90-6467-60f8ecf2eb77"
}
],
"other_license_expression": null,
@@ -435806,12 +435813,12 @@
"vcs_url": null,
"copyright": null,
"holder": null,
- "declared_license_expression": "gpl-2.0 AND gpl-2.0-plus AND lgpl-2.0-plus AND public-domain",
- "declared_license_expression_spdx": "GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LicenseRef-scancode-public-domain",
+ "declared_license_expression": "(gpl-2.0 AND gpl-2.0-plus AND lgpl-2.0-plus) AND public-domain",
+ "declared_license_expression_spdx": "(GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-or-later) AND LicenseRef-scancode-public-domain",
"license_detections": [
{
- "license_expression": "gpl-2.0 AND gpl-2.0-plus AND lgpl-2.0-plus AND public-domain",
- "license_expression_spdx": "GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LicenseRef-scancode-public-domain",
+ "license_expression": "gpl-2.0 AND gpl-2.0-plus AND lgpl-2.0-plus",
+ "license_expression_spdx": "GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-or-later",
"matches": [
{
"license_expression": "gpl-2.0",
@@ -435857,7 +435864,14 @@
"rule_identifier": "lgpl-2.0-plus_68.RULE",
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-2.0-plus_68.RULE",
"matched_text": "GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain"
- },
+ }
+ ],
+ "identifier": "gpl_2_0_and_gpl_2_0_plus_and_lgpl_2_0_plus-bd982d63-f4d1-02a6-78c8-2d4f38d0725b"
+ },
+ {
+ "license_expression": "public-domain",
+ "license_expression_spdx": "LicenseRef-scancode-public-domain",
+ "matches": [
{
"license_expression": "public-domain",
"spdx_license_expression": "LicenseRef-scancode-public-domain",
@@ -435874,7 +435888,7 @@
"matched_text": "GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain"
}
],
- "identifier": "gpl_2_0_and_gpl_2_0_plus_and_lgpl_2_0_plus_and_public_domain-9df80b2e-1f8f-4b93-bab5-db0fafee93fd"
+ "identifier": "public_domain-3dd945ae-65df-7d90-6467-60f8ecf2eb77"
}
],
"other_license_expression": null,