From 8893f0986bcf8c2fb8c1c1e577f10f75adc211f1 Mon Sep 17 00:00:00 2001 From: Ayan Sinha Mahapatra Date: Sat, 16 Sep 2023 02:15:39 +0530 Subject: [PATCH 01/13] Fix oauthlib license detections Reference: https://github.com/nexB/scancode-toolkit/issues/3512 Signed-off-by: Ayan Sinha Mahapatra --- src/licensedcode/data/rules/bsd-new_1304.RULE | 13 +++++++++++++ .../data/rules/cdla-permissive-1.0_2.RULE | 4 ++-- .../data/rules/unknown-license-reference_386.RULE | 10 ++++++++++ src/packagedcode/pypi.py | 4 ++-- 4 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 src/licensedcode/data/rules/bsd-new_1304.RULE create mode 100644 src/licensedcode/data/rules/unknown-license-reference_386.RULE diff --git a/src/licensedcode/data/rules/bsd-new_1304.RULE b/src/licensedcode/data/rules/bsd-new_1304.RULE new file mode 100644 index 00000000000..791f5ddfa86 --- /dev/null +++ b/src/licensedcode/data/rules/bsd-new_1304.RULE @@ -0,0 +1,13 @@ +--- +license_expression: bsd-new +is_license_notice: yes +referenced_filenames: + - LICENSE +ignorable_copyrights: + - copyright (c) The OAuthlib Community +ignorable_holders: + - The OAuthlib Community +--- + +:copyright: (c) The OAuthlib Community +{{:license: BSD, see LICENSE}} for details. \ No newline at end of file diff --git a/src/licensedcode/data/rules/cdla-permissive-1.0_2.RULE b/src/licensedcode/data/rules/cdla-permissive-1.0_2.RULE index 2bf1f83561c..b9650a0c1fc 100644 --- a/src/licensedcode/data/rules/cdla-permissive-1.0_2.RULE +++ b/src/licensedcode/data/rules/cdla-permissive-1.0_2.RULE @@ -5,6 +5,6 @@ relevance: 100 --- License -This data is published under the Community Data License Agreement – Permissive – -Version 1.0 license, but we'd love a shout-out and generally to hear what you're +This data is published under the {{Community Data License Agreement – Permissive – +Version 1.0 license}}, but we'd love a shout-out and generally to hear what you're doing if you use the data. \ No newline at end of file diff --git a/src/licensedcode/data/rules/unknown-license-reference_386.RULE b/src/licensedcode/data/rules/unknown-license-reference_386.RULE new file mode 100644 index 00000000000..b2549632084 --- /dev/null +++ b/src/licensedcode/data/rules/unknown-license-reference_386.RULE @@ -0,0 +1,10 @@ +--- +license_expression: unknown-license-reference +is_license_reference: yes +is_continuous: yes +relevance: 100 +referenced_filenames: + - LICENSE +--- + +{{license_files = LICENSE}} \ No newline at end of file diff --git a/src/packagedcode/pypi.py b/src/packagedcode/pypi.py index cde769d4de1..35fe3db0a30 100644 --- a/src/packagedcode/pypi.py +++ b/src/packagedcode/pypi.py @@ -794,10 +794,10 @@ def parse(cls, location): ) ] - extracted_license_statement = metadata.get('license') + extracted_license_statement = metadata.get('license', '') license_file_references = metadata.get('license_files') if license_file_references: - extracted_license_statement = f"{extracted_license_statement} {license_file_references}" + extracted_license_statement += f"license_files: {license_file_references}" yield models.PackageData( datasource_id=cls.datasource_id, From 4a344b99c00318da55c5a20c16541ec2fdcc51bf Mon Sep 17 00:00:00 2001 From: Ayan Sinha Mahapatra Date: Sat, 16 Sep 2023 03:54:57 +0530 Subject: [PATCH 02/13] Add false positive rules and misc Reference: https://github.com/nexB/scancode-toolkit/issues/3509 Signed-off-by: Ayan Sinha Mahapatra --- src/licensedcode/data/rules/false-positive_694.RULE | 7 +++++++ src/licensedcode/data/rules/false-positive_695.RULE | 6 ++++++ src/licensedcode/data/rules/python_98.RULE | 12 ++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 src/licensedcode/data/rules/false-positive_694.RULE create mode 100644 src/licensedcode/data/rules/false-positive_695.RULE create mode 100644 src/licensedcode/data/rules/python_98.RULE diff --git a/src/licensedcode/data/rules/false-positive_694.RULE b/src/licensedcode/data/rules/false-positive_694.RULE new file mode 100644 index 00000000000..a8f19a587ae --- /dev/null +++ b/src/licensedcode/data/rules/false-positive_694.RULE @@ -0,0 +1,7 @@ +--- +is_false_positive: yes +notes: seen in django utils +--- + +contains no GNU General Public Licensed (GPLed) +code so it may be used in proprietary projects \ No newline at end of file diff --git a/src/licensedcode/data/rules/false-positive_695.RULE b/src/licensedcode/data/rules/false-positive_695.RULE new file mode 100644 index 00000000000..f969987ff0f --- /dev/null +++ b/src/licensedcode/data/rules/false-positive_695.RULE @@ -0,0 +1,6 @@ +--- +is_false_positive: yes +notes: seen in django utils +--- + +contains no GNU General Public Licensed (GPLed) code \ No newline at end of file diff --git a/src/licensedcode/data/rules/python_98.RULE b/src/licensedcode/data/rules/python_98.RULE new file mode 100644 index 00000000000..83ff09955cf --- /dev/null +++ b/src/licensedcode/data/rules/python_98.RULE @@ -0,0 +1,12 @@ +--- +license_expression: python +is_license_notice: yes +referenced_filenames: + - LICENSE +--- + +# License: +# Python Software Foundation License version 2 +# +# See the file "LICENSE" for terms & conditions for usage, and a DISCLAIMER OF +# ALL WARRANTIES. \ No newline at end of file From 100b9e8a324939a1130c5ebb7c9627456f61a999 Mon Sep 17 00:00:00 2001 From: Ayan Sinha Mahapatra Date: Mon, 18 Sep 2023 19:42:56 +0530 Subject: [PATCH 03/13] Add new and updated licenses Signed-off-by: Ayan Sinha Mahapatra --- .../data/licenses/amd-aspf-2023.LICENSE | 29 ++++++++++ .../crunchbase-data-2019-12-17.LICENSE | 43 ++++++++++++++ .../data/licenses/freebsd-doc.LICENSE | 2 + .../licenses/libtool-exception-lgpl.LICENSE | 17 ++++++ .../licenses/morbig-ieee-std-usage.LICENSE | 48 ++++++++++++++++ .../data/licenses/n8n-ee-2022.LICENSE | 36 ++++++++++++ .../data/licenses/netdata-ncul1.LICENSE | 57 +++++++++++++++++++ .../sourcegraph-enterprise-2018.LICENSE | 52 +++++++++++++++++ .../data/licenses/sustainable-use-1.0.LICENSE | 2 + .../data/licenses/w3c-software-2023.LICENSE | 35 ++++++++++++ .../data/rules/libtool-exception-2.0_1.RULE | 1 + 11 files changed, 322 insertions(+) create mode 100644 src/licensedcode/data/licenses/amd-aspf-2023.LICENSE create mode 100644 src/licensedcode/data/licenses/crunchbase-data-2019-12-17.LICENSE create mode 100644 src/licensedcode/data/licenses/libtool-exception-lgpl.LICENSE create mode 100644 src/licensedcode/data/licenses/morbig-ieee-std-usage.LICENSE create mode 100644 src/licensedcode/data/licenses/n8n-ee-2022.LICENSE create mode 100644 src/licensedcode/data/licenses/netdata-ncul1.LICENSE create mode 100644 src/licensedcode/data/licenses/sourcegraph-enterprise-2018.LICENSE create mode 100644 src/licensedcode/data/licenses/w3c-software-2023.LICENSE diff --git a/src/licensedcode/data/licenses/amd-aspf-2023.LICENSE b/src/licensedcode/data/licenses/amd-aspf-2023.LICENSE new file mode 100644 index 00000000000..9cec7d4a029 --- /dev/null +++ b/src/licensedcode/data/licenses/amd-aspf-2023.LICENSE @@ -0,0 +1,29 @@ +--- +key: amd-aspf-2023 +short_name: AMD-ASPF-2023 +name: AMD Secure Encrypted Virtualization (SEV) Firmware License +category: Free Restricted +owner: Advanced Micro Devices +homepage_url: https://github.com/amd/AMD-ASPFW/blob/main/LICENSE.md +spdx_license_key: LicenseRef-scancode-amd-aspf-2023 +--- + +AMD Secure Encrypted Virtualization (SEV) Firmware for 4th Generation AMD EPYC® Processors Secure Encrypted Virtualization (SEV) Firmware License + +In an effort to increase transparency in the security space, Advanced Micro Devices, Inc. (“AMD”) is making the source code for the AMD SEV firmware for 4th Generation AMD EPYC Processors (formerly codenamed “Genoa”) (the “Software”) available to you (either an individual or an entity) ("You") to assess; AMD is not accepting contributions to this Software. + +These license terms are an agreement (“Agreement”) between AMD and You, and the terms apply to the Software identified above. By installing, copying, or using the Software you agree to all the terms and conditions of this Agreement. If You do not or cannot agree to the terms of this Agreement, please do not download or use this Software. + +LICENSE GRANT: Subject to Your compliance with all of the terms and condition of this License, AMD grants You a non-exclusive, non-transferable, free of charge copyright license to use, copy, modify, and create derivatives for the purpose of evaluating the Software for use with AMD’s hardware only; and/or distribute the Software (including derivatives of the Software), for use with AMD hardware only. + +COPYRIGHT NOTICE: The above copyright notice shall be included in all copies or substantial portions of the Software. + +RESTRICTIONS: +i. You may not combine, distribute, or otherwise use the Software in a way that would require any portion of the Software to be made available under any terms other than those of this Agreement. +ii. You may not use the Software to: (a) develop inventions to seek patent protection; (b) assist in the analysis of Your patents and patent applications; or (c) modify Your existing patents or patent applications. + +OWNERSHIP: The Software as well as all intellectual property rights therein are and remain the sole and exclusive property of AMD. + +FEEDBACK AND CONTRIBUTIONS: AMD is not accepting contributions to the Software. You have no obligation to give AMD any suggestions, comments or other feedback (“Feedback”) relating to the Software. However, if You choose to provide AMD with any Feedback, AMD is free to use the Feedback however it chooses. You understand and agree that AMD is not required to make any use of any Feedback that You provide. You represent and warrant that You have sufficient rights in any Feedback that You provide to AMD, to grant AMD and its affiliates the rights described above. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, STRICT LIABILITY OR TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/src/licensedcode/data/licenses/crunchbase-data-2019-12-17.LICENSE b/src/licensedcode/data/licenses/crunchbase-data-2019-12-17.LICENSE new file mode 100644 index 00000000000..5ae4b6f64dd --- /dev/null +++ b/src/licensedcode/data/licenses/crunchbase-data-2019-12-17.LICENSE @@ -0,0 +1,43 @@ +--- +key: crunchbase-data-2019-12-17 +short_name: Crunchbase Data Access Terms 2019-12-17 +name: Crunchbase Data Access Terms 2019-12-17 +category: Proprietary Free +owner: Crunchbase +homepage_url: https://data.crunchbase.com/v3.1/docs/terms +spdx_license_key: LicenseRef-scancode-crunchbase-data-2019-12-17 +faq_url: https://data.crunchbase.com/v3.1/docs/license-agreement +ignorable_urls: + - https://data.crunchbase.com/docs/independent-controller-data-processing-addendum +--- + +Data Access Terms +Effective date: 12/17/2019 + +License to Crunchbase Materials. Subject to all terms and conditions in the Agreement, Crunchbase, Inc. (“Crunchbase”) grants to Licensee a nonexclusive, nontransferable, nonsublicensable, limited license to use Crunchbase’s application programming interface, the Crunchbase data described in your Order Form, and all other documentation and materials provided by Crunchbase (collectively, the “Crunchbase Materials”) solely as specifically set forth in your Order Form and as further limited by these Data Access Terms and Conditions (the “Terms”). Licensee may not download or use the Crunchbase Materials for any other purpose without Crunchbase’s prior written consent. Crunchbase shall not be liable for any (i) modifications to Crunchbase Materials other than by Crunchbase, (ii) combination of Crunchbase Materials with any other data, information, or other materials, or (iii) use of Crunchbase Materials in any manner not expressly permitted by Crunchbase hereunder. + +Restrictions. Except as expressly and unambiguously authorized in your Order Form, Licensee may not (and will not permit or assist any third party to) (i) sell, rent, lease, loan, license, reproduce, modify, transfer, assign, sublicense, display, publish, distribute, disassemble, reverse engineer or decompile (except to the limited extent expressly authorized by applicable statutory law) any part of the Crunchbase Materials, (ii) otherwise use the Crunchbase Materials on behalf of any third party, (iii) use the Crunchbase Materials in any infringing, defamatory, harmful, fraudulent, illegal, deceptive, threatening, harassing, or obscene way, or (iv) disclose the terms and conditions of the Order Form or this Agreement (including, without limitation, pricing terms) to any third party. This Agreement does not include any right for Licensee to use any trademark, service mark, trade name or any other mark of Crunchbase or any other party or licensor. No rights or licenses are granted except as expressly and unambiguously set forth herein. + +Data Processing Terms. To the extent that the Crunchbase Materials include any personal data, the Independent Controller Processing Addendum [https://data.crunchbase.com/docs/independent-controller-data-processing-addendum] shall apply. + +Proprietary Rights. As between Crunchbase and Licensee, the Crunchbase Materials and all intellectual property rights in and to the Crunchbase Materials are and shall at all times remain the sole and exclusive property of Crunchbase and are protected by applicable intellectual property laws and treaties. Except for the licenses expressly granted hereunder, Crunchbase reserves all right, title and interest that it may have in the Crunchbase Materials. + +Marketing Rights. Licensee grants Crunchbase the right to use Licensee’s name and logo on Crunchbase websites and applications and in marketing and promotional material. + +Payment. Licensee agrees to pay all applicable Fees set forth in each applicable Order Form in accordance with the schedule, and in the manner specified, on such Order Form. All fees shall be non-refundable, and payable in US dollars on the date they come due. Licensee shall also pay all sales, use, value-added and other taxes, tariffs and duties of any type assessed against Crunchbase except for taxes on Crunchbase’s income. Crunchbase may disable access to Crunchbase Materials in the event of a failure to pay. + +Support. Licensee agrees to report to Crunchbase any errors or difficulties discovered and the conditions and symptoms of such errors and difficulties. Crunchbase is in no way obligated to provide Licensee with any error correction or support, but may provide whatever error correction and/or support services Crunchbase may determine in its sole discretion (and anything it provides in connection therewith will be deemed part of the Crunchbase Materials). + +Licensee Responsibility. Licensee agrees that Crunchbase shall have no liability whatsoever for (i) any use Licensee makes of the Crunchbase Materials or (ii) Licensee’s products or services that interact with or otherwise use any part of the Crunchbase Materials. Licensee shall indemnify and hold harmless Crunchbase from any and all claims, damages, liabilities, costs and fees (including reasonable attorneys’ fees) arising from (i) or (ii) above or for any breach of this Agreement and/or unauthorized use or disclosure of Crunchbase confidential information. + +Warranty Disclaimer. The parties acknowledge that the Crunchbase Materials and any services are provided “AS IS.” CRUNCHBASE AND ITS LICENSORS DISCLAIM ALL WARRANTIES RELATING TO THE CRUNCHBASE MATERIALS OR ANY SERVICES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTIES AGAINST INFRINGEMENT OF THIRD-PARTY RIGHTS, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + +Limitation of Liability. CRUNCHBASE AND ITS LICENSORS SHALL NOT BE RESPONSIBLE OR LIABLE WITH RESPECT TO ANY SUBJECT MATTER OF THIS AGREEMENT OR THE TERMS AND CONDITIONS RELATED THERETO UNDER ANY CONTRACT, NEGLIGENCE, STRICT LIABILITY OR OTHER THEORY (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, OR (B) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO LOSS OF REVENUES AND LOSS OF PROFITS OR (C) FOR ANY AMOUNT IN THE AGGREGATE OF THE AMOUNT PAID OR PAYABLE BY LICENSEE UNDER SECTION 5 (PROVIDED THAT, IF NO AMOUNTS HAVE BEEN PAID, SUCH CAP SHALL BE FIVE HUNDRED DOLLARS (US$500.00)). + +Termination. This Agreement shall continue until the expiration of the Term specified in your Order Form or earlier terminated as set forth in this section. Either party may terminate this Agreement at any time in the event (a) of a material breach by the other party which remains uncured after ten (10) days written notice thereof, or (b) the other party ceases to do business without a successor, is the subject of any proceeding related to its liquidation or insolvency (whether voluntary or involuntary) that is not dismissed within ninety (90) calendar days, or makes an assignment for the benefit of creditors. Upon any termination or expiration of the Agreement (or the Order Form), all licenses granted to Licensee hereunder shall also terminate. Upon expiration or any termination of this Agreement for any reason, Licensee shall destroy and remove from all computers, hard drives, networks, and other storage media all copies of the Crunchbase Materials, and an officer of Licensee shall so certify to Crunchbase that such actions have occurred within ten (10) days following such expiration or termination. Crunchbase may audit Licensee’s systems to ensure compliance with the foregoing requirement for up to one (1) year after such expiration or termination. Sections 2, 3, 4, and 8 through 14 (and any accrued rights to payment) shall survive termination of this Agreement. + +Government Use. If Licensee is part of an agency, department, or other entity of the United States Government (“Government”), the use, duplication, reproduction, release, modification, disclosure or transfer of the Crunchbase Materials are restricted in accordance with the Federal Acquisition Regulations as applied to civilian agencies and the Defense Federal Acquisition Regulation Supplement as applied to military agencies. The Crunchbase Materials is a “commercial item,” “commercial computer software” and “commercial computer software documentation.” In accordance with such provisions, any use of the Crunchbase Materials by the Government shall be governed solely by the terms of this Agreement. + +Export Controls. Licensee shall comply with all export laws and restrictions and regulations of the Department of Commerce, the United States Department of Treasury Office of Foreign Assets Control (“OFAC”), or other United States or foreign agency or authority, and Licensee shall not export, or allow the export or re-export of any part of the Crunchbase Materials in violation of any such restrictions, laws or regulations. By downloading or using the Crunchbase Materials, Licensee agrees to the foregoing and represents and warrants that Licensee is not located in, under the control of, or a national or resident of any restricted country. + +General. This Agreement shall be governed by and construed under the laws of the State of California without giving effect to the principles of conflicts of law and without application of the UN Convention on Contracts for the International Sale of Goods. All disputes arising in connection with this Agreement shall be subject to the sole and exclusive jurisdiction and venue of the state and Federal courts located in San Francisco, California. The prevailing party in any action arising out of this Agreement shall be entitled to an award of its costs and attorneys’ fees. No waiver of rights under this Agreement by either party shall constitute a subsequent waiver of any right under this Agreement and all waivers must be in writing. In the event that any term of this Agreement is held by a court to be unenforceable, such provision shall be limited or eliminated to the minimum extent necessary so that this Agreement shall otherwise remain in full force and effect and enforceable. Licensee agrees that Crunchbase is not responsible for anything resulting from events beyond Crunchbase’s reasonable control, including, but not limited to, acts of God, war, insurrection, riots, terrorism, crime, labor shortages (including lawful and unlawful strikes), embargoes, postal disruption, communication disruption, failure or shortage of infrastructure, or shortage of materials. Licensee may not assign or transfer this Agreement (or any part hereof), including, without limitation, in connection with any merger, sale, or other change in control of Licensee or Licensee’s assets relating to this Agreement or by operation of law, without the prior written consent of Crunchbase. Crunchbase shall have the right to freely assign or otherwise transfer this Agreement (in whole or part). All notices required or permitted under this Agreement will be in writing and will be sent (i) if to Crunchbase: 564 Market Street, Suite 700, San Francisco, CA 94104, and if Licensee: such address as Licensee provides to Crunchbase on registering for access to Crunchbase Materials (or, in either case, such other address as a party may designate in writing). This Agreement is the complete agreement between the parties hereto concerning the subject matter of this Agreement and replaces any prior oral or written communications between the parties with respect thereto. This Agreement may only be modified by a written document executed by the parties hereto. \ No newline at end of file diff --git a/src/licensedcode/data/licenses/freebsd-doc.LICENSE b/src/licensedcode/data/licenses/freebsd-doc.LICENSE index b9e69c243d8..3cfc65159f1 100644 --- a/src/licensedcode/data/licenses/freebsd-doc.LICENSE +++ b/src/licensedcode/data/licenses/freebsd-doc.LICENSE @@ -4,6 +4,7 @@ short_name: FreeBSD Doc License name: FreeBSD Doc License category: Permissive owner: FreeBSD +homepage_url: https://www.freebsd.org/copyright/freebsd-doc-license.html spdx_license_key: FreeBSD-DOC other_spdx_license_keys: - LicenseRef-scancode-freebsd-doc @@ -14,6 +15,7 @@ text_urls: - https://github.com/pabloriera/ofxKCoreN/blob/f2c6e01b6eeca384f38008520195f2e2481181e3/src/ofxKCoreN.h - https://github.com/open-mpi/docs/blob/master/README.md other_urls: + - https://en.wikipedia.org/wiki/FreeBSD_Documentation_License - https://www.freebsd.org/copyright/freebsd-doc-license/ --- diff --git a/src/licensedcode/data/licenses/libtool-exception-lgpl.LICENSE b/src/licensedcode/data/licenses/libtool-exception-lgpl.LICENSE new file mode 100644 index 00000000000..ff4d0101812 --- /dev/null +++ b/src/licensedcode/data/licenses/libtool-exception-lgpl.LICENSE @@ -0,0 +1,17 @@ +--- +key: libtool-exception-lgpl +short_name: GNU Libtool exception to LGPL +name: GNU Libtool exception to LGPL +category: Copyleft Limited +owner: Free Software Foundation (FSF) +homepage_url: https://git.savannah.gnu.org/cgit/libtool.git/tree/libltdl/slist.c?h=v2.4.7 +is_exception: yes +spdx_license_key: LicenseRef-scancode-libtool-exception-lgpl +other_urls: + - https://github.com/nexB/scancode-licensedb/issues/43 +--- + +As a special exception to the GNU Lesser General Public License, +if you distribute this file as part of a program or library that +is built using GNU Libtool, you may include this file under the +same distribution terms that you use for the rest of that program. \ No newline at end of file diff --git a/src/licensedcode/data/licenses/morbig-ieee-std-usage.LICENSE b/src/licensedcode/data/licenses/morbig-ieee-std-usage.LICENSE new file mode 100644 index 00000000000..c782033564a --- /dev/null +++ b/src/licensedcode/data/licenses/morbig-ieee-std-usage.LICENSE @@ -0,0 +1,48 @@ +--- +key: morbig-ieee-std-usage +short_name: IEEE Std 1003.1 Text Usage +name: IEEE Std 1003.1 Text Usage +category: Permissive +owner: ANR +homepage_url: https://github.com/colis-anr/morbig/blob/main/COPYING +spdx_license_key: LicenseRef-scancode-morbig-ieee-std-usage +other_urls: + - http://www.opengroup.org/unix/online.html + - https://www.man7.org/linux/man-pages/man3/dprintf.3p.html + - https://fedoraproject.org/wiki/Licensing:IEEEDocLicense +standard_notice: | + Morbig is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License, version 3. The + complete license terms can be found in the file GPL3. + In accordance with Section 7 of the GNU General Public License version 3, + the following additional terms apply: +ignorable_copyrights: + - Copyright (c) 2016 by The Institute of Electrical and Electronics Engineers, Inc +ignorable_holders: + - The Institute of Electrical and Electronics Engineers, Inc +ignorable_urls: + - http://www.opengroup.org/unix/online.html +--- + +The Institute of Electrical and Electronics Engineers and The Open Group, +have given us permission to reprint portions of their documentation. + +In the following statement, the phrase ``this text'' refers to portions +of the system documentation. + +Portions of this text are reprinted and reproduced in electronic form +in the source code of Morbig, from IEEE Std 1003.1, 2016 Edition, +Standard for Information Technology -- Portable Operating System +Interface (POSIX), The Open Group Base Specifications Issue 7, +Copyright (C) 2016 by The Institute of Electrical and Electronics +Engineers, Inc and The Open Group. In the event of any discrepancy +between these versions and the original IEEE and The Open Group +Standard, the original IEEE and The Open Group Standard is the referee +document. The original Standard can be obtained online at +http://www.opengroup.org/unix/online.html . + +This notice shall appear on any product containing this material. + +If descriptions are added to the material that are in conflict with +the Standard then such conflicting descriptions must be clearly marked +in the text as a conflict with the Standard. \ No newline at end of file diff --git a/src/licensedcode/data/licenses/n8n-ee-2022.LICENSE b/src/licensedcode/data/licenses/n8n-ee-2022.LICENSE new file mode 100644 index 00000000000..44ff3902db2 --- /dev/null +++ b/src/licensedcode/data/licenses/n8n-ee-2022.LICENSE @@ -0,0 +1,36 @@ +--- +key: n8n-ee-2022 +short_name: n8n Enterprise License 2022 +name: n8n Enterprise License 2022 +category: Commercial +owner: n8n +homepage_url: https://github.com/n8n-io/n8n/blob/master/LICENSE_EE.md +spdx_license_key: LicenseRef-scancode-n8n-ee-2022 +faq_url: https://github.com/n8n-io/n8n/blob/master/LICENSE.md#license +--- + +# The n8n Enterprise License (the “Enterprise License”) + +With regard to the n8n Software: + +This software and associated documentation files (the "Software") may only be used in production, if +you (and any entity that you represent) hold a valid n8n Enterprise license corresponding to your +usage. Subject to the foregoing sentence, you are free to modify this Software and publish patches +to the Software. You agree that n8n and/or its licensors (as applicable) retain all right, title and +interest in and to all such modifications and/or patches, and all such modifications and/or patches +may only be used, copied, modified, displayed, distributed, or otherwise exploited with a valid n8n +Enterprise license for the corresponding usage. Notwithstanding the foregoing, you may copy and +modify the Software for development and testing purposes, without requiring a subscription. You +agree that n8n and/or its licensors (as applicable) retain all right, title and interest in and to +all such modifications. You are not granted any other rights beyond what is expressly stated herein. +Subject to the foregoing, it is forbidden to copy, merge, publish, distribute, sublicense, and/or +sell the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT +NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES +OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +For all third party components incorporated into the n8n Software, those components are licensed +under the original license provided by the owner of the applicable component. \ No newline at end of file diff --git a/src/licensedcode/data/licenses/netdata-ncul1.LICENSE b/src/licensedcode/data/licenses/netdata-ncul1.LICENSE new file mode 100644 index 00000000000..95d21bf0e87 --- /dev/null +++ b/src/licensedcode/data/licenses/netdata-ncul1.LICENSE @@ -0,0 +1,57 @@ +--- +key: netdata-ncul1 +short_name: Netdata Cloud UI License v1.0 (NCUL1) +name: Netdata Cloud UI License v1.0 (NCUL1) +category: Proprietary Free +owner: Netdata +homepage_url: https://github.com/netdata/netdata/blob/master/web/gui/v2/LICENSE.md +spdx_license_key: LicenseRef-scancode-netdata-ncul1 +other_urls: + - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1045145 + - https://lists.debian.org/debian-legal/2023/08/msg00002.html +ignorable_urls: + - https://app.netdata.cloud/3D_PARTY_LICENSES.txt +--- + +# Netdata Cloud UI License v1.0 (NCUL1) + +## Acceptance +By using the software, you agree to all of the terms and conditions below. + +## Copyright License +The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available the software, in each case subject to the limitations, restrictions and conditions below. + +## Limitations +This license allows you to use the Software only to interface with the licensor's other software components, such as Netdata Agents and Netdata Cloud. Any use with replacements for these components is not permitted. + +## Restrictions +The Software is provided in a binary form for use by end-users. You may not reverse engineer, decompile, disassemble, or modify the Software. The Software is licensed as a single product and its component parts may not be separated. + +## Patents +If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your license for the software granted under these terms ends immediately. If your company makes such a claim, your license ends immediately for work on behalf of your company. + +## Notices +You must ensure that anyone who gets a copy of the Software from you also gets a copy of these terms. + +## No Other Rights +These terms do not imply any licenses other than those expressly granted in these terms. + +## Termination +If you use the Software in violation of any of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violations of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently. + +## No Warranties and No Liability +The software comes "As Is", without any express or implied warranties of any kind, including but not limited to any warranties of merchantability, non-infringement, or fitness for a particular purpose. The licensor will not be liable to you for any damages arising out of these terms or the use or nature of the Software, under any kind of legal claim. + +## Open Source Components +The software includes certain third party open source components. Each of these components is subject to its own license. The list of open-source components used by Netdata Cloud UI is [here](https://app.netdata.cloud/3D_PARTY_LICENSES.txt). + +## Definitions +The "licensor" is Netdata Inc., the entity offering these terms, and the "**software**" is the Netdata Cloud UI software the licensor makes available under these terms, including any portion of it. + +"**you**" refers to the individual or entity agreeing to these terms. + +"**your company**" is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. "**Control**" means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect. + +"**your licenses**" are all the licenses granted to you for the software under these terms. + +"**use**" means anything you do with the software requiring one of your licenses. \ No newline at end of file diff --git a/src/licensedcode/data/licenses/sourcegraph-enterprise-2018.LICENSE b/src/licensedcode/data/licenses/sourcegraph-enterprise-2018.LICENSE new file mode 100644 index 00000000000..136c2176d2e --- /dev/null +++ b/src/licensedcode/data/licenses/sourcegraph-enterprise-2018.LICENSE @@ -0,0 +1,52 @@ +--- +key: sourcegraph-enterprise-2018 +short_name: Sourcegraph Enterprise License 2018 +name: Sourcegraph Enterprise License 2018 +category: Commercial +owner: Sourcegraph +homepage_url: https://github.com/sourcegraph/sourcegraph/blob/main/LICENSE.enterprise +spdx_license_key: LicenseRef-scancode-sourcegraph-enterprise-2018 +other_urls: + - https://about.sourcegraph.com/terms +ignorable_urls: + - https://about.sourcegraph.com/terms +--- + +The Sourcegraph Enterprise license (the “Enterprise License”) + +With regard to the Sourcegraph Software: + +This software and associated documentation files (the "Software") may only be +used in production, if you (and any entity that you represent) have agreed to, +and are in compliance with, the Sourcegraph Terms of Service, available +at https://about.sourcegraph.com/terms (the “Enterprise Terms”), or other +agreement governing the use of the Software, as agreed by you and Sourcegraph, +and otherwise have a valid Sourcegraph Enterprise subscription for the +correct number of user seats. Subject to the foregoing sentence, you are free to +modify this Software and publish patches to the Software. You agree that Sourcegraph +and/or its licensors (as applicable) retain all right, title and interest in and +to all such modifications and/or patches, and all such modifications and/or +patches may only be used, copied, modified, displayed, distributed, or otherwise +exploited with a valid Sourcegraph Enterprise subscription for the correct +number of user seats. Notwithstanding the foregoing, you may copy and modify +the Software for development and testing purposes, without requiring a +subscription. You agree that Sourcegraph and/or its licensors (as applicable) retain +all right, title and interest in and to all such modifications. You are not +granted any other rights beyond what is expressly stated herein. Subject to the +foregoing, it is forbidden to copy, merge, publish, distribute, sublicense, +and/or sell the Software. + +The full text of this Enterprise License shall be included in all copies or +substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +For all third party components incorporated into the Sourcegraph Software, those +components are licensed under the original license provided by the owner of the +applicable component. \ No newline at end of file diff --git a/src/licensedcode/data/licenses/sustainable-use-1.0.LICENSE b/src/licensedcode/data/licenses/sustainable-use-1.0.LICENSE index d739ae57062..fdd827635d9 100644 --- a/src/licensedcode/data/licenses/sustainable-use-1.0.LICENSE +++ b/src/licensedcode/data/licenses/sustainable-use-1.0.LICENSE @@ -6,6 +6,8 @@ category: Free Restricted owner: Fair-code homepage_url: https://github.com/n8n-io/n8n/blob/master/LICENSE.md spdx_license_key: LicenseRef-scancode-sustainable-use-1.0 +text_urls: + - https://github.com/n8n-io/n8n/blob/master/LICENSE.md#sustainable-use-license faq_url: https://faircode.io/#faq other_urls: - https://blog.n8n.io/announcing-new-sustainable-use-license/ diff --git a/src/licensedcode/data/licenses/w3c-software-2023.LICENSE b/src/licensedcode/data/licenses/w3c-software-2023.LICENSE new file mode 100644 index 00000000000..086a5f54291 --- /dev/null +++ b/src/licensedcode/data/licenses/w3c-software-2023.LICENSE @@ -0,0 +1,35 @@ +--- +key: w3c-software-2023 +short_name: W3C Software License 2023 +name: W3C Software License 2023 +category: Permissive +owner: W3C - World Wide Web Consortium +homepage_url: https://www.w3.org/copyright/software-license-2023/ +spdx_license_key: LicenseRef-scancode-w3c-software-2023 +other_urls: + - https://www.w3.org/Consortium/Legal/2023/copyright-software-short-notice.html +ignorable_copyrights: + - Copyright (c) $year-of-document World Wide Web Consortium. https://www.w3.org/copyright/software-license-2023 +ignorable_holders: + - $year-of-document World Wide Web Consortium +ignorable_urls: + - https://www.w3.org/copyright/software-license-2023/ +--- + +License + +By obtaining and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions. + +Permission to copy, modify, and distribute this work, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the work or portions thereof, including modifications: + + The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. + Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C software and document short notice should be included. + Notice of any changes or modifications, through a copyright statement on the new code or document such as "This software or document includes material copied from or derived from [title and URI of the W3C document]. Copyright © [$year-of-document] World Wide Web Consortium. https://www.w3.org/copyright/software-license-2023/" + +Disclaimers + +THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENT WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. + +COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENT. + +The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the work without specific, written prior permission. Title to copyright in this work will at all times remain with copyright holders. \ No newline at end of file diff --git a/src/licensedcode/data/rules/libtool-exception-2.0_1.RULE b/src/licensedcode/data/rules/libtool-exception-2.0_1.RULE index 9bb31d9a801..4dce7c574c1 100644 --- a/src/licensedcode/data/rules/libtool-exception-2.0_1.RULE +++ b/src/licensedcode/data/rules/libtool-exception-2.0_1.RULE @@ -2,6 +2,7 @@ license_expression: libtool-exception-2.0 is_license_text: yes relevance: 99 +is_deprecated: yes notes: this exception is usually for the GPL. But this is the LGPL that is referenced here. --- From 2c1d41b43ce138e27b0e56010766d1e7ae00cf95 Mon Sep 17 00:00:00 2001 From: Ayan Sinha Mahapatra Date: Mon, 18 Sep 2023 20:45:08 +0530 Subject: [PATCH 04/13] Add pypi license detection updates Signed-off-by: Ayan Sinha Mahapatra --- src/licensedcode/data/rules/bsd-new_1305.RULE | 9 ++++++ .../rules/unknown-license-reference_387.RULE | 10 ++++++ src/packagedcode/pypi.py | 6 ++-- ...n-package-instance-expected-with-uuid.json | 24 +++++++------- .../python-package-instance-expected.json | 24 +++++++------- ...ackage-instance-with-license-expected.json | 32 +++++++++---------- 6 files changed, 63 insertions(+), 42 deletions(-) create mode 100644 src/licensedcode/data/rules/bsd-new_1305.RULE create mode 100644 src/licensedcode/data/rules/unknown-license-reference_387.RULE diff --git a/src/licensedcode/data/rules/bsd-new_1305.RULE b/src/licensedcode/data/rules/bsd-new_1305.RULE new file mode 100644 index 00000000000..7b8bcd488c2 --- /dev/null +++ b/src/licensedcode/data/rules/bsd-new_1305.RULE @@ -0,0 +1,9 @@ +--- +license_expression: bsd-new +is_license_tag: yes +relevance: 100 +referenced_filenames: + - LICENSE.rst +--- + +BSD-3-Clause license_files: LICENSE.rst \ No newline at end of file diff --git a/src/licensedcode/data/rules/unknown-license-reference_387.RULE b/src/licensedcode/data/rules/unknown-license-reference_387.RULE new file mode 100644 index 00000000000..dc9f63a7072 --- /dev/null +++ b/src/licensedcode/data/rules/unknown-license-reference_387.RULE @@ -0,0 +1,10 @@ +--- +license_expression: unknown-license-reference +is_license_reference: yes +is_continuous: yes +relevance: 100 +referenced_filenames: + - LICENSE.rst +--- + +{{license_files = LICENSE.rst}} \ No newline at end of file diff --git a/src/packagedcode/pypi.py b/src/packagedcode/pypi.py index 35fe3db0a30..79fb78f49b8 100644 --- a/src/packagedcode/pypi.py +++ b/src/packagedcode/pypi.py @@ -794,10 +794,12 @@ def parse(cls, location): ) ] - extracted_license_statement = metadata.get('license', '') + extracted_license_statement = metadata.get('license') license_file_references = metadata.get('license_files') if license_file_references: - extracted_license_statement += f"license_files: {license_file_references}" + if not extracted_license_statement: + extracted_license_statement = '' + extracted_license_statement += f" license_files: {license_file_references}" yield models.PackageData( datasource_id=cls.datasource_id, diff --git a/tests/packagedcode/data/instance/python-package-instance-expected-with-uuid.json b/tests/packagedcode/data/instance/python-package-instance-expected-with-uuid.json index 5c0ad489500..2c3d445d1aa 100644 --- a/tests/packagedcode/data/instance/python-package-instance-expected-with-uuid.json +++ b/tests/packagedcode/data/instance/python-package-instance-expected-with-uuid.json @@ -42,23 +42,23 @@ "score": 100.0, "start_line": 1, "end_line": 1, - "matched_length": 5, + "matched_length": 7, "match_coverage": 100.0, "matcher": "1-hash", "license_expression": "bsd-new", - "rule_identifier": "bsd-new_1303.RULE", + "rule_identifier": "bsd-new_1305.RULE", "rule_relevance": 100, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/bsd-new_1303.RULE", - "matched_text": "BSD-3-Clause LICENSE.rst" + "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/bsd-new_1305.RULE", + "matched_text": "BSD-3-Clause license_files: LICENSE.rst" } ], - "identifier": "bsd_new-93f27a43-68fa-0573-8609-f6d624f3ac9a" + "identifier": "bsd_new-e58e9b3b-9926-376f-1c85-181d7df93c33" } ], "other_license_expression": null, "other_license_expression_spdx": null, "other_license_detections": [], - "extracted_license_statement": "BSD-3-Clause LICENSE.rst", + "extracted_license_statement": "BSD-3-Clause license_files: LICENSE.rst", "notice_text": null, "source_packages": [], "extra_data": {}, @@ -184,23 +184,23 @@ "score": 100.0, "start_line": 1, "end_line": 1, - "matched_length": 5, + "matched_length": 7, "match_coverage": 100.0, "matcher": "1-hash", "license_expression": "bsd-new", - "rule_identifier": "bsd-new_1303.RULE", + "rule_identifier": "bsd-new_1305.RULE", "rule_relevance": 100, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/bsd-new_1303.RULE", - "matched_text": "BSD-3-Clause LICENSE.rst" + "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/bsd-new_1305.RULE", + "matched_text": "BSD-3-Clause license_files: LICENSE.rst" } ], - "identifier": "bsd_new-93f27a43-68fa-0573-8609-f6d624f3ac9a" + "identifier": "bsd_new-e58e9b3b-9926-376f-1c85-181d7df93c33" } ], "other_license_expression": null, "other_license_expression_spdx": null, "other_license_detections": [], - "extracted_license_statement": "BSD-3-Clause LICENSE.rst", + "extracted_license_statement": "BSD-3-Clause license_files: LICENSE.rst", "notice_text": null, "source_packages": [], "file_references": [], diff --git a/tests/packagedcode/data/instance/python-package-instance-expected.json b/tests/packagedcode/data/instance/python-package-instance-expected.json index 5c0ad489500..2c3d445d1aa 100644 --- a/tests/packagedcode/data/instance/python-package-instance-expected.json +++ b/tests/packagedcode/data/instance/python-package-instance-expected.json @@ -42,23 +42,23 @@ "score": 100.0, "start_line": 1, "end_line": 1, - "matched_length": 5, + "matched_length": 7, "match_coverage": 100.0, "matcher": "1-hash", "license_expression": "bsd-new", - "rule_identifier": "bsd-new_1303.RULE", + "rule_identifier": "bsd-new_1305.RULE", "rule_relevance": 100, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/bsd-new_1303.RULE", - "matched_text": "BSD-3-Clause LICENSE.rst" + "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/bsd-new_1305.RULE", + "matched_text": "BSD-3-Clause license_files: LICENSE.rst" } ], - "identifier": "bsd_new-93f27a43-68fa-0573-8609-f6d624f3ac9a" + "identifier": "bsd_new-e58e9b3b-9926-376f-1c85-181d7df93c33" } ], "other_license_expression": null, "other_license_expression_spdx": null, "other_license_detections": [], - "extracted_license_statement": "BSD-3-Clause LICENSE.rst", + "extracted_license_statement": "BSD-3-Clause license_files: LICENSE.rst", "notice_text": null, "source_packages": [], "extra_data": {}, @@ -184,23 +184,23 @@ "score": 100.0, "start_line": 1, "end_line": 1, - "matched_length": 5, + "matched_length": 7, "match_coverage": 100.0, "matcher": "1-hash", "license_expression": "bsd-new", - "rule_identifier": "bsd-new_1303.RULE", + "rule_identifier": "bsd-new_1305.RULE", "rule_relevance": 100, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/bsd-new_1303.RULE", - "matched_text": "BSD-3-Clause LICENSE.rst" + "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/bsd-new_1305.RULE", + "matched_text": "BSD-3-Clause license_files: LICENSE.rst" } ], - "identifier": "bsd_new-93f27a43-68fa-0573-8609-f6d624f3ac9a" + "identifier": "bsd_new-e58e9b3b-9926-376f-1c85-181d7df93c33" } ], "other_license_expression": null, "other_license_expression_spdx": null, "other_license_detections": [], - "extracted_license_statement": "BSD-3-Clause LICENSE.rst", + "extracted_license_statement": "BSD-3-Clause license_files: LICENSE.rst", "notice_text": null, "source_packages": [], "file_references": [], diff --git a/tests/packagedcode/data/instance/python-package-instance-with-license-expected.json b/tests/packagedcode/data/instance/python-package-instance-with-license-expected.json index 42eb51c6e41..4122635a3a2 100644 --- a/tests/packagedcode/data/instance/python-package-instance-with-license-expected.json +++ b/tests/packagedcode/data/instance/python-package-instance-with-license-expected.json @@ -42,14 +42,14 @@ "score": 100.0, "start_line": 1, "end_line": 1, - "matched_length": 5, + "matched_length": 7, "match_coverage": 100.0, "matcher": "1-hash", "license_expression": "bsd-new", - "rule_identifier": "bsd-new_1303.RULE", + "rule_identifier": "bsd-new_1305.RULE", "rule_relevance": 100, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/bsd-new_1303.RULE", - "matched_text": "BSD-3-Clause LICENSE.rst" + "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/bsd-new_1305.RULE", + "matched_text": "BSD-3-Clause license_files: LICENSE.rst" }, { "score": 99.0, @@ -64,7 +64,7 @@ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/bsd-new_89.RULE" } ], - "identifier": "bsd_new-56110dee-5dcd-3acb-7774-ab2491cc76bf", + "identifier": "bsd_new-c0e1e2ee-7e69-b9f1-a736-85b2eaa65db2", "detection_log": [ "package-unknown-reference-to-local-file" ] @@ -73,7 +73,7 @@ "other_license_expression": null, "other_license_expression_spdx": null, "other_license_detections": [], - "extracted_license_statement": "BSD-3-Clause LICENSE.rst", + "extracted_license_statement": "BSD-3-Clause license_files: LICENSE.rst", "notice_text": null, "source_packages": [], "extra_data": {}, @@ -142,19 +142,19 @@ "detection_log": [] }, { - "identifier": "bsd_new-56110dee-5dcd-3acb-7774-ab2491cc76bf", + "identifier": "bsd_new-68720980-08c9-ffb1-f28e-24c2e067385b", "license_expression": "bsd-new", "detection_count": 1, "detection_log": [ - "package-unknown-reference-to-local-file" + "unknown-reference-to-local-file" ] }, { - "identifier": "bsd_new-68720980-08c9-ffb1-f28e-24c2e067385b", + "identifier": "bsd_new-c0e1e2ee-7e69-b9f1-a736-85b2eaa65db2", "license_expression": "bsd-new", "detection_count": 1, "detection_log": [ - "unknown-reference-to-local-file" + "package-unknown-reference-to-local-file" ] }, { @@ -259,14 +259,14 @@ "score": 100.0, "start_line": 1, "end_line": 1, - "matched_length": 5, + "matched_length": 7, "match_coverage": 100.0, "matcher": "1-hash", "license_expression": "bsd-new", - "rule_identifier": "bsd-new_1303.RULE", + "rule_identifier": "bsd-new_1305.RULE", "rule_relevance": 100, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/bsd-new_1303.RULE", - "matched_text": "BSD-3-Clause LICENSE.rst" + "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/bsd-new_1305.RULE", + "matched_text": "BSD-3-Clause license_files: LICENSE.rst" }, { "score": 99.0, @@ -281,7 +281,7 @@ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/bsd-new_89.RULE" } ], - "identifier": "bsd_new-56110dee-5dcd-3acb-7774-ab2491cc76bf", + "identifier": "bsd_new-c0e1e2ee-7e69-b9f1-a736-85b2eaa65db2", "detection_log": [ "package-unknown-reference-to-local-file" ] @@ -290,7 +290,7 @@ "other_license_expression": null, "other_license_expression_spdx": null, "other_license_detections": [], - "extracted_license_statement": "BSD-3-Clause LICENSE.rst", + "extracted_license_statement": "BSD-3-Clause license_files: LICENSE.rst", "notice_text": null, "source_packages": [], "file_references": [], From 29b7ba91501a530c7fe5d71092a339db0b041b7a Mon Sep 17 00:00:00 2001 From: Ayan Sinha Mahapatra Date: Mon, 18 Sep 2023 20:50:22 +0530 Subject: [PATCH 05/13] Fix test failures Signed-off-by: Ayan Sinha Mahapatra --- .readthedocs.yml | 6 ++++++ ...ginal-uc_and_bsd-original-uc_and_bsd-original-uc.txt.yml | 2 +- ...man-pages-3.35-4.fc17.noarch.rpm.POSIX-COPYRIGHT.txt.yml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 2a7dc0b40d1..4829694cf9d 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -14,6 +14,12 @@ formats: sphinx: configuration: docs/source/conf.py +# specify build OS +build: + os: ubuntu-22.04 + tools: + python: "3.11" + # Setting the python version and doc build requirements python: install: diff --git a/tests/licensedcode/data/datadriven/lic2/bsd-original-uc_and_bsd-original-uc_and_bsd-original-uc.txt.yml b/tests/licensedcode/data/datadriven/lic2/bsd-original-uc_and_bsd-original-uc_and_bsd-original-uc.txt.yml index 34e6e5f3be7..9ef19305ec1 100644 --- a/tests/licensedcode/data/datadriven/lic2/bsd-original-uc_and_bsd-original-uc_and_bsd-original-uc.txt.yml +++ b/tests/licensedcode/data/datadriven/lic2/bsd-original-uc_and_bsd-original-uc_and_bsd-original-uc.txt.yml @@ -1,5 +1,5 @@ license_expressions: - bsd-original-uc - - other-permissive + - morbig-ieee-std-usage - other-permissive - bsd-original-uc diff --git a/tests/licensedcode/data/datadriven/lic3/man-pages-3.35-4.fc17.noarch.rpm.POSIX-COPYRIGHT.txt.yml b/tests/licensedcode/data/datadriven/lic3/man-pages-3.35-4.fc17.noarch.rpm.POSIX-COPYRIGHT.txt.yml index baebe2db367..0c8947b0799 100644 --- a/tests/licensedcode/data/datadriven/lic3/man-pages-3.35-4.fc17.noarch.rpm.POSIX-COPYRIGHT.txt.yml +++ b/tests/licensedcode/data/datadriven/lic3/man-pages-3.35-4.fc17.noarch.rpm.POSIX-COPYRIGHT.txt.yml @@ -1,3 +1,3 @@ license_expressions: - - other-permissive + - morbig-ieee-std-usage - other-permissive From 3ac8e96de9c23b878ed74845170da12983b1d84a Mon Sep 17 00:00:00 2001 From: Ayan Sinha Mahapatra Date: Mon, 18 Sep 2023 21:11:03 +0530 Subject: [PATCH 06/13] Update license text for lbnl-bsd Signed-off-by: Ayan Sinha Mahapatra --- .../data/licenses/lbnl-bsd.LICENSE | 9 ---- src/licensedcode/data/rules/lbnl-bsd_13.RULE | 50 +++++++++++++++++++ src/licensedcode/data/rules/lbnl-bsd_2.RULE | 1 + 3 files changed, 51 insertions(+), 9 deletions(-) create mode 100644 src/licensedcode/data/rules/lbnl-bsd_13.RULE diff --git a/src/licensedcode/data/licenses/lbnl-bsd.LICENSE b/src/licensedcode/data/licenses/lbnl-bsd.LICENSE index 87ee6ccb434..c0a29a19efc 100644 --- a/src/licensedcode/data/licenses/lbnl-bsd.LICENSE +++ b/src/licensedcode/data/licenses/lbnl-bsd.LICENSE @@ -9,17 +9,8 @@ spdx_license_key: BSD-3-Clause-LBNL other_urls: - https://fedoraproject.org/wiki/Licensing/LBNLBSD minimum_coverage: 90 -ignorable_copyrights: - - Copyright (c) 2003, The Regents of the University of California, through Lawrence Berkeley - National Laboratory -ignorable_holders: - - The Regents of the University of California, through Lawrence Berkeley National Laboratory --- -Copyright (c) 2003, The Regents of the University of California, through -Lawrence Berkeley National Laboratory (subject to receipt of any required -approvals from the U.S. Dept. of Energy). All rights reserved. - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/src/licensedcode/data/rules/lbnl-bsd_13.RULE b/src/licensedcode/data/rules/lbnl-bsd_13.RULE new file mode 100644 index 00000000000..a5c4245b52b --- /dev/null +++ b/src/licensedcode/data/rules/lbnl-bsd_13.RULE @@ -0,0 +1,50 @@ +--- +license_expression: lbnl-bsd +is_license_text: yes +ignorable_copyrights: + - Copyright (c) 2003, The Regents of the University of California, through Lawrence Berkeley + National Laboratory +ignorable_holders: + - The Regents of the University of California, through Lawrence Berkeley National Laboratory +--- + +Copyright (c) 2003, The Regents of the University of California, through +Lawrence Berkeley National Laboratory (subject to receipt of any required +approvals from the U.S. Dept. of Energy). All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +(1) Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. + +(2) Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. + +(3) Neither the name of the University of California, Lawrence Berkeley National +Laboratory, U.S. Dept. of Energy nor the names of its contributors may be +used to endorse or promote products derived from this software without specific +prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER +OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +You are under no obligation whatsoever to provide any bug fixes, patches, +or upgrades to the features, functionality or performance of the source code +("Enhancements") to anyone; however, if you choose to make your Enhancements +available either publicly, or directly to Lawrence Berkeley National Laboratory, +without imposing a separate written license agreement for such Enhancements, +then you hereby grant the following license: a non-exclusive, royalty-free +perpetual license to install, use, modify, prepare derivative works, incorporate +into other computer software, distribute, and sublicense such Enhancements +or derivative works thereof, in binary and source code form. \ No newline at end of file diff --git a/src/licensedcode/data/rules/lbnl-bsd_2.RULE b/src/licensedcode/data/rules/lbnl-bsd_2.RULE index a1d092d546f..c6d9bdc70f8 100644 --- a/src/licensedcode/data/rules/lbnl-bsd_2.RULE +++ b/src/licensedcode/data/rules/lbnl-bsd_2.RULE @@ -1,6 +1,7 @@ --- license_expression: lbnl-bsd is_license_text: yes +is_deprecated: yes relevance: 100 --- From 570c43ffc4dace7d787c34004c6f4cc83f52ae06 Mon Sep 17 00:00:00 2001 From: Ayan Sinha Mahapatra Date: Tue, 19 Sep 2023 19:16:46 +0530 Subject: [PATCH 07/13] Add rules and license detection updates * Add new license rules from jacoco * Add updates to the license clue heuristics Reference: https://github.com/nexB/scancode-toolkit/issues/3515 Signed-off-by: Ayan Sinha Mahapatra --- src/licensedcode/data/rules/ace-tao_5.RULE | 2 +- src/licensedcode/data/rules/epl-2.0_69.RULE | 11 +++++++ src/licensedcode/data/rules/epl-2.0_70.RULE | 19 ++++++++++++ .../rules/unknown-license-reference_388.RULE | 9 ++++++ .../rules/unknown-license-reference_389.RULE | 11 +++++++ .../rules/unknown-license-reference_390.RULE | 12 ++++++++ src/licensedcode/detection.py | 30 ++++++++++++++----- 7 files changed, 85 insertions(+), 9 deletions(-) create mode 100644 src/licensedcode/data/rules/epl-2.0_69.RULE create mode 100644 src/licensedcode/data/rules/epl-2.0_70.RULE create mode 100644 src/licensedcode/data/rules/unknown-license-reference_388.RULE create mode 100644 src/licensedcode/data/rules/unknown-license-reference_389.RULE create mode 100644 src/licensedcode/data/rules/unknown-license-reference_390.RULE diff --git a/src/licensedcode/data/rules/ace-tao_5.RULE b/src/licensedcode/data/rules/ace-tao_5.RULE index f74b9a2c901..2bc0cc528d1 100644 --- a/src/licensedcode/data/rules/ace-tao_5.RULE +++ b/src/licensedcode/data/rules/ace-tao_5.RULE @@ -1,6 +1,6 @@ --- license_expression: ace-tao -is_license_reference: yes +is_license_clue: yes is_continuous: yes relevance: 100 minimum_coverage: 100 diff --git a/src/licensedcode/data/rules/epl-2.0_69.RULE b/src/licensedcode/data/rules/epl-2.0_69.RULE new file mode 100644 index 00000000000..2bf522ab037 --- /dev/null +++ b/src/licensedcode/data/rules/epl-2.0_69.RULE @@ -0,0 +1,11 @@ +--- +license_expression: epl-2.0 +is_license_notice: yes +referenced_filenames: + - https://www.eclipse.org/legal/epl-2.0/. +ignorable_urls: + - https://www.eclipse.org/legal/epl-2.0 +--- + +is provided to you under the terms and conditions of the {{Eclipse Public License Version 2.0 ("EPL")}}. +A copy of the {{EPL}} is available at {{https://www.eclipse.org/legal/epl-2.0/}}. \ No newline at end of file diff --git a/src/licensedcode/data/rules/epl-2.0_70.RULE b/src/licensedcode/data/rules/epl-2.0_70.RULE new file mode 100644 index 00000000000..ea0429e348c --- /dev/null +++ b/src/licensedcode/data/rules/epl-2.0_70.RULE @@ -0,0 +1,19 @@ +--- +license_expression: epl-2.0 +is_license_notice: yes +ignorable_copyrights: + - Copyright Mountainminds GmbH & Co. KG and Contributors +ignorable_holders: + - Mountainminds GmbH & Co. KG and Contributors +ignorable_urls: + - https://www.eclipse.org/legal/epl-2.0 + - https://www.eclipse.org/legal/epl-2.0/ +--- + +Copyright Mountainminds GmbH & Co. KG and Contributors + +The JaCoCo Java Code Coverage Library and all included documentation is made +available by Mountainminds GmbH & Co. KG, Munich. Except indicated below, the +Content is provided to you under the terms and conditions of the {{Eclipse Public +License Version 2.0 ("EPL")}}. A copy of the {{EPL}} is available at +[https://www.eclipse.org/legal/epl-2.0/](https://www.eclipse.org/legal/epl-2.0/). \ No newline at end of file diff --git a/src/licensedcode/data/rules/unknown-license-reference_388.RULE b/src/licensedcode/data/rules/unknown-license-reference_388.RULE new file mode 100644 index 00000000000..16a49054a89 --- /dev/null +++ b/src/licensedcode/data/rules/unknown-license-reference_388.RULE @@ -0,0 +1,9 @@ +--- +license_expression: unknown-license-reference +is_license_reference: yes +referenced_filenames: + - doc/license.html +--- + +Please visit doc/license.html for the complete license information +including third party licenses and trademarks. \ No newline at end of file diff --git a/src/licensedcode/data/rules/unknown-license-reference_389.RULE b/src/licensedcode/data/rules/unknown-license-reference_389.RULE new file mode 100644 index 00000000000..9f259206c03 --- /dev/null +++ b/src/licensedcode/data/rules/unknown-license-reference_389.RULE @@ -0,0 +1,11 @@ +--- +license_expression: unknown-license-reference +is_license_reference: yes +referenced_filenames: + - org.jacoco.doc/docroot/doc/license.html +ignorable_urls: + - http://www.jacoco.org/jacoco/trunk/doc/license.html +--- + +Please visit http://www.jacoco.org/jacoco/trunk/doc/license.html for the +complete license information including third party licenses and trademarks. \ No newline at end of file diff --git a/src/licensedcode/data/rules/unknown-license-reference_390.RULE b/src/licensedcode/data/rules/unknown-license-reference_390.RULE new file mode 100644 index 00000000000..5f735c73e2b --- /dev/null +++ b/src/licensedcode/data/rules/unknown-license-reference_390.RULE @@ -0,0 +1,12 @@ +--- +license_expression: unknown-license-reference +is_license_reference: yes +referenced_filenames: + - org.jacoco.doc/docroot/doc/license.html +ignorable_urls: + - http://www.jacoco.org/jacoco/trunk/doc/license.html +--- + +Please visit +[http://www.jacoco.org/jacoco/trunk/doc/license.html](http://www.jacoco.org/jacoco/trunk/doc/license.html) +for the complete license information including third party licenses and trademarks. \ No newline at end of file diff --git a/src/licensedcode/detection.py b/src/licensedcode/detection.py index 0055c345637..d7437a9f1e9 100644 --- a/src/licensedcode/detection.py +++ b/src/licensedcode/detection.py @@ -218,6 +218,9 @@ def from_matches( If `post_scan` is True, this function is called outside the main license detection step. """ + if TRACE: + logger_debug(f"LicenseDetection: from_matches: matches: {matches}") + if not matches: return @@ -1620,6 +1623,14 @@ def group_matches(license_matches, lines_threshold=LINES_THRESHOLD): yield group_of_license_matches group_of_license_matches = [license_match] + # If the current match is a license clue, we send this as a + # seperate group + elif license_match.rule.is_license_clue: + yield group_of_license_matches + yield [license_match] + group_of_license_matches = [] + continue + # If none of previous or current match has license intro then we look at line numbers # If line number difference is within threshold, we keep the current match in the group elif is_in_group_by_threshold: @@ -1631,7 +1642,9 @@ def group_matches(license_matches, lines_threshold=LINES_THRESHOLD): yield group_of_license_matches group_of_license_matches = [license_match] - yield group_of_license_matches + # If not an empty group, this is the last group + if group_of_license_matches: + yield group_of_license_matches def get_referenced_filenames(license_matches): @@ -1705,16 +1718,17 @@ def process_detections(detections, licensing=Licensing()): for detection in detections: if detection.license_expression == None: if has_correct_license_clue_matches(detection.matches): + yield detection continue license_expression = str(combine_expressions( - expressions=[ - match.rule.license_expression - for match in detection.matches - ], - unique=True, - licensing=licensing, - )) + expressions=[ + match.rule.license_expression + for match in detection.matches + ], + unique=True, + licensing=licensing, + )) license_keys = licensing.license_keys(expression=license_expression) if all( From 0dfb0cab22819d7a5617dcf4d2d74e92e9589cf2 Mon Sep 17 00:00:00 2001 From: Ayan Sinha Mahapatra Date: Tue, 19 Sep 2023 19:51:42 +0530 Subject: [PATCH 08/13] Add updated test expectations Signed-off-by: Ayan Sinha Mahapatra --- .../scan/ffmpeg-license.expected.json | 120 ++++----- .../reference-to-package/samba.expected.json | 230 +++++------------- ...ackson-dataformat-xml-2.13.5-expected.json | 17 +- 3 files changed, 127 insertions(+), 240 deletions(-) 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 0c30776d383..12b8911b71c 100644 --- a/tests/licensedcode/data/plugin_license/scan/ffmpeg-license.expected.json +++ b/tests/licensedcode/data/plugin_license/scan/ffmpeg-license.expected.json @@ -21,12 +21,6 @@ "detection_count": 1, "detection_log": [] }, - { - "identifier": "gpl_2_0_and_lgpl_2_0_plus_and_proprietary_license-45a8a75a-5b7e-5dbe-21f8-412756fac148", - "license_expression": "gpl-2.0 AND lgpl-2.0-plus AND proprietary-license", - "detection_count": 1, - "detection_log": [] - }, { "identifier": "ijg_and_mit-e50613dc-8a09-65cc-c498-5d9527795382", "license_expression": "ijg AND mit", @@ -52,8 +46,8 @@ { "path": "ffmpeg-LICENSE.md", "type": "file", - "detected_license_expression": "(lgpl-2.1-plus AND other-permissive AND gpl-2.0-plus) AND gpl-1.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-2.0 AND apache-2.0 AND lgpl-3.0-plus) AND (gpl-2.0 AND lgpl-2.0-plus AND proprietary-license)", - "detected_license_expression_spdx": "(LGPL-2.1-or-later AND LicenseRef-scancode-other-permissive AND GPL-2.0-or-later) AND GPL-1.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-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 LicenseRef-scancode-proprietary-license)", + "detected_license_expression": "(lgpl-2.1-plus AND other-permissive AND gpl-2.0-plus) AND gpl-1.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-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 GPL-1.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-2.0-only AND Apache-2.0 AND LGPL-3.0-or-later)", "license_detections": [ { "license_expression": "lgpl-2.1-plus AND other-permissive AND gpl-2.0-plus", @@ -257,68 +251,62 @@ ], "detection_log": [], "identifier": "gpl_2_0_and_apache_2_0_and_lgpl_3_0_plus-c2393e5a-e531-304f-58a9-a6431d46d214" + } + ], + "license_clues": [ + { + "score": 100.0, + "start_line": 100, + "end_line": 100, + "matched_length": 1, + "match_coverage": 100.0, + "matcher": "2-aho", + "license_expression": "gpl-2.0", + "rule_identifier": "gpl-2.0_bare_single_word.RULE", + "rule_relevance": 100, + "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0_bare_single_word.RULE", + "matched_text": "GPLv2" }, { - "license_expression": "gpl-2.0 AND lgpl-2.0-plus AND proprietary-license", - "matches": [ - { - "score": 100.0, - "start_line": 100, - "end_line": 100, - "matched_length": 1, - "match_coverage": 100.0, - "matcher": "2-aho", - "license_expression": "gpl-2.0", - "rule_identifier": "gpl-2.0_bare_single_word.RULE", - "rule_relevance": 100, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0_bare_single_word.RULE", - "matched_text": "GPLv2" - }, - { - "score": 75.0, - "start_line": 101, - "end_line": 101, - "matched_length": 1, - "match_coverage": 100.0, - "matcher": "2-aho", - "license_expression": "lgpl-2.0-plus", - "rule_identifier": "lgpl_bare_single_word.RULE", - "rule_relevance": 75, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE", - "matched_text": "LGPL." - }, - { - "score": 100.0, - "start_line": 102, - "end_line": 102, - "matched_length": 2, - "match_coverage": 100.0, - "matcher": "2-aho", - "license_expression": "proprietary-license", - "rule_identifier": "proprietary-license_490.RULE", - "rule_relevance": 100, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/proprietary-license_490.RULE", - "matched_text": "enable-nonfree" - }, - { - "score": 75.0, - "start_line": 104, - "end_line": 104, - "matched_length": 1, - "match_coverage": 100.0, - "matcher": "2-aho", - "license_expression": "lgpl-2.0-plus", - "rule_identifier": "lgpl_bare_single_word.RULE", - "rule_relevance": 75, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE", - "matched_text": "LGPL" - } - ], - "detection_log": [], - "identifier": "gpl_2_0_and_lgpl_2_0_plus_and_proprietary_license-45a8a75a-5b7e-5dbe-21f8-412756fac148" + "score": 75.0, + "start_line": 101, + "end_line": 101, + "matched_length": 1, + "match_coverage": 100.0, + "matcher": "2-aho", + "license_expression": "lgpl-2.0-plus", + "rule_identifier": "lgpl_bare_single_word.RULE", + "rule_relevance": 75, + "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE", + "matched_text": "LGPL." + }, + { + "score": 100.0, + "start_line": 102, + "end_line": 102, + "matched_length": 2, + "match_coverage": 100.0, + "matcher": "2-aho", + "license_expression": "proprietary-license", + "rule_identifier": "proprietary-license_490.RULE", + "rule_relevance": 100, + "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/proprietary-license_490.RULE", + "matched_text": "enable-nonfree" + }, + { + "score": 75.0, + "start_line": 104, + "end_line": 104, + "matched_length": 1, + "match_coverage": 100.0, + "matcher": "2-aho", + "license_expression": "lgpl-2.0-plus", + "rule_identifier": "lgpl_bare_single_word.RULE", + "rule_relevance": 75, + "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE", + "matched_text": "LGPL" } ], - "license_clues": [], "percentage_of_license_text": 34.96, "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 40dc5e8851b..2deb5912e78 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 @@ -24,8 +24,8 @@ "vcs_url": null, "copyright": null, "holder": null, - "declared_license_expression": "gpl-3.0 AND (gpl-2.0-plus AND free-unknown 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 AND gpl-1.0-plus", - "declared_license_expression_spdx": "GPL-3.0-only AND (GPL-2.0-or-later AND LicenseRef-scancode-free-unknown 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 AND GPL-1.0-or-later", + "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", "license_detections": [ { "license_expression": "gpl-3.0", @@ -48,34 +48,8 @@ "identifier": "gpl_3_0-ab79e5a8-e510-cbf4-5302-ef968484bcdf" }, { - "license_expression": "gpl-2.0-plus AND free-unknown AND gpl-1.0-plus", + "license_expression": "gpl-1.0-plus", "matches": [ - { - "score": 20.0, - "start_line": 57, - "end_line": 57, - "matched_length": 6, - "match_coverage": 20.0, - "matcher": "3-seq", - "license_expression": "gpl-2.0-plus", - "rule_identifier": "gpl-2.0-plus_627.RULE", - "rule_relevance": 100, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0-plus_627.RULE", - "matched_text": "of the GNU General Public License;" - }, - { - "score": 50.0, - "start_line": 60, - "end_line": 61, - "matched_length": 3, - "match_coverage": 100.0, - "matcher": "2-aho", - "license_expression": "free-unknown", - "rule_identifier": "free-unknown_88.RULE", - "rule_relevance": 50, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/free-unknown_88.RULE", - "matched_text": "open source\n license" - }, { "score": 100.0, "start_line": 63, @@ -90,10 +64,8 @@ "matched_text": "the GNU General Public License," } ], - "detection_log": [ - "unknown-match" - ], - "identifier": "gpl_2_0_plus_and_free_unknown_and_gpl_1_0_plus-4f5c7c7f-d0ee-f1dc-ad8b-236131aab65b" + "detection_log": [], + "identifier": "gpl_1_0_plus-4347f44c-ada6-f802-86dd-14a96429fac1" }, { "license_expression": "gpl-1.0-plus AND lgpl-3.0-plus AND gpl-3.0 AND lgpl-3.0", @@ -282,6 +254,12 @@ "detection_count": 3, "detection_log": [] }, + { + "identifier": "gpl_1_0_plus-4347f44c-ada6-f802-86dd-14a96429fac1", + "license_expression": "gpl-1.0-plus", + "detection_count": 3, + "detection_log": [] + }, { "identifier": "gpl_1_0_plus_and_lgpl_3_0_plus_and_gpl_3_0_and_lgpl_3_0-3bd18dcd-0a4c-d46f-f42e-3d2919be9be0", "license_expression": "gpl-1.0-plus AND lgpl-3.0-plus AND gpl-3.0 AND lgpl-3.0", @@ -294,14 +272,6 @@ "detection_count": 3, "detection_log": [] }, - { - "identifier": "gpl_2_0_plus_and_free_unknown_and_gpl_1_0_plus-4f5c7c7f-d0ee-f1dc-ad8b-236131aab65b", - "license_expression": "gpl-2.0-plus AND free-unknown AND gpl-1.0-plus", - "detection_count": 3, - "detection_log": [ - "unknown-match" - ] - }, { "identifier": "gpl_3_0-ab79e5a8-e510-cbf4-5302-ef968484bcdf", "license_expression": "gpl-3.0", @@ -317,8 +287,8 @@ ] }, { - "identifier": "gpl_3_0_and_gpl_2_0_plus_and_free_unknown_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-7f4f0ff2-4f58-b290-f00d-9b2ef6eafd63", - "license_expression": "gpl-3.0 AND gpl-2.0-plus AND free-unknown 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", + "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", "detection_count": 1, "detection_log": [ "unknown-reference-to-local-file" @@ -416,38 +386,12 @@ "for_packages": [ "pkg:autotools/samba?uuid=fixed-uid-done-for-testing-5642512d1758" ], - "detected_license_expression": "(gpl-2.0-plus AND free-unknown 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-2.0-or-later AND LicenseRef-scancode-free-unknown 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)", + "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)", "license_detections": [ { - "license_expression": "gpl-2.0-plus AND free-unknown AND gpl-1.0-plus", + "license_expression": "gpl-1.0-plus", "matches": [ - { - "score": 20.0, - "start_line": 57, - "end_line": 57, - "matched_length": 6, - "match_coverage": 20.0, - "matcher": "3-seq", - "license_expression": "gpl-2.0-plus", - "rule_identifier": "gpl-2.0-plus_627.RULE", - "rule_relevance": 100, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0-plus_627.RULE", - "matched_text": "of the GNU General Public License;" - }, - { - "score": 50.0, - "start_line": 60, - "end_line": 61, - "matched_length": 3, - "match_coverage": 100.0, - "matcher": "2-aho", - "license_expression": "free-unknown", - "rule_identifier": "free-unknown_88.RULE", - "rule_relevance": 50, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/free-unknown_88.RULE", - "matched_text": "open source\n license" - }, { "score": 100.0, "start_line": 63, @@ -462,10 +406,8 @@ "matched_text": "the GNU General Public License," } ], - "detection_log": [ - "unknown-match" - ], - "identifier": "gpl_2_0_plus_and_free_unknown_and_gpl_1_0_plus-4f5c7c7f-d0ee-f1dc-ad8b-236131aab65b" + "detection_log": [], + "identifier": "gpl_1_0_plus-4347f44c-ada6-f802-86dd-14a96429fac1" }, { "license_expression": "gpl-1.0-plus AND lgpl-3.0-plus AND gpl-3.0 AND lgpl-3.0", @@ -625,6 +567,32 @@ "rule_relevance": 100, "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0_bare_single_word.RULE", "matched_text": "GPLv2." + }, + { + "score": 20.0, + "start_line": 57, + "end_line": 57, + "matched_length": 6, + "match_coverage": 20.0, + "matcher": "3-seq", + "license_expression": "gpl-2.0-plus", + "rule_identifier": "gpl-2.0-plus_627.RULE", + "rule_relevance": 100, + "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0-plus_627.RULE", + "matched_text": "of the GNU General Public License;" + }, + { + "score": 50.0, + "start_line": 60, + "end_line": 61, + "matched_length": 3, + "match_coverage": 100.0, + "matcher": "2-aho", + "license_expression": "free-unknown", + "rule_identifier": "free-unknown_88.RULE", + "rule_relevance": 50, + "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/free-unknown_88.RULE", + "matched_text": "open source\n license" } ], "percentage_of_license_text": 9.84, @@ -728,8 +696,8 @@ "vcs_url": null, "copyright": null, "holder": null, - "declared_license_expression": "gpl-3.0 AND (gpl-2.0-plus AND free-unknown 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-2.0-or-later AND LicenseRef-scancode-free-unknown 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-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", "license_detections": [ { "license_expression": "gpl-3.0", @@ -752,34 +720,8 @@ "identifier": "gpl_3_0-ab79e5a8-e510-cbf4-5302-ef968484bcdf" }, { - "license_expression": "gpl-2.0-plus AND free-unknown AND gpl-1.0-plus", + "license_expression": "gpl-1.0-plus", "matches": [ - { - "score": 20.0, - "start_line": 57, - "end_line": 57, - "matched_length": 6, - "match_coverage": 20.0, - "matcher": "3-seq", - "license_expression": "gpl-2.0-plus", - "rule_identifier": "gpl-2.0-plus_627.RULE", - "rule_relevance": 100, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0-plus_627.RULE", - "matched_text": "of the GNU General Public License;" - }, - { - "score": 50.0, - "start_line": 60, - "end_line": 61, - "matched_length": 3, - "match_coverage": 100.0, - "matcher": "2-aho", - "license_expression": "free-unknown", - "rule_identifier": "free-unknown_88.RULE", - "rule_relevance": 50, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/free-unknown_88.RULE", - "matched_text": "open source\n license" - }, { "score": 100.0, "start_line": 63, @@ -794,10 +736,8 @@ "matched_text": "the GNU General Public License," } ], - "detection_log": [ - "unknown-match" - ], - "identifier": "gpl_2_0_plus_and_free_unknown_and_gpl_1_0_plus-4f5c7c7f-d0ee-f1dc-ad8b-236131aab65b" + "detection_log": [], + "identifier": "gpl_1_0_plus-4347f44c-ada6-f802-86dd-14a96429fac1" }, { "license_expression": "gpl-1.0-plus AND lgpl-3.0-plus AND gpl-3.0 AND lgpl-3.0", @@ -1041,8 +981,8 @@ "vcs_url": null, "copyright": null, "holder": null, - "declared_license_expression": "gpl-3.0 AND (gpl-2.0-plus AND free-unknown 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-2.0-or-later AND LicenseRef-scancode-free-unknown 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-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", "license_detections": [ { "license_expression": "gpl-3.0", @@ -1065,34 +1005,8 @@ "identifier": "gpl_3_0-ab79e5a8-e510-cbf4-5302-ef968484bcdf" }, { - "license_expression": "gpl-2.0-plus AND free-unknown AND gpl-1.0-plus", + "license_expression": "gpl-1.0-plus", "matches": [ - { - "score": 20.0, - "start_line": 57, - "end_line": 57, - "matched_length": 6, - "match_coverage": 20.0, - "matcher": "3-seq", - "license_expression": "gpl-2.0-plus", - "rule_identifier": "gpl-2.0-plus_627.RULE", - "rule_relevance": 100, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0-plus_627.RULE", - "matched_text": "of the GNU General Public License;" - }, - { - "score": 50.0, - "start_line": 60, - "end_line": 61, - "matched_length": 3, - "match_coverage": 100.0, - "matcher": "2-aho", - "license_expression": "free-unknown", - "rule_identifier": "free-unknown_88.RULE", - "rule_relevance": 50, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/free-unknown_88.RULE", - "matched_text": "open source\n license" - }, { "score": 100.0, "start_line": 63, @@ -1107,10 +1021,8 @@ "matched_text": "the GNU General Public License," } ], - "detection_log": [ - "unknown-match" - ], - "identifier": "gpl_2_0_plus_and_free_unknown_and_gpl_1_0_plus-4f5c7c7f-d0ee-f1dc-ad8b-236131aab65b" + "detection_log": [], + "identifier": "gpl_1_0_plus-4347f44c-ada6-f802-86dd-14a96429fac1" }, { "license_expression": "gpl-1.0-plus AND lgpl-3.0-plus AND gpl-3.0 AND lgpl-3.0", @@ -1361,11 +1273,11 @@ "for_packages": [ "pkg:autotools/samba?uuid=fixed-uid-done-for-testing-5642512d1758" ], - "detected_license_expression": "gpl-3.0 AND gpl-2.0-plus AND free-unknown 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-2.0-or-later AND LicenseRef-scancode-free-unknown 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 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", "license_detections": [ { - "license_expression": "gpl-3.0 AND gpl-2.0-plus AND free-unknown 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": "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", "matches": [ { "score": 100.0, @@ -1393,32 +1305,6 @@ "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-3.0_204.RULE", "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." }, - { - "score": 20.0, - "start_line": 57, - "end_line": 57, - "matched_length": 6, - "match_coverage": 20.0, - "matcher": "3-seq", - "license_expression": "gpl-2.0-plus", - "rule_identifier": "gpl-2.0-plus_627.RULE", - "rule_relevance": 100, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0-plus_627.RULE", - "matched_text": "of the GNU General Public License;" - }, - { - "score": 50.0, - "start_line": 60, - "end_line": 61, - "matched_length": 3, - "match_coverage": 100.0, - "matcher": "2-aho", - "license_expression": "free-unknown", - "rule_identifier": "free-unknown_88.RULE", - "rule_relevance": 50, - "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/free-unknown_88.RULE", - "matched_text": "open source\n license" - }, { "score": 100.0, "start_line": 63, @@ -1579,7 +1465,7 @@ "detection_log": [ "unknown-reference-to-local-file" ], - "identifier": "gpl_3_0_and_gpl_2_0_plus_and_free_unknown_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-7f4f0ff2-4f58-b290-f00d-9b2ef6eafd63" + "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_clues": [], diff --git a/tests/packagedcode/data/maven_misc/assemble/jackson-dataformat-xml-2.13.5-expected.json b/tests/packagedcode/data/maven_misc/assemble/jackson-dataformat-xml-2.13.5-expected.json index ee211af3f63..b6fc4af7ec2 100644 --- a/tests/packagedcode/data/maven_misc/assemble/jackson-dataformat-xml-2.13.5-expected.json +++ b/tests/packagedcode/data/maven_misc/assemble/jackson-dataformat-xml-2.13.5-expected.json @@ -345,8 +345,21 @@ "identifier": "apache_2_0-31344ceb-eee7-3f95-45bb-cc86209f76f8" } ], - "license_clues": [], - "percentage_of_license_text": 21.85, + "license_clues": [ + { + "score": 100.0, + "start_line": 3, + "end_line": 3, + "matched_length": 3, + "match_coverage": 100.0, + "matcher": "2-aho", + "license_expression": "free-unknown", + "rule_identifier": "free-unknown_85.RULE", + "rule_relevance": 100, + "rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/free-unknown_85.RULE" + } + ], + "percentage_of_license_text": 24.37, "scan_errors": [] } ] From 87b0b8e82309d9ff96d607542c0c70cd37bc3e36 Mon Sep 17 00:00:00 2001 From: Ayan Sinha Mahapatra Date: Tue, 19 Sep 2023 19:59:21 +0530 Subject: [PATCH 09/13] Add free-surfer license Signed-off-by: Ayan Sinha Mahapatra --- .../data/licenses/free-surfer-1.0.LICENSE | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 src/licensedcode/data/licenses/free-surfer-1.0.LICENSE diff --git a/src/licensedcode/data/licenses/free-surfer-1.0.LICENSE b/src/licensedcode/data/licenses/free-surfer-1.0.LICENSE new file mode 100644 index 00000000000..fe890e087db --- /dev/null +++ b/src/licensedcode/data/licenses/free-surfer-1.0.LICENSE @@ -0,0 +1,59 @@ +--- +key: free-surfer-1.0 +short_name: FreeSurfer Software License Agreement 1.0 +name: FreeSurfer Software License Agreement 1.0 +category: Permissive +owner: MGH +homepage_url: https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferSoftwareLicense +spdx_license_key: LicenseRef-scancode-free-surfer-1.0 +ignorable_authors: + - The General Hospital Corporation, Boston MA +--- + +FreeSurfer Software License Agreement + +Version 1.0, February 2011 + +This Agreement covers contributions to and downloads from the FreeSurfer project ("FreeSurfer") maintained by The General Hospital Corporation, Boston MA, USA ("MGH"). Part A of this Agreement applies to contributions of software and/or data to FreeSurfer (including making revisions of or additions to code and/or data already in FreeSurfer). Part B of this Agreement applies to downloads of software and/or data from FreeSurfer. Part C of this Agreement applies to all transactions with FreeSurfer. If you distribute Software (as defined below) downloaded from FreeSurfer, all of the paragraphs of Part B of this Agreement must be included with and apply to such Software. + +Your contribution of software and/or data to FreeSurfer (including prior to the date of the first publication of this Agreement, each a "Contribution") and/or downloading, copying, modifying, displaying, distributing or use of any software and/or data from FreeSurfer (collectively, the "Software") constitutes acceptance of all of the terms and conditions of this Agreement. If you do not agree to such terms and conditions, you have no right to contribute your Contribution, or to download, copy, modify, display, distribute or use the Software. + +PART A. CONTRIBUTION AGREEMENT + +License to MGH with Right to Sublicense ("Contribution Agreement") + +As used in this Contribution Agreement, "you" means the individual contributing the Contribution to FreeSurfer and the institution or entity which employs or is otherwise affiliated with such individual in connection with such Contribution. + +This Contribution Agreement applies to all Contributions made to FreeSurfer, including without limitation Contributions made prior to the date of first publication of this Agreement. If at any time you make a Contribution to FreeSurfer, you represent that (i) you are legally authorized and entitled to make such Contribution and to grant all licenses granted in this Contribution Agreement with respect to such Contribution; (ii) if your Contribution includes any patient data, all such data is de-identified in accordance with U.S. confidentiality and security laws and requirements, including but not limited to the Health Insurance Portability and Accountability Act (HIPAA) and its regulations, and your disclosure of such data for the purposes contemplated by this Agreement is properly authorized and in compliance with all applicable laws and regulations; and (iii) you have preserved in the Contribution all applicable attributions, copyright notices and licenses for any third party software or data included in the Contribution. + +Except for the licenses granted in this Agreement, you reserve all right, title and interest in your Contribution. + +You hereby grant to MGH, with the right to sublicense, a perpetual, worldwide, non-exclusive, no charge, royalty-free, irrevocable license to use, reproduce, make derivative works of, display and distribute the Contribution. If your Contribution is protected by patent, you hereby grant to MGH, with the right to sublicense, a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable license under your interest in patent rights covering the Contribution, to make, have made, use, sell and otherwise transfer your Contribution, alone or in combination with any other code. + +You acknowledge and agree that MGH may incorporate your Contribution into FreeSurfer and may make FreeSurfer available to members of the public on an open source basis under terms substantially in accordance with the Software License set forth in Part B of this Agreement. You further acknowledge and agree that MGH shall have no liability arising in connection with claims resulting from your breach of any of the terms of this Agreement. + +YOU WARRANT THAT TO THE BEST OF YOUR KNOWLEDGE YOUR CONTRIBUTION DOES NOT CONTAIN ANY CODE THAT REQURES OR PRESCRIBES AN "OPEN SOURCE LICENSE" FOR DERIVATIVE WORKS (by way of non-limiting example, the GNU General Public License or other so-called "reciprocal" license that requires any derived work to be licensed under the GNU General Public License or other "open source license"). + +PART B. DOWNLOADING AGREEMENT + +License from MGH with Right to Sublicense ("Software License") + +As used in this Software License, "you" means the individual downloading and/or using, reproducing, modifying, displaying and/or distributing the Software and the institution or entity which employs or is otherwise affiliated with such individual in connection therewith. The General Hospital Corporation, Boston MA, USA ("MGH") hereby grants you, with right to sublicense, with respect to MGH's rights in the software, and data, if any, which is the subject of this Software License (collectively, the "Software"), a royalty-free, non-exclusive license to use, reproduce, make derivative works of, display and distribute the Software, provided that: (a) you accept and adhere to all of the terms and conditions of this Software License; (b) in connection with any copy of or sublicense of all or any portion of the Software, all of the terms and conditions in this Software License shall appear in and shall apply to such copy and such sublicense, including without limitation all source and executable forms and on any user documentation, prefaced with the following words: "All or portions of this licensed product (such portions are the "Software") have been obtained under license from The General Hospital Corporation and are subject to the following terms and conditions:" (c) you preserve and maintain all applicable attributions, copyright notices and licenses included in or applicable to the Software; (d) modified versions of the Software must be clearly identified and marked as such, and must not be misrepresented as being the original Software; and (e) you consider making, but are under no obligation to make, the source code of any of your modifications to the Software freely available to others on an open source basis. + +The license granted in this Software License includes without limitation the right to (i) incorporate the Software into proprietary programs (subject to any restrictions applicable to such programs), (ii) add your own copyright statement to your modifications of the Software, and (iii) provide additional or different license terms and conditions in your sublicenses of modifications of the Software; provided that in each case your use, reproduction or distribution of such modifications otherwise complies with the conditions stated in this Software License. + +This Software License does not grant any rights with respect to third party software, except those rights that MGH has been authorized by a third party to grant to you, and accordingly you are solely responsible for (i) obtaining any permissions from third parties that you need to use, reproduce, make derivative works of, display and distribute the Software, and (ii) informing your sublicensees, including without limitation your end-users, of their obligations to secure any such required permissions. + +The Software has been designed for research purposes only and has not been reviewed or approved by the Food and Drug Administration or by any other agency. YOU ACKNOWLEDGE AND AGREE THAT CLINICAL APPLICATIONS ARE NEITHER RECOMMENDED NOR ADVISED. Any commercialization of the Software is at the sole risk of the party or parties engaged in such commercialization. You further agree to use, reproduce, make derivative works of, display and distribute the Software in compliance with all applicable governmental laws, regulations and orders, including without limitation those relating to export and import control. + +The Software is provided "AS IS" and neither MGH nor any contributor to the software (each a "Contributor") shall have any obligation to provide maintenance, support, updates, enhancements or modifications thereto. MGH AND ALL CONTRIBUTORS SPECIFICALLY DISCLAIM ALL EXPRESS AND IMPLIED WARRANTIES OF ANY KIND INCLUDING, BUT NOT LIMITED TO, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL MGH OR ANY CONTRIBUTOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY ARISING IN ANY WAY RELATED TO THE SOFTWARE, EVEN IF MGH OR ANY CONTRIBUTOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. TO THE MAXIMUM EXTENT NOT PROHIBITED BY LAW OR REGULATION, YOU FURTHER ASSUME ALL LIABILITY FOR YOUR USE, REPRODUCTION, MAKING OF DERIVATIVE WORKS, DISPLAY, LICENSE OR DISTRIBUTION OF THE SOFTWARE AND AGREE TO INDEMNIFY AND HOLD HARMLESS MGH AND ALL CONTRIBUTORS FROM AND AGAINST ANY AND ALL CLAIMS, SUITS, ACTIONS, DEMANDS AND JUDGMENTS ARISING THEREFROM. + +None of the names, logos or trademarks of MGH or any of MGH's affiliates or any of the Contributors, or any funding agency, may be used to endorse or promote products produced in whole or in part by operation of the Software or derived from or based on the Software without specific prior written permission from the applicable party. + +Any use, reproduction or distribution of the Software which is not in accordance with this Software License shall automatically revoke all rights granted to you under this Software License and render Paragraphs 1 and 2 of this Software License null and void. + +This Software License does not grant any rights in or to any intellectual property owned by MGH or any Contributor except those rights expressly granted hereunder. + +PART C. MISCELLANEOUS + +This Agreement shall be governed by and construed in accordance with the laws of The Commonwealth of Massachusetts without regard to principles of conflicts of law. This Agreement shall supercede and replace any license terms that you may have agreed to previously with respect to FreeSurfer. \ No newline at end of file From 2fcb719203cf9083c04f252b883880479f661e4d Mon Sep 17 00:00:00 2001 From: Ayan Sinha Mahapatra Date: Wed, 20 Sep 2023 14:11:00 +0530 Subject: [PATCH 10/13] Remove unnecessary code Signed-off-by: Ayan Sinha Mahapatra --- src/licensedcode/detection.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/licensedcode/detection.py b/src/licensedcode/detection.py index d7437a9f1e9..a617735ae53 100644 --- a/src/licensedcode/detection.py +++ b/src/licensedcode/detection.py @@ -1615,7 +1615,6 @@ def group_matches(license_matches, lines_threshold=LINES_THRESHOLD): # This is regardless of line number difference being more than threshold if previous_match.rule.is_license_intro: group_of_license_matches.append(license_match) - continue # If the current match is an intro, we should create a new group # This is regardless of line number difference being less than threshold @@ -1629,13 +1628,11 @@ def group_matches(license_matches, lines_threshold=LINES_THRESHOLD): yield group_of_license_matches yield [license_match] group_of_license_matches = [] - continue # If none of previous or current match has license intro then we look at line numbers # If line number difference is within threshold, we keep the current match in the group elif is_in_group_by_threshold: group_of_license_matches.append(license_match) - continue # If line number difference is outside threshold, we make a new group else: From d8b0dbe5340cbaf24c96c0f1fae6024d3a915576 Mon Sep 17 00:00:00 2001 From: Ayan Sinha Mahapatra Date: Wed, 20 Sep 2023 16:01:43 +0530 Subject: [PATCH 11/13] Add false positve license rules Signed-off-by: Ayan Sinha Mahapatra --- src/licensedcode/data/rules/false-positive_696.RULE | 7 +++++++ src/licensedcode/data/rules/false-positive_697.RULE | 6 ++++++ src/licensedcode/data/rules/false-positive_698.RULE | 6 ++++++ src/licensedcode/data/rules/false-positive_699.RULE | 7 +++++++ src/licensedcode/data/rules/false-positive_700.RULE | 6 ++++++ src/licensedcode/data/rules/false-positive_701.RULE | 7 +++++++ src/licensedcode/data/rules/false-positive_702.RULE | 6 ++++++ src/licensedcode/data/rules/false-positive_703.RULE | 7 +++++++ 8 files changed, 52 insertions(+) create mode 100644 src/licensedcode/data/rules/false-positive_696.RULE create mode 100644 src/licensedcode/data/rules/false-positive_697.RULE create mode 100644 src/licensedcode/data/rules/false-positive_698.RULE create mode 100644 src/licensedcode/data/rules/false-positive_699.RULE create mode 100644 src/licensedcode/data/rules/false-positive_700.RULE create mode 100644 src/licensedcode/data/rules/false-positive_701.RULE create mode 100644 src/licensedcode/data/rules/false-positive_702.RULE create mode 100644 src/licensedcode/data/rules/false-positive_703.RULE diff --git a/src/licensedcode/data/rules/false-positive_696.RULE b/src/licensedcode/data/rules/false-positive_696.RULE new file mode 100644 index 00000000000..52cb3475e90 --- /dev/null +++ b/src/licensedcode/data/rules/false-positive_696.RULE @@ -0,0 +1,7 @@ +--- +is_false_positive: yes +notes: seen in liferay-portal +--- + +scope permission is granted to resources +that the role already had \ No newline at end of file diff --git a/src/licensedcode/data/rules/false-positive_697.RULE b/src/licensedcode/data/rules/false-positive_697.RULE new file mode 100644 index 00000000000..f398baeefeb --- /dev/null +++ b/src/licensedcode/data/rules/false-positive_697.RULE @@ -0,0 +1,6 @@ +--- +is_false_positive: yes +notes: seen in liferay-portal +--- + +* http://<domain-name>/licenses/<license-name>-<version>.<extension> \ No newline at end of file diff --git a/src/licensedcode/data/rules/false-positive_698.RULE b/src/licensedcode/data/rules/false-positive_698.RULE new file mode 100644 index 00000000000..bd3e631f93b --- /dev/null +++ b/src/licensedcode/data/rules/false-positive_698.RULE @@ -0,0 +1,6 @@ +--- +is_false_positive: yes +notes: seen in liferay-portal +--- + +String sep = "Licensed under "; \ No newline at end of file diff --git a/src/licensedcode/data/rules/false-positive_699.RULE b/src/licensedcode/data/rules/false-positive_699.RULE new file mode 100644 index 00000000000..43caeb6d02a --- /dev/null +++ b/src/licensedcode/data/rules/false-positive_699.RULE @@ -0,0 +1,7 @@ +--- +is_false_positive: yes +notes: seen in liferay-portal +--- + +>License has not reached start date yet. Skipping license file +License registered for \ No newline at end of file diff --git a/src/licensedcode/data/rules/false-positive_700.RULE b/src/licensedcode/data/rules/false-positive_700.RULE new file mode 100644 index 00000000000..dd43545e790 --- /dev/null +++ b/src/licensedcode/data/rules/false-positive_700.RULE @@ -0,0 +1,6 @@ +--- +is_false_positive: yes +notes: seen in liferay-portal +--- + +2Corrupt license file. License was not registered: \ No newline at end of file diff --git a/src/licensedcode/data/rules/false-positive_701.RULE b/src/licensedcode/data/rules/false-positive_701.RULE new file mode 100644 index 00000000000..8e0f5ce4bae --- /dev/null +++ b/src/licensedcode/data/rules/false-positive_701.RULE @@ -0,0 +1,7 @@ +--- +is_false_positive: yes +notes: seen in liferay-portal +--- + +*Failed to find license files in directory +Failed to read license file \ No newline at end of file diff --git a/src/licensedcode/data/rules/false-positive_702.RULE b/src/licensedcode/data/rules/false-positive_702.RULE new file mode 100644 index 00000000000..2b01a081229 --- /dev/null +++ b/src/licensedcode/data/rules/false-positive_702.RULE @@ -0,0 +1,6 @@ +--- +is_false_positive: yes +notes: seen in liferay-portal +--- + +Corrupt license file. Removing license file \ No newline at end of file diff --git a/src/licensedcode/data/rules/false-positive_703.RULE b/src/licensedcode/data/rules/false-positive_703.RULE new file mode 100644 index 00000000000..73ce70ccf9b --- /dev/null +++ b/src/licensedcode/data/rules/false-positive_703.RULE @@ -0,0 +1,7 @@ +--- +is_false_positive: yes +notes: seen in liferay-portal +--- + +Failed to read license file +LICENSE_REPOSITORY_DIR \ No newline at end of file From 9c90afed924b00ac4ef96252636bc4b6f7c41374 Mon Sep 17 00:00:00 2001 From: Ayan Sinha Mahapatra Date: Wed, 20 Sep 2023 16:59:21 +0530 Subject: [PATCH 12/13] Add new and updated license detection rules * New rule additions * Updating rules as intros and clues Signed-off-by: Ayan Sinha Mahapatra --- src/licensedcode/data/rules/cddl-1.0_90.RULE | 8 ++++++++ src/licensedcode/data/rules/cpl-1.0_39.RULE | 9 +++++++++ src/licensedcode/data/rules/false-positive_704.RULE | 7 +++++++ src/licensedcode/data/rules/false-positive_705.RULE | 6 ++++++ src/licensedcode/data/rules/false-positive_706.RULE | 6 ++++++ src/licensedcode/data/rules/false-positive_707.RULE | 8 ++++++++ src/licensedcode/data/rules/false-positive_708.RULE | 7 +++++++ src/licensedcode/data/rules/false-positive_709.RULE | 7 +++++++ src/licensedcode/data/rules/free-unknown_96.RULE | 2 +- src/licensedcode/data/rules/freeware_bare_word_only.RULE | 2 +- src/licensedcode/data/rules/proprietary-license_543.RULE | 2 +- src/licensedcode/data/rules/proprietary_19.RULE | 2 +- 12 files changed, 62 insertions(+), 4 deletions(-) create mode 100644 src/licensedcode/data/rules/cddl-1.0_90.RULE create mode 100644 src/licensedcode/data/rules/cpl-1.0_39.RULE create mode 100644 src/licensedcode/data/rules/false-positive_704.RULE create mode 100644 src/licensedcode/data/rules/false-positive_705.RULE create mode 100644 src/licensedcode/data/rules/false-positive_706.RULE create mode 100644 src/licensedcode/data/rules/false-positive_707.RULE create mode 100644 src/licensedcode/data/rules/false-positive_708.RULE create mode 100644 src/licensedcode/data/rules/false-positive_709.RULE diff --git a/src/licensedcode/data/rules/cddl-1.0_90.RULE b/src/licensedcode/data/rules/cddl-1.0_90.RULE new file mode 100644 index 00000000000..3f40fc49212 --- /dev/null +++ b/src/licensedcode/data/rules/cddl-1.0_90.RULE @@ -0,0 +1,8 @@ +--- +license_expression: cddl-1.0 +is_license_tag: yes +ignorable_urls: + - https://opensource.org/licenses/CDDL-1.0 +--- + +Common Development and Distribution License 1.0 \ No newline at end of file diff --git a/src/licensedcode/data/rules/cpl-1.0_39.RULE b/src/licensedcode/data/rules/cpl-1.0_39.RULE new file mode 100644 index 00000000000..e61150375ba --- /dev/null +++ b/src/licensedcode/data/rules/cpl-1.0_39.RULE @@ -0,0 +1,9 @@ +--- +license_expression: cpl-1.0 +is_license_reference: yes +relevance: 100 +ignorable_urls: + - http://opensource.org/licenses/cpl1.0.php +--- + +Common Public License 1.0 \ No newline at end of file diff --git a/src/licensedcode/data/rules/false-positive_704.RULE b/src/licensedcode/data/rules/false-positive_704.RULE new file mode 100644 index 00000000000..cdb5d766b4d --- /dev/null +++ b/src/licensedcode/data/rules/false-positive_704.RULE @@ -0,0 +1,7 @@ +--- +is_false_positive: yes +notes: seen in liferay-portal +--- + + Date: Thu, 21 Sep 2023 13:25:58 +0530 Subject: [PATCH 13/13] Add updates for review comments Signed-off-by: Ayan Sinha Mahapatra --- src/licensedcode/data/rules/epl-2.0_70.RULE | 9 +--- src/licensedcode/data/rules/lbnl-bsd_13.RULE | 50 -------------------- 2 files changed, 1 insertion(+), 58 deletions(-) delete mode 100644 src/licensedcode/data/rules/lbnl-bsd_13.RULE diff --git a/src/licensedcode/data/rules/epl-2.0_70.RULE b/src/licensedcode/data/rules/epl-2.0_70.RULE index ea0429e348c..f993910f6c0 100644 --- a/src/licensedcode/data/rules/epl-2.0_70.RULE +++ b/src/licensedcode/data/rules/epl-2.0_70.RULE @@ -1,19 +1,12 @@ --- license_expression: epl-2.0 is_license_notice: yes -ignorable_copyrights: - - Copyright Mountainminds GmbH & Co. KG and Contributors -ignorable_holders: - - Mountainminds GmbH & Co. KG and Contributors ignorable_urls: - https://www.eclipse.org/legal/epl-2.0 - https://www.eclipse.org/legal/epl-2.0/ --- -Copyright Mountainminds GmbH & Co. KG and Contributors - -The JaCoCo Java Code Coverage Library and all included documentation is made -available by Mountainminds GmbH & Co. KG, Munich. Except indicated below, the +Except indicated below, the Content is provided to you under the terms and conditions of the {{Eclipse Public License Version 2.0 ("EPL")}}. A copy of the {{EPL}} is available at [https://www.eclipse.org/legal/epl-2.0/](https://www.eclipse.org/legal/epl-2.0/). \ No newline at end of file diff --git a/src/licensedcode/data/rules/lbnl-bsd_13.RULE b/src/licensedcode/data/rules/lbnl-bsd_13.RULE deleted file mode 100644 index a5c4245b52b..00000000000 --- a/src/licensedcode/data/rules/lbnl-bsd_13.RULE +++ /dev/null @@ -1,50 +0,0 @@ ---- -license_expression: lbnl-bsd -is_license_text: yes -ignorable_copyrights: - - Copyright (c) 2003, The Regents of the University of California, through Lawrence Berkeley - National Laboratory -ignorable_holders: - - The Regents of the University of California, through Lawrence Berkeley National Laboratory ---- - -Copyright (c) 2003, The Regents of the University of California, through -Lawrence Berkeley National Laboratory (subject to receipt of any required -approvals from the U.S. Dept. of Energy). All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -(1) Redistributions of source code must retain the above copyright notice, -this list of conditions and the following disclaimer. - -(2) Redistributions in binary form must reproduce the above copyright notice, -this list of conditions and the following disclaimer in the documentation -and/or other materials provided with the distribution. - -(3) Neither the name of the University of California, Lawrence Berkeley National -Laboratory, U.S. Dept. of Energy nor the names of its contributors may be -used to endorse or promote products derived from this software without specific -prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER -OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER -IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. - -You are under no obligation whatsoever to provide any bug fixes, patches, -or upgrades to the features, functionality or performance of the source code -("Enhancements") to anyone; however, if you choose to make your Enhancements -available either publicly, or directly to Lawrence Berkeley National Laboratory, -without imposing a separate written license agreement for such Enhancements, -then you hereby grant the following license: a non-exclusive, royalty-free -perpetual license to install, use, modify, prepare derivative works, incorporate -into other computer software, distribute, and sublicense such Enhancements -or derivative works thereof, in binary and source code form. \ No newline at end of file