From f202fc295fcb89ee007a75d61a2ba52f2154c805 Mon Sep 17 00:00:00 2001 From: Jonathan Yoder Date: Tue, 18 Aug 2026 18:50:35 -0400 Subject: [PATCH 1/2] license: derive a license from the free-form License field Types now consults the legacy free-form License field when neither License-Expression nor a License:: classifier says anything. That population previously derived to Unknown. The tier is strict by design: one unrecognized token rejects the whole field. It resolves only when the field is itself a published, non-deprecated SPDX identifier, or an expression whose every identifier is one. That is what makes it impossible to invent a license here -- "3-Clause BSD License" tokenizes to 3-Clause / BSD / License, and accepting the plausible part would attribute BSD-3-Clause to a package on the strength of a word. The same rule rejects bare GPL, GPLv3 and BSD, and defers the alias tier (Apache 2.0, MIT License) without anyone having to adjudicate it. Because the tier runs last it can only move a package out of Unknown, never overrule a license declared through a structured field. Identifiers are now checked against the published SPDX License List rather than an ad hoc set, with deprecated ids excluded. Measured against the live PyPI corpus of 1,745,000 free-form-only versions captured 2026-08-18: 48.35% resolve. The 250 highest-volume strings are committed as a regression fixture. Types takes a third argument and is a breaking change for callers. --- CHANGELOG.md | 42 + license/data/gen_spdx_licenses.py | 153 +++ license/data/spdx_licenses.json | 795 +++++++++++ license/freeform_corpus_test.go | 79 ++ license/freeform_test.go | 183 +++ license/license.go | 108 +- license/license_test.go | 2 +- license/spdx_expression.go | 28 +- license/spdx_ids.go | 88 ++ license/testdata/freeform_corpus.json | 1764 +++++++++++++++++++++++++ 10 files changed, 3232 insertions(+), 10 deletions(-) create mode 100644 license/data/gen_spdx_licenses.py create mode 100644 license/data/spdx_licenses.json create mode 100644 license/freeform_corpus_test.go create mode 100644 license/freeform_test.go create mode 100644 license/spdx_ids.go create mode 100644 license/testdata/freeform_corpus.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d431f7..e755be2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,48 @@ mistaken for a safe patch upgrade. ## [Unreleased] +### Breaking + +- `license`: `Types` takes a third argument, the raw free-form `License` field. + Callers that pass only the expression and the classifiers must add it; pass + `""` to keep the previous behaviour exactly. + +### Added + +- `license`: `Types` now derives a license from the legacy free-form `License` + field when neither `License-Expression` nor a `License ::` classifier says + anything. This is the population that previously derived to `Unknown`. + + The tier is deliberately strict: **one unrecognized token rejects the whole + field.** The field resolves only when it is itself a published, non-deprecated + SPDX identifier, or an SPDX expression whose every identifier is one. That is + what makes it impossible to invent a license here — `3-Clause BSD License` + tokenizes to `3-Clause` / `BSD` / `License`, and accepting the plausible part + would attribute `BSD-3-Clause` to a package on the strength of a word. + + The rule settles the ambiguous spellings without anyone adjudicating them. + Bare `GPL` and `GPLv3` are not identifiers, so they are rejected rather than + resolved to a guessed version; bare `BSD` names a family with several + incompatible members; aliases in real use such as `Apache 2.0` and + `MIT License` are rejected for the same reason, and recognizing them is a + separate decision requiring per-entry review. Matching is case-insensitive, + so `mit` resolves to `MIT`. + + Because it runs last, the tier can only move a package **out** of `Unknown`, + never overrule a license the package declared through a structured field. + + Measured against the live PyPI corpus (1,745,000 free-form-only + (name, version) pairs, 17,846 distinct strings, captured 2026-08-18): + **48.35% resolve**, from 278 distinct strings. The largest remaining + rejections are `UNKNOWN` (69,824), `Apache 2.0` (63,176), + `Apache License 2.0` (57,107), `BSD` (44,585) and `MIT License` (40,663). + +- `license`: SPDX identifiers are now checked against the published SPDX + License List (`license/data/spdx_licenses.json`, generated by + `license/data/gen_spdx_licenses.py`) rather than an ad hoc set. Deprecated + identifiers are excluded, so `GPL-3.0` and `AGPL-3.0` do not resolve — they + are ambiguous between the `-only` and `-or-later` forms that replaced them. + ## [0.7.0] - 2026-08-14 ### Added diff --git a/license/data/gen_spdx_licenses.py b/license/data/gen_spdx_licenses.py new file mode 100644 index 0000000..557ab5a --- /dev/null +++ b/license/data/gen_spdx_licenses.py @@ -0,0 +1,153 @@ +# Regenerate the SPDX identifier set: +# python3 license/data/gen_spdx_licenses.py +# +# Writes license/data/spdx_licenses.json, which license/spdx_ids.go embeds. +# Requires network access AT AUTHORING TIME ONLY -- the set is compiled into the +# library, and nothing in license/ reaches the network at runtime. +# +# WHAT THIS FILE IS FOR +# +# The free-form `License:` metadata field is unconstrained text. Deriving SPDX +# ids from it is only safe if every token is checked against a KNOWN identifier +# (see typesFromLicenseText); an unchecked derivation would happily "recognize" +# `3-Clause` or `License` as licenses. That check needs one thing: the set of +# identifiers SPDX actually publishes. +# +# Exception identifiers (the right-hand side of `GPL-3.0-only WITH +# Classpath-exception-2.0`) are collected for the same reason. An exception is +# not a license and never becomes a derived type, but it has to be recognizable: +# `MIT with restrictions` parses as MIT-plus-an-exception, and a derivation that +# dropped the unrecognized `restrictions` would report plain MIT for a package +# that explicitly said it was not granting plain MIT. +# +# SOURCE +# +# https://raw.githubusercontent.com/spdx/license-list-data//json/licenses.json +# https://raw.githubusercontent.com/spdx/license-list-data//json/exceptions.json +# +# ⚠️ PIN TO A RELEASED TAG, NEVER `main`. The file on `main` carries an +# unreleased `licenseListVersion` (a commit hash) and can contain identifiers no +# published release has. Consumers validate derived ids against their own copy +# of the SPDX list -- Posit Package Manager's ValidateLicenseType is one -- and +# an id this module emits that the consumer's list does not carry becomes a +# license type that exists in the data but cannot be named in a rule. Tracking +# releases keeps the two able to converge. +# +# FILTERS +# +# 1. isDeprecatedLicenseId must be false. A deprecated id (`GPL-3.0`, +# `LGPL-2.1`, ...) is exactly the ambiguous spelling this module must NOT +# resolve: SPDX deprecated `GPL-3.0` because it does not say whether +# "or later" applies, which is the same reason bare `GPL` is rejected. +# Consumers reject deprecated ids too, so emitting one would produce an +# unusable type. +# 2. An id equal (case-insensitively) to the `Unknown` sentinel is dropped, so +# that a future SPDX addition cannot launder the sentinel into a "detected" +# type. SPDX has never published such an id; this is a standing guard, and +# license/spdx_ids.go enforces the same rule when it loads this file. +# +# The ids are written sorted so that a regeneration produces a reviewable diff +# rather than a reshuffle. + +import json +import os +import urllib.request + +TAG = "v3.28.0" +BASE = f"https://raw.githubusercontent.com/spdx/license-list-data/{TAG}/json" +LICENSES_URL = f"{BASE}/licenses.json" +EXCEPTIONS_URL = f"{BASE}/exceptions.json" + +UNKNOWN_SENTINEL = "unknown" + +HERE = os.path.dirname(os.path.abspath(__file__)) +OUT = os.path.join(HERE, "spdx_licenses.json") + + +def fetch(url: str) -> dict: + with urllib.request.urlopen(url) as resp: + return json.load(resp) + + +def check_release_version(version: str) -> None: + if not version[0].isdigit(): + raise SystemExit( + f"licenseListVersion {version!r} is not a release version -- " + f"{TAG} does not look like a released tag" + ) + + +def check_fold(ids: list, what: str) -> None: + # The Go side folds case to match `mit` as well as `MIT`, so two ids + # differing only in case would make the fold ambiguous. Fail loudly rather + # than let one silently win. + lowered = {} + for i in ids: + lowered.setdefault(i.lower(), []).append(i) + collisions = {k: v for k, v in lowered.items() if len(v) > 1} + if collisions: + raise SystemExit(f"case-insensitive {what} collisions: {collisions}") + + +def main() -> None: + licenses = fetch(LICENSES_URL) + exceptions = fetch(EXCEPTIONS_URL) + + version = licenses["licenseListVersion"] + check_release_version(version) + check_release_version(exceptions["licenseListVersion"]) + if exceptions["licenseListVersion"] != version: + raise SystemExit( + f"license list {version} and exception list " + f"{exceptions['licenseListVersion']} disagree" + ) + + ids = sorted( + lic["licenseId"] + for lic in licenses["licenses"] + if not lic["isDeprecatedLicenseId"] + and lic["licenseId"].lower() != UNKNOWN_SENTINEL + ) + if not ids: + raise SystemExit("no non-deprecated identifiers found -- upstream shape changed?") + check_fold(ids, "identifier") + + exception_ids = sorted( + exc["licenseExceptionId"] + for exc in exceptions["exceptions"] + if not exc["isDeprecatedLicenseId"] + ) + if not exception_ids: + raise SystemExit("no non-deprecated exceptions found -- upstream shape changed?") + check_fold(exception_ids, "exception identifier") + + doc = { + "source": [LICENSES_URL, EXCEPTIONS_URL], + "regenerate": "python3 license/data/gen_spdx_licenses.py", + "notes": [ + "Non-deprecated SPDX license identifiers, from the SPDX License List " + "at the pinned release tag. See gen_spdx_licenses.py for the filters " + "and for why the tag must be a release, never main.", + "This is the recognition set for the free-form `License:` field. It is " + "deliberately identifiers only: this module validates spellings, it does " + "not render license names or texts.", + "licenseExceptionIds are the identifiers valid to the right of a WITH. " + "An exception is never a derived license type; it is listed so that an " + "UNRECOGNIZED exception can reject the field it appears in.", + ], + "licenseListVersion": version, + "licenseIds": ids, + "licenseExceptionIds": exception_ids, + } + + with open(OUT, "w") as f: + json.dump(doc, f, indent=2) + f.write("\n") + print( + f"wrote {OUT}: {len(ids)} identifiers, {len(exception_ids)} exceptions, " + f"SPDX license list {version}" + ) + + +if __name__ == "__main__": + main() diff --git a/license/data/spdx_licenses.json b/license/data/spdx_licenses.json new file mode 100644 index 0000000..3499d9b --- /dev/null +++ b/license/data/spdx_licenses.json @@ -0,0 +1,795 @@ +{ + "source": [ + "https://raw.githubusercontent.com/spdx/license-list-data/v3.28.0/json/licenses.json", + "https://raw.githubusercontent.com/spdx/license-list-data/v3.28.0/json/exceptions.json" + ], + "regenerate": "python3 license/data/gen_spdx_licenses.py", + "notes": [ + "Non-deprecated SPDX license identifiers, from the SPDX License List at the pinned release tag. See gen_spdx_licenses.py for the filters and for why the tag must be a release, never main.", + "This is the recognition set for the free-form `License:` field. It is deliberately identifiers only: this module validates spellings, it does not render license names or texts.", + "licenseExceptionIds are the identifiers valid to the right of a WITH. An exception is never a derived license type; it is listed so that an UNRECOGNIZED exception can reject the field it appears in." + ], + "licenseListVersion": "3.28.0", + "licenseIds": [ + "0BSD", + "3D-Slicer-1.0", + "AAL", + "ADSL", + "AFL-1.1", + "AFL-1.2", + "AFL-2.0", + "AFL-2.1", + "AFL-3.0", + "AGPL-1.0-only", + "AGPL-1.0-or-later", + "AGPL-3.0-only", + "AGPL-3.0-or-later", + "ALGLIB-Documentation", + "AMD-newlib", + "AMDPLPA", + "AML", + "AML-glslang", + "AMPAS", + "ANTLR-PD", + "ANTLR-PD-fallback", + "APAFML", + "APL-1.0", + "APSL-1.0", + "APSL-1.1", + "APSL-1.2", + "APSL-2.0", + "ASWF-Digital-Assets-1.0", + "ASWF-Digital-Assets-1.1", + "Abstyles", + "AdaCore-doc", + "Adobe-2006", + "Adobe-Display-PostScript", + "Adobe-Glyph", + "Adobe-Utopia", + "Advanced-Cryptics-Dictionary", + "Afmparse", + "Aladdin", + "Apache-1.0", + "Apache-1.1", + "Apache-2.0", + "App-s2p", + "Arphic-1999", + "Artistic-1.0", + "Artistic-1.0-Perl", + "Artistic-1.0-cl8", + "Artistic-2.0", + "Artistic-dist", + "Aspell-RU", + "BOLA-1.1", + "BSD-1-Clause", + "BSD-2-Clause", + "BSD-2-Clause-Darwin", + "BSD-2-Clause-Patent", + "BSD-2-Clause-Views", + "BSD-2-Clause-first-lines", + "BSD-2-Clause-pkgconf-disclaimer", + "BSD-3-Clause", + "BSD-3-Clause-Attribution", + "BSD-3-Clause-Clear", + "BSD-3-Clause-HP", + "BSD-3-Clause-LBNL", + "BSD-3-Clause-Modification", + "BSD-3-Clause-No-Military-License", + "BSD-3-Clause-No-Nuclear-License", + "BSD-3-Clause-No-Nuclear-License-2014", + "BSD-3-Clause-No-Nuclear-Warranty", + "BSD-3-Clause-Open-MPI", + "BSD-3-Clause-Sun", + "BSD-3-Clause-Tso", + "BSD-3-Clause-acpica", + "BSD-3-Clause-flex", + "BSD-4-Clause", + "BSD-4-Clause-Shortened", + "BSD-4-Clause-UC", + "BSD-4.3RENO", + "BSD-4.3TAHOE", + "BSD-Advertising-Acknowledgement", + "BSD-Attribution-HPND-disclaimer", + "BSD-Inferno-Nettverk", + "BSD-Mark-Modifications", + "BSD-Protection", + "BSD-Source-Code", + "BSD-Source-beginning-file", + "BSD-Systemics", + "BSD-Systemics-W3Works", + "BSL-1.0", + "BUSL-1.1", + "Baekmuk", + "Bahyph", + "Barr", + "Beerware", + "BitTorrent-1.0", + "BitTorrent-1.1", + "Bitstream-Charter", + "Bitstream-Vera", + "BlueOak-1.0.0", + "Boehm-GC", + "Boehm-GC-without-fee", + "Borceux", + "Brian-Gladman-2-Clause", + "Brian-Gladman-3-Clause", + "Buddy", + "C-UDA-1.0", + "CAL-1.0", + "CAL-1.0-Combined-Work-Exception", + "CAPEC-tou", + "CATOSL-1.1", + "CC-BY-1.0", + "CC-BY-2.0", + "CC-BY-2.5", + "CC-BY-2.5-AU", + "CC-BY-3.0", + "CC-BY-3.0-AT", + "CC-BY-3.0-AU", + "CC-BY-3.0-DE", + "CC-BY-3.0-IGO", + "CC-BY-3.0-NL", + "CC-BY-3.0-US", + "CC-BY-4.0", + "CC-BY-NC-1.0", + "CC-BY-NC-2.0", + "CC-BY-NC-2.5", + "CC-BY-NC-3.0", + "CC-BY-NC-3.0-DE", + "CC-BY-NC-4.0", + "CC-BY-NC-ND-1.0", + "CC-BY-NC-ND-2.0", + "CC-BY-NC-ND-2.5", + "CC-BY-NC-ND-3.0", + "CC-BY-NC-ND-3.0-DE", + "CC-BY-NC-ND-3.0-IGO", + "CC-BY-NC-ND-4.0", + "CC-BY-NC-SA-1.0", + "CC-BY-NC-SA-2.0", + "CC-BY-NC-SA-2.0-DE", + "CC-BY-NC-SA-2.0-FR", + "CC-BY-NC-SA-2.0-UK", + "CC-BY-NC-SA-2.5", + "CC-BY-NC-SA-3.0", + "CC-BY-NC-SA-3.0-DE", + "CC-BY-NC-SA-3.0-IGO", + "CC-BY-NC-SA-4.0", + "CC-BY-ND-1.0", + "CC-BY-ND-2.0", + "CC-BY-ND-2.5", + "CC-BY-ND-3.0", + "CC-BY-ND-3.0-DE", + "CC-BY-ND-4.0", + "CC-BY-SA-1.0", + "CC-BY-SA-2.0", + "CC-BY-SA-2.0-UK", + "CC-BY-SA-2.1-JP", + "CC-BY-SA-2.5", + "CC-BY-SA-3.0", + "CC-BY-SA-3.0-AT", + "CC-BY-SA-3.0-DE", + "CC-BY-SA-3.0-IGO", + "CC-BY-SA-4.0", + "CC-PDDC", + "CC-PDM-1.0", + "CC-SA-1.0", + "CC0-1.0", + "CDDL-1.0", + "CDDL-1.1", + "CDL-1.0", + "CDLA-Permissive-1.0", + "CDLA-Permissive-2.0", + "CDLA-Sharing-1.0", + "CECILL-1.0", + "CECILL-1.1", + "CECILL-2.0", + "CECILL-2.1", + "CECILL-B", + "CECILL-C", + "CERN-OHL-1.1", + "CERN-OHL-1.2", + "CERN-OHL-P-2.0", + "CERN-OHL-S-2.0", + "CERN-OHL-W-2.0", + "CFITSIO", + "CMU-Mach", + "CMU-Mach-nodoc", + "CNRI-Jython", + "CNRI-Python", + "CNRI-Python-GPL-Compatible", + "COIL-1.0", + "CPAL-1.0", + "CPL-1.0", + "CPOL-1.02", + "CUA-OPL-1.0", + "Caldera", + "Caldera-no-preamble", + "Catharon", + "ClArtistic", + "Clips", + "Community-Spec-1.0", + "Condor-1.1", + "Cornell-Lossless-JPEG", + "Cronyx", + "Crossword", + "CryptoSwift", + "CrystalStacker", + "Cube", + "D-FSL-1.0", + "DEC-3-Clause", + "DL-DE-BY-2.0", + "DL-DE-ZERO-2.0", + "DOC", + "DRL-1.0", + "DRL-1.1", + "DSDP", + "DocBook-DTD", + "DocBook-Schema", + "DocBook-Stylesheet", + "DocBook-XML", + "Dotseqn", + "ECL-1.0", + "ECL-2.0", + "EFL-1.0", + "EFL-2.0", + "EPICS", + "EPL-1.0", + "EPL-2.0", + "ESA-PL-permissive-2.4", + "ESA-PL-strong-copyleft-2.4", + "ESA-PL-weak-copyleft-2.4", + "EUDatagrid", + "EUPL-1.0", + "EUPL-1.1", + "EUPL-1.2", + "Elastic-2.0", + "Entessa", + "ErlPL-1.1", + "Eurosym", + "FBM", + "FDK-AAC", + "FSFAP", + "FSFAP-no-warranty-disclaimer", + "FSFUL", + "FSFULLR", + "FSFULLRSD", + "FSFULLRWD", + "FSL-1.1-ALv2", + "FSL-1.1-MIT", + "FTL", + "Fair", + "Ferguson-Twofish", + "Frameworx-1.0", + "FreeBSD-DOC", + "FreeImage", + "Furuseth", + "GCR-docs", + "GD", + "GFDL-1.1-invariants-only", + "GFDL-1.1-invariants-or-later", + "GFDL-1.1-no-invariants-only", + "GFDL-1.1-no-invariants-or-later", + "GFDL-1.1-only", + "GFDL-1.1-or-later", + "GFDL-1.2-invariants-only", + "GFDL-1.2-invariants-or-later", + "GFDL-1.2-no-invariants-only", + "GFDL-1.2-no-invariants-or-later", + "GFDL-1.2-only", + "GFDL-1.2-or-later", + "GFDL-1.3-invariants-only", + "GFDL-1.3-invariants-or-later", + "GFDL-1.3-no-invariants-only", + "GFDL-1.3-no-invariants-or-later", + "GFDL-1.3-only", + "GFDL-1.3-or-later", + "GL2PS", + "GLWTPL", + "GPL-1.0-only", + "GPL-1.0-or-later", + "GPL-2.0-only", + "GPL-2.0-or-later", + "GPL-3.0-only", + "GPL-3.0-or-later", + "Game-Programming-Gems", + "Giftware", + "Glide", + "Glulxe", + "Graphics-Gems", + "Gutmann", + "HDF5", + "HIDAPI", + "HP-1986", + "HP-1989", + "HPND", + "HPND-DEC", + "HPND-Fenneberg-Livingston", + "HPND-INRIA-IMAG", + "HPND-Intel", + "HPND-Kevlin-Henney", + "HPND-MIT-disclaimer", + "HPND-Markus-Kuhn", + "HPND-Netrek", + "HPND-Pbmplus", + "HPND-SMC", + "HPND-UC", + "HPND-UC-export-US", + "HPND-doc", + "HPND-doc-sell", + "HPND-export-US", + "HPND-export-US-acknowledgement", + "HPND-export-US-modify", + "HPND-export2-US", + "HPND-merchantability-variant", + "HPND-sell-MIT-disclaimer-xserver", + "HPND-sell-regexpr", + "HPND-sell-variant", + "HPND-sell-variant-MIT-disclaimer", + "HPND-sell-variant-MIT-disclaimer-rev", + "HPND-sell-variant-critical-systems", + "HTMLTIDY", + "HaskellReport", + "Hippocratic-2.1", + "IBM-pibs", + "ICU", + "IEC-Code-Components-EULA", + "IJG", + "IJG-short", + "IPA", + "IPL-1.0", + "ISC", + "ISC-Veillard", + "ISO-permission", + "ImageMagick", + "Imlib2", + "Info-ZIP", + "Inner-Net-2.0", + "InnoSetup", + "Intel", + "Intel-ACPI", + "Interbase-1.0", + "JPL-image", + "JPNIC", + "JSON", + "Jam", + "JasPer-2.0", + "Kastrup", + "Kazlib", + "Knuth-CTAN", + "LAL-1.2", + "LAL-1.3", + "LGPL-2.0-only", + "LGPL-2.0-or-later", + "LGPL-2.1-only", + "LGPL-2.1-or-later", + "LGPL-3.0-only", + "LGPL-3.0-or-later", + "LGPLLR", + "LOOP", + "LPD-document", + "LPL-1.0", + "LPL-1.02", + "LPPL-1.0", + "LPPL-1.1", + "LPPL-1.2", + "LPPL-1.3a", + "LPPL-1.3c", + "LZMA-SDK-9.11-to-9.20", + "LZMA-SDK-9.22", + "Latex2e", + "Latex2e-translated-notice", + "Leptonica", + "LiLiQ-P-1.1", + "LiLiQ-R-1.1", + "LiLiQ-Rplus-1.1", + "Libpng", + "Linux-OpenIB", + "Linux-man-pages-1-para", + "Linux-man-pages-copyleft", + "Linux-man-pages-copyleft-2-para", + "Linux-man-pages-copyleft-var", + "Lucida-Bitmap-Fonts", + "MIPS", + "MIT", + "MIT-0", + "MIT-CMU", + "MIT-Click", + "MIT-Festival", + "MIT-Khronos-old", + "MIT-Modern-Variant", + "MIT-STK", + "MIT-Wu", + "MIT-advertising", + "MIT-enna", + "MIT-feh", + "MIT-open-group", + "MIT-testregex", + "MITNFA", + "MMIXware", + "MMPL-1.0.1", + "MPEG-SSG", + "MPL-1.0", + "MPL-1.1", + "MPL-2.0", + "MPL-2.0-no-copyleft-exception", + "MS-LPL", + "MS-PL", + "MS-RL", + "MTLL", + "Mackerras-3-Clause", + "Mackerras-3-Clause-acknowledgment", + "MakeIndex", + "Martin-Birgmeier", + "McPhee-slideshow", + "Minpack", + "MirOS", + "Motosoto", + "MulanPSL-1.0", + "MulanPSL-2.0", + "Multics", + "Mup", + "NAIST-2003", + "NASA-1.3", + "NBPL-1.0", + "NCBI-PD", + "NCGL-UK-2.0", + "NCL", + "NCSA", + "NGPL", + "NICTA-1.0", + "NIST-PD", + "NIST-PD-TNT", + "NIST-PD-fallback", + "NIST-Software", + "NLOD-1.0", + "NLOD-2.0", + "NLPL", + "NOSL", + "NPL-1.0", + "NPL-1.1", + "NPOSL-3.0", + "NRL", + "NTIA-PD", + "NTP", + "NTP-0", + "Naumen", + "NetCDF", + "Newsletr", + "Nokia", + "Noweb", + "O-UDA-1.0", + "OAR", + "OCCT-PL", + "OCLC-2.0", + "ODC-By-1.0", + "ODbL-1.0", + "OFFIS", + "OFL-1.0", + "OFL-1.0-RFN", + "OFL-1.0-no-RFN", + "OFL-1.1", + "OFL-1.1-RFN", + "OFL-1.1-no-RFN", + "OGC-1.0", + "OGDL-Taiwan-1.0", + "OGL-Canada-2.0", + "OGL-UK-1.0", + "OGL-UK-2.0", + "OGL-UK-3.0", + "OGTSL", + "OLDAP-1.1", + "OLDAP-1.2", + "OLDAP-1.3", + "OLDAP-1.4", + "OLDAP-2.0", + "OLDAP-2.0.1", + "OLDAP-2.1", + "OLDAP-2.2", + "OLDAP-2.2.1", + "OLDAP-2.2.2", + "OLDAP-2.3", + "OLDAP-2.4", + "OLDAP-2.5", + "OLDAP-2.6", + "OLDAP-2.7", + "OLDAP-2.8", + "OLFL-1.3", + "OML", + "OPL-1.0", + "OPL-UK-3.0", + "OPUBL-1.0", + "OSC-1.0", + "OSET-PL-2.1", + "OSL-1.0", + "OSL-1.1", + "OSL-2.0", + "OSL-2.1", + "OSL-3.0", + "OSSP", + "OpenMDW-1.0", + "OpenPBS-2.3", + "OpenSSL", + "OpenSSL-standalone", + "OpenVision", + "PADL", + "PDDL-1.0", + "PHP-3.0", + "PHP-3.01", + "PPL", + "PSF-2.0", + "ParaType-Free-Font-1.3", + "Parity-6.0.0", + "Parity-7.0.0", + "Pixar", + "Plexus", + "PolyForm-Noncommercial-1.0.0", + "PolyForm-Small-Business-1.0.0", + "PostgreSQL", + "Python-2.0", + "Python-2.0.1", + "QPL-1.0", + "QPL-1.0-INRIA-2004", + "Qhull", + "RHeCos-1.1", + "RPL-1.1", + "RPL-1.5", + "RPSL-1.0", + "RSA-MD", + "RSCPL", + "Rdisc", + "Ruby", + "Ruby-pty", + "SAX-PD", + "SAX-PD-2.0", + "SCEA", + "SGI-B-1.0", + "SGI-B-1.1", + "SGI-B-2.0", + "SGI-OpenGL", + "SGMLUG-PM", + "SGP4", + "SHL-0.5", + "SHL-0.51", + "SISSL", + "SISSL-1.2", + "SL", + "SMAIL-GPL", + "SMLNJ", + "SMPPL", + "SNIA", + "SOFA", + "SPL-1.0", + "SSH-OpenSSH", + "SSH-short", + "SSLeay-standalone", + "SSPL-1.0", + "SUL-1.0", + "SWL", + "Saxpath", + "SchemeReport", + "Sendmail", + "Sendmail-8.23", + "Sendmail-Open-Source-1.1", + "SimPL-2.0", + "Sleepycat", + "Soundex", + "Spencer-86", + "Spencer-94", + "Spencer-99", + "SugarCRM-1.1.3", + "Sun-PPP", + "Sun-PPP-2000", + "SunPro", + "Symlinks", + "TAPR-OHL-1.0", + "TCL", + "TCP-wrappers", + "TGPPL-1.0", + "TMate", + "TORQUE-1.1", + "TOSL", + "TPDL", + "TPL-1.0", + "TTWL", + "TTYP0", + "TU-Berlin-1.0", + "TU-Berlin-2.0", + "TekHVC", + "TermReadKey", + "ThirdEye", + "TrustedQSL", + "UCAR", + "UCL-1.0", + "UMich-Merit", + "UPL-1.0", + "URT-RLE", + "Ubuntu-font-1.0", + "UnRAR", + "Unicode-3.0", + "Unicode-DFS-2015", + "Unicode-DFS-2016", + "Unicode-TOU", + "UnixCrypt", + "Unlicense", + "Unlicense-libtelnet", + "Unlicense-libwhirlpool", + "VOSTROM", + "VSL-1.0", + "Vim", + "Vixie-Cron", + "W3C", + "W3C-19980720", + "W3C-20150513", + "WTFNMFPL", + "WTFPL", + "Watcom-1.0", + "Widget-Workshop", + "WordNet", + "Wsuipa", + "X11", + "X11-distribute-modifications-variant", + "X11-no-permit-persons", + "X11-swapped", + "XFree86-1.1", + "XSkat", + "Xdebug-1.03", + "Xerox", + "Xfig", + "Xnet", + "YPL-1.0", + "YPL-1.1", + "ZPL-1.1", + "ZPL-2.0", + "ZPL-2.1", + "Zed", + "Zeeff", + "Zend-2.0", + "Zimbra-1.3", + "Zimbra-1.4", + "Zlib", + "any-OSI", + "any-OSI-perl-modules", + "bcrypt-Solar-Designer", + "blessing", + "bzip2-1.0.6", + "check-cvs", + "checkmk", + "copyleft-next-0.3.0", + "copyleft-next-0.3.1", + "curl", + "cve-tou", + "diffmark", + "dtoa", + "dvipdfm", + "eGenix", + "etalab-2.0", + "fwlw", + "gSOAP-1.3b", + "generic-xts", + "gnuplot", + "gtkbook", + "hdparm", + "hyphen-bulgarian", + "iMatix", + "jove", + "libpng-1.6.35", + "libpng-2.0", + "libselinux-1.0", + "libtiff", + "libutil-David-Nugent", + "lsof", + "magaz", + "mailprio", + "man2html", + "metamail", + "mpi-permissive", + "mpich2", + "mplus", + "ngrep", + "pkgconf", + "pnmstitch", + "psfrag", + "psutils", + "python-ldap", + "radvd", + "snprintf", + "softSurfer", + "ssh-keyscan", + "swrule", + "threeparttable", + "ulem", + "w3m", + "wwl", + "xinetd", + "xkeyboard-config-Zinoviev", + "xlock", + "xpp", + "xzoom", + "zlib-acknowledgement" + ], + "licenseExceptionIds": [ + "389-exception", + "Asterisk-exception", + "Asterisk-linking-protocols-exception", + "Autoconf-exception-2.0", + "Autoconf-exception-3.0", + "Autoconf-exception-generic", + "Autoconf-exception-generic-3.0", + "Autoconf-exception-macro", + "Bison-exception-1.24", + "Bison-exception-2.2", + "Bootloader-exception", + "CGAL-linking-exception", + "CLISP-exception-2.0", + "Classpath-exception-2.0", + "Classpath-exception-2.0-short", + "DigiRule-FOSS-exception", + "Digia-Qt-LGPL-exception-1.1", + "FLTK-exception", + "Fawkes-Runtime-exception", + "Font-exception-2.0", + "GCC-exception-2.0", + "GCC-exception-2.0-note", + "GCC-exception-3.1", + "GNAT-exception", + "GNOME-examples-exception", + "GNU-compiler-exception", + "GPL-3.0-389-ds-base-exception", + "GPL-3.0-interface-exception", + "GPL-3.0-linking-exception", + "GPL-3.0-linking-source-exception", + "GPL-CC-1.0", + "GStreamer-exception-2005", + "GStreamer-exception-2008", + "Gmsh-exception", + "Independent-modules-exception", + "KiCad-libraries-exception", + "LGPL-3.0-linking-exception", + "LLGPL", + "LLVM-exception", + "LZMA-exception", + "Libtool-exception", + "Linux-syscall-note", + "OCCT-exception-1.0", + "OCaml-LGPL-linking-exception", + "OpenJDK-assembly-exception-1.0", + "PCRE2-exception", + "PS-or-PDF-font-exception-20170817", + "QPL-1.0-INRIA-2004-exception", + "Qt-GPL-exception-1.0", + "Qt-LGPL-exception-1.1", + "Qwt-exception-1.0", + "RRDtool-FLOSS-exception-2.0", + "SANE-exception", + "SHL-2.0", + "SHL-2.1", + "SWI-exception", + "Simple-Library-Usage-exception", + "Swift-exception", + "Texinfo-exception", + "UBDL-exception", + "Universal-FOSS-exception-1.0", + "WxWindows-exception-3.1", + "cryptsetup-OpenSSL-exception", + "eCos-exception-2.0", + "erlang-otp-linking-exception", + "fmt-exception", + "freertos-exception-2.0", + "gnu-javamail-exception", + "harbour-exception", + "i2p-gpl-java-exception", + "kvirc-openssl-exception", + "libpri-OpenH323-exception", + "mif-exception", + "mxml-exception", + "openvpn-openssl-exception", + "polyparse-exception", + "romic-exception", + "rsync-linking-exception", + "sqlitestudio-OpenSSL-exception", + "stunnel-exception", + "u-boot-exception-2.0", + "vsftpd-openssl-exception", + "x11vnc-openssl-exception" + ] +} diff --git a/license/freeform_corpus_test.go b/license/freeform_corpus_test.go new file mode 100644 index 0000000..5fa4c3d --- /dev/null +++ b/license/freeform_corpus_test.go @@ -0,0 +1,79 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + +package license + +import ( + "encoding/json" + "os" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +// TestTypesAgainstRealCorpus pins the derivation against real values of the +// legacy free-form License field taken from PyPI, rather than against strings +// invented to suit the implementation. +// +// ⚠️ This is a REGRESSION FIXTURE, not a specification. Every row whose want is +// not Unknown is a claim about a real package's license. If a change to this +// package moves a row, a human must look at the row and decide whether the new +// answer is right, rather than re-recording the file to make the test pass. +func TestTypesAgainstRealCorpus(t *testing.T) { + type corpusCase struct { + License string `json:"license"` + Versions int `json:"versions"` + Want []string `json:"want"` + } + var fixture struct { + Source string `json:"source"` + Captured string `json:"captured"` + Coverage string `json:"coverage"` + Cases []corpusCase `json:"cases"` + } + + raw, err := os.ReadFile("testdata/freeform_corpus.json") + require.NoError(t, err) + require.NoError(t, json.Unmarshal(raw, &fixture)) + require.NotEmpty(t, fixture.Cases) + + var resolved, versionsResolved int + for _, tc := range fixture.Cases { + // The corpus selects versions whose ONLY license signal is the + // free-form field, so both structured tiers are empty by construction. + got := Types("", nil, tc.License) + assert.Equal(t, tc.Want, got, "license %q (%d versions)", tc.License, tc.Versions) + if len(got) != 1 || got[0] != LicenseUnknown { + resolved++ + versionsResolved += tc.Versions + } + } + + t.Logf("corpus %s: %d/%d rows resolved, covering %d versions", + fixture.Captured, resolved, len(fixture.Cases), versionsResolved) + + // A floor, not an exact figure: a later SPDX list can only resolve more. + // This catches a change that silently guts the derivation without having to + // re-record every row. + assert.Greater(t, versionsResolved, 800000, + "the derivation should still resolve the bulk of the corpus") +} + +// TestCorpusFixtureRejectsTheKnownAmbiguousSpellings guards the specific +// strings the strict gate exists to refuse, straight from the fixture, so a +// future relaxation cannot quietly start resolving them. +func TestCorpusFixtureRejectsTheKnownAmbiguousSpellings(t *testing.T) { + for _, text := range []string{ + "UNKNOWN", + "Apache 2.0", + "Apache License 2.0", + "BSD", + "MIT License", + "GPL", + "GPLv3", + } { + t.Run(text, func(t *testing.T) { + assert.Equal(t, []string{LicenseUnknown}, Types("", nil, text)) + }) + } +} diff --git a/license/freeform_test.go b/license/freeform_test.go new file mode 100644 index 0000000..db3229f --- /dev/null +++ b/license/freeform_test.go @@ -0,0 +1,183 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + +package license + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +// TestTypesFromLicenseTextAccepts covers the tier that is allowed to resolve: +// the field is either a single known SPDX identifier or an expression whose +// every identifier is known. +func TestTypesFromLicenseTextAccepts(t *testing.T) { + cases := []struct { + name string + text string + want []string + }{ + {name: "exact-id", text: "MIT", want: []string{"MIT"}}, + {name: "lowercase-folds", text: "mit", want: []string{"MIT"}}, + {name: "uppercase-folds", text: "APACHE-2.0", want: []string{"Apache-2.0"}}, + {name: "surrounding-space", text: " MIT ", want: []string{"MIT"}}, + {name: "apache", text: "Apache-2.0", want: []string{"Apache-2.0"}}, + {name: "bsd-3-clause-is-unambiguous", text: "BSD-3-Clause", want: []string{"BSD-3-Clause"}}, + {name: "gpl-with-version-is-unambiguous", text: "GPL-3.0-or-later", want: []string{"GPL-3.0-or-later"}}, + {name: "or-expression", text: "MIT OR Apache-2.0", want: []string{"MIT", "Apache-2.0"}}, + {name: "and-expression", text: "MIT AND Apache-2.0", want: []string{"MIT", "Apache-2.0"}}, + { + // An exception is recognized but never returned: the identifiers + // this function yields are licenses, not exceptions. + name: "known-exception-is-recognized-not-returned", + text: "Apache-2.0 WITH LLVM-exception", + want: []string{"Apache-2.0"}, + }, + { + // ParseSPDXExpression dedupes by raw token, so a case-varied repeat + // survives it as two tokens folding to one id. + name: "case-varied-duplicate-collapses", + text: "MIT OR mit", + want: []string{"MIT"}, + }, + } + for _, tc := range cases { + t.Run(tc.name, func(t *testing.T) { + assert.Equal(t, tc.want, typesFromLicenseText(tc.text)) + }) + } +} + +// TestTypesFromLicenseTextRejects is the load-bearing half of the design: ONE +// unrecognized token rejects the WHOLE field. Returning nil leaves the caller +// on Unknown, which is exactly what the field produced before this tier +// existed, so the tier can only move a package OUT of Unknown, never onto a +// wrong identifier. +// +// Every string below was measured against the live PyPI corpus on 2026-08-18 +// and must stay rejected. The counts are the number of (name, version) pairs +// carrying that exact string. +func TestTypesFromLicenseTextRejects(t *testing.T) { + cases := []struct { + name string + text string + why string + }{ + {name: "empty", text: "", why: "no signal at all"}, + {name: "whitespace-only", text: " ", why: "no signal at all"}, + { + name: "bare-bsd", text: "BSD", + why: "44,585 versions; names a family with several incompatible members", + }, + { + name: "bare-gpl", text: "GPL", + why: "31,081 versions; version and variant both unknown", + }, + { + name: "gplv3-is-not-an-spdx-id", text: "GPLv3", + why: "23,697 versions; the identifiers are GPL-3.0-only / GPL-3.0-or-later", + }, + { + name: "gplv2-plus-is-not-an-spdx-id", text: "GPLv2+", + why: "12,789 versions; not a published identifier", + }, + { + name: "license-filename", text: "LICENSE", + why: "9,444 versions; not a license, a filename", + }, + { + name: "license-txt-filename", text: "LICENSE.txt", + why: "12,434 versions; not a license, a filename", + }, + { + name: "unknown-sentinel", text: "UNKNOWN", + why: "69,824 versions; excluded by design, and must never launder into a detected type", + }, + { + name: "unknown-sentinel-folded", text: "unknown", + why: "the fold must not reach the Unknown sentinel either", + }, + { + // The alias tier is deliberately deferred: recognizing these + // requires per-entry human review, and the strict gate defers them + // without anyone having to adjudicate. + name: "alias-apache-space-version", text: "Apache 2.0", + why: "63,176 versions; deferred alias tier", + }, + { + name: "alias-apache-license-version", text: "Apache License 2.0", + why: "57,107 versions; deferred alias tier", + }, + { + name: "alias-mit-license", text: "MIT License", + why: "40,663 versions; deferred alias tier", + }, + { + name: "alias-mit-licence-british", text: "MIT Licence", + why: "11,551 versions; deferred alias tier", + }, + { + // This is the case that shows why a partial match can never be + // allowed: the recognizable-looking part would attribute + // BSD-3-Clause to a package on the strength of a word. + name: "partial-match-must-not-resolve", text: "3-Clause BSD License", + why: "tokenizes to 3-Clause / BSD / License; accepting the plausible part invents a license", + }, + { + // Reporting plain MIT here would state the opposite of what the + // package said. + name: "unknown-exception-rejects-the-field", text: "MIT with restrictions", + why: "an unrecognized exception rejects the field like any other unrecognized token", + }, + { + name: "proprietary", text: "Proprietary", + why: "19,257 versions; not an SPDX identifier", + }, + { + name: "one-bad-token-in-an-otherwise-valid-expression", text: "MIT OR NotALicense", + why: "the whole field is rejected, not just the bad token", + }, + } + for _, tc := range cases { + t.Run(tc.name, func(t *testing.T) { + assert.Nil(t, typesFromLicenseText(tc.text), tc.why) + }) + } +} + +// TestTypesFromLicenseTextRejectsTextDump guards the length cutoff, which keeps +// a pasted license body from being tokenized at all. +func TestTypesFromLicenseTextRejectsTextDump(t *testing.T) { + dump := "MIT" + for len(dump) <= TextDumpMaxLen { + dump += " permission is hereby granted, free of charge, to any person" + } + assert.Greater(t, len(dump), TextDumpMaxLen) + assert.Nil(t, typesFromLicenseText(dump)) +} + +// TestTypesFreeformTierIsLast pins the precedence rule: the free-form field is +// consulted ONLY when both structured tiers yield nothing, so it can never +// overrule a license the package declared properly. +func TestTypesFreeformTierIsLast(t *testing.T) { + t.Run("expression-beats-freeform", func(t *testing.T) { + assert.Equal(t, []string{"Apache-2.0"}, Types("Apache-2.0", nil, "MIT")) + }) + + t.Run("classifier-beats-freeform", func(t *testing.T) { + got := Types("", []string{"License :: OSI Approved :: BSD License"}, "MIT") + assert.Equal(t, []string{"BSD-3-Clause"}, got) + }) + + t.Run("freeform-runs-when-nothing-structured", func(t *testing.T) { + assert.Equal(t, []string{"MIT"}, Types("", nil, "MIT")) + }) + + t.Run("freeform-rejection-leaves-unknown", func(t *testing.T) { + assert.Equal(t, []string{LicenseUnknown}, Types("", nil, "Apache 2.0")) + }) + + t.Run("no-signal-at-all-stays-unknown", func(t *testing.T) { + assert.Equal(t, []string{LicenseUnknown}, Types("", nil, "")) + }) +} diff --git a/license/license.go b/license/license.go index cdcdf27..f8808c6 100644 --- a/license/license.go +++ b/license/license.go @@ -2,10 +2,22 @@ package license +import "strings" + // LicenseUnknown is the SPDX-side sentinel returned by Types when a license // cannot be standardized. Distinct (by case) from Names's "UNKNOWN" literal. const LicenseUnknown = "Unknown" +// TextDumpMaxLen is the length past which a free-form License field is treated +// as a license-text dump rather than a label. Packages routinely paste an +// entire license (or a 60k-character concatenation of several) into the field, +// and such a value is not a name to be classified: Types will not attempt to +// recognize one, and producers that render licenses for a listing blank it. +// +// Exported so the producers and consumers of a derived license value bind to +// one number instead of re-declaring their own and drifting apart. +const TextDumpMaxLen = 200 + // Names reproduces PPM getLicense: display names via the priority ladder // (License-Expression -> classifiers -> freeform License -> "UNKNOWN"). func Names(expression string, classifiers []string, license string) []string { @@ -30,8 +42,12 @@ func Names(expression string, classifiers []string, license string) []string { } // Types reproduces PPM getLicenseTypes: SPDX-id set via -// (License-Expression -> classifiers->SPDX -> "Unknown"). -func Types(expression string, classifiers []string) []string { +// (License-Expression -> classifiers->SPDX -> freeform License -> "Unknown"). +// +// The freeform tier is strict; see typesFromLicenseText. It runs only when the +// two structured tiers yield nothing, so it can only move a package out of +// "Unknown", never overrule a license the package declared properly. +func Types(expression string, classifiers []string, license string) []string { // Priority 1: License-Expression is already SPDX format if expression != "" { lics := ParseSPDXExpression(expression) @@ -40,5 +56,91 @@ func Types(expression string, classifiers []string) []string { } } // Priority 2: map classifiers to SPDX (umbrella skip + dedup) - return StandardizeLicensePyPIClassifiers(classifiers) + types := StandardizeLicensePyPIClassifiers(classifiers) + if !isUnknownTypes(types) { + return types + } + // Priority 3: the legacy freeform License field, when it is unambiguous + if fromText := typesFromLicenseText(license); len(fromText) > 0 { + return fromText + } + // Priority 4: unknown, as returned by the classifier tier + return types +} + +// isUnknownTypes reports whether a derived type set says nothing but "Unknown". +// A set holding Unknown ALONGSIDE a real id (a package carrying both a mappable +// and an unmappable classifier) is not unknown: the package did declare a +// license through a structured field, and the freeform field must not be +// consulted to second-guess it. +func isUnknownTypes(types []string) bool { + return len(types) == 1 && types[0] == LicenseUnknown +} + +// typesFromLicenseText returns SPDX ids derived from the legacy free-form +// License field, or nil when the text cannot be resolved to KNOWN ids. +// +// Returning nil leaves the caller on "Unknown", which is what the field +// produced before this tier existed, so the tier can only ever move a package +// OUT of Unknown and never onto a wrong id. +// +// ⚠️ The governing rule is that ONE unrecognized token rejects the WHOLE field. +// That is what makes it impossible to invent a license here. ParseSPDXExpression +// does not validate -- it strips operators and hands back whatever tokens are +// left -- so "3-Clause BSD License" tokenizes to `3-Clause` / `BSD` / `License`, +// and accepting the recognizable-looking part of that would attribute BSD-3-Clause +// to a package on the strength of a word. Every token must be a published SPDX +// identifier or the field yields nothing. +// +// The rule also settles the ambiguous spellings without anyone having to +// adjudicate them. Bare `GPL` and `GPLv3` are not SPDX identifiers (the +// identifiers are `GPL-3.0-only`, `GPL-3.0-or-later`, ...), so they are +// rejected rather than resolved to a guessed version; bare `BSD` names a family +// with several incompatible members and is likewise rejected. Aliases in real +// use -- `Apache 2.0`, `MIT License` -- are rejected for the same reason, and +// recognizing them is a separate decision requiring per-entry human review. +// +// The token after a WITH counts. An exception never becomes a type -- the +// identifiers here are licenses -- but `MIT with restrictions` is a real +// free-form value, and reporting plain `MIT` for it would state the opposite of +// what the package said. So an unrecognized exception rejects the field like +// any other unrecognized token, while `Apache-2.0 WITH LLVM-exception` yields +// Apache-2.0. +func typesFromLicenseText(text string) []string { + t := strings.TrimSpace(text) + if t == "" || len(t) > TextDumpMaxLen { + return nil + } + + // Tier 1: the whole field IS a known SPDX id (case-insensitive). + if id, ok := lookupSPDXID(t); ok { + return []string{id} + } + + // Tier 2: the field is an SPDX expression whose every identifier is known. + ids, exceptions := parseSPDXExpressionParts(t) + if len(ids) == 0 { + return nil + } + for _, exc := range exceptions { + if !isSPDXException(exc) { + return nil + } + } + out := make([]string, 0, len(ids)) + seen := make(map[string]bool, len(ids)) + for _, raw := range ids { + id, ok := lookupSPDXID(raw) + if !ok { + return nil // one unknown token rejects the WHOLE field + } + // ParseSPDXExpression dedupes by raw token, so "MIT OR mit" survives it + // as two tokens that fold to one id. Dedupe again after canonicalizing. + if seen[id] { + continue + } + seen[id] = true + out = append(out, id) + } + return out } diff --git a/license/license_test.go b/license/license_test.go index ce4c40c..c78ca0c 100644 --- a/license/license_test.go +++ b/license/license_test.go @@ -49,7 +49,7 @@ func TestNamesAndTypes(t *testing.T) { for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { assert.Equal(t, tc.wantNames, Names(tc.expression, tc.classifiers, tc.license)) - assert.Equal(t, tc.wantTypes, Types(tc.expression, tc.classifiers)) + assert.Equal(t, tc.wantTypes, Types(tc.expression, tc.classifiers, tc.license)) }) } } diff --git a/license/spdx_expression.go b/license/spdx_expression.go index facad6d..7df86e8 100644 --- a/license/spdx_expression.go +++ b/license/spdx_expression.go @@ -24,13 +24,27 @@ import ( // Note: Per SPDX spec, operators AND, OR, WITH are case-sensitive (must be uppercase). // This parser is lenient and accepts lowercase for compatibility with real-world usage. func ParseSPDXExpression(expr string) []string { + licenses, _ := parseSPDXExpressionParts(expr) + return licenses +} + +// parseSPDXExpressionParts is ParseSPDXExpression, additionally returning the +// exception identifiers that followed a WITH. +// +// The exceptions are not part of the public result -- an exception is not a +// license, and every caller that wants license ids wants them without it. They +// are surfaced for the one caller that must VALIDATE the whole expression: +// deriving types from a free-form field, where the exception is the difference +// between "MIT" and "MIT with restrictions" and dropping it unexamined would +// report a license the package did not grant. See typesFromLicenseText. +func parseSPDXExpressionParts(expr string) (licenses, exceptions []string) { if expr == "" { - return nil + return nil, nil } expr = strings.TrimSpace(expr) if expr == "" { - return nil + return nil, nil } tokens := tokenizeSPDX(expr) @@ -85,9 +99,10 @@ func tokenizeSPDX(expr string) []string { } // extractLicenseIdentifiers extracts license identifiers from tokens, -// filtering out operators (AND, OR, WITH) and exception identifiers. -func extractLicenseIdentifiers(tokens []string) []string { - var licenses []string +// filtering out operators (AND, OR, WITH). Exception identifiers -- the token +// after a WITH -- are returned separately rather than discarded, so that a +// caller validating an expression can see them. +func extractLicenseIdentifiers(tokens []string) (licenses, exceptions []string) { seen := make(map[string]bool) skipNext := false @@ -112,6 +127,7 @@ func extractLicenseIdentifiers(tokens []string) []string { if skipNext { skipNext = false + exceptions = append(exceptions, token) continue } @@ -135,5 +151,5 @@ func extractLicenseIdentifiers(tokens []string) []string { } } - return licenses + return licenses, exceptions } diff --git a/license/spdx_ids.go b/license/spdx_ids.go new file mode 100644 index 0000000..8aec518 --- /dev/null +++ b/license/spdx_ids.go @@ -0,0 +1,88 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + +package license + +import ( + _ "embed" + "encoding/json" + "fmt" + "strings" +) + +//go:embed data/spdx_licenses.json +var spdxLicenseIDsJSON []byte + +// spdxLicenseIDList is the shape of data/spdx_licenses.json. Only the fields +// read here are declared; the file also carries provenance keys for humans +// (see data/gen_spdx_licenses.py). +type spdxLicenseIDList struct { + // LicenseListVersion is the SPDX License List release the ids come from, + // e.g. "3.28.0". + LicenseListVersion string `json:"licenseListVersion"` + // LicenseIDs are the non-deprecated SPDX license identifiers, sorted. + LicenseIDs []string `json:"licenseIds"` + // LicenseExceptionIDs are the non-deprecated SPDX exception identifiers + // (the right-hand side of a WITH), sorted. + LicenseExceptionIDs []string `json:"licenseExceptionIds"` +} + +// spdxIDByFold maps a lowercased identifier to its canonical SPDX spelling. +// Folding is what lets `mit` resolve to `MIT`; the generator refuses to emit a +// pair of ids that differ only in case, so the fold is unambiguous. +var spdxIDByFold map[string]string + +// spdxExceptionByFold is the same table for exception identifiers. Exceptions +// are recognized, never returned: an exception is not a license type. +var spdxExceptionByFold map[string]struct{} + +func init() { + buildSPDXIDDB() +} + +func buildSPDXIDDB() { + var list spdxLicenseIDList + if err := json.Unmarshal(spdxLicenseIDsJSON, &list); err != nil { + panic(fmt.Sprintf("license: embedded spdx_licenses.json is malformed: %v", err)) + } + if len(list.LicenseIDs) == 0 || len(list.LicenseExceptionIDs) == 0 { + panic("license: embedded spdx_licenses.json carries no identifiers") + } + + spdxIDByFold = make(map[string]string, len(list.LicenseIDs)) + for _, id := range list.LicenseIDs { + // The Unknown sentinel must never be reachable through this table, or a + // free-form field spelling it would be laundered into a "detected" type + // indistinguishable from a real derivation. The generator drops such an + // id too; both guards are cheap and neither is allowed to be the only one. + if strings.EqualFold(id, LicenseUnknown) { + continue + } + spdxIDByFold[strings.ToLower(id)] = id + } + + spdxExceptionByFold = make(map[string]struct{}, len(list.LicenseExceptionIDs)) + for _, id := range list.LicenseExceptionIDs { + spdxExceptionByFold[strings.ToLower(id)] = struct{}{} + } +} + +// lookupSPDXID resolves s to its canonical SPDX license identifier, matching +// case-insensitively. ok is false when s is not a known, non-deprecated SPDX +// identifier. +// +// Only spellings SPDX publishes resolve. Aliases in common use -- "Apache 2.0", +// "MIT License", "BSD" -- deliberately do not: a table of aliases is a table of +// judgment calls about which text means which license, and getting one wrong +// attributes a license a package never granted. Callers must treat a false ok +// as "no answer", never as an invitation to guess. +func lookupSPDXID(s string) (string, bool) { + id, ok := spdxIDByFold[strings.ToLower(s)] + return id, ok +} + +// isSPDXException reports whether s is a known, non-deprecated SPDX license +// exception identifier, matching case-insensitively. +func isSPDXException(s string) bool { + _, ok := spdxExceptionByFold[strings.ToLower(s)] + return ok +} diff --git a/license/testdata/freeform_corpus.json b/license/testdata/freeform_corpus.json new file mode 100644 index 0000000..bec1afd --- /dev/null +++ b/license/testdata/freeform_corpus.json @@ -0,0 +1,1764 @@ +{ + "source": "bigquery-public-data.pypi.distribution_metadata, captured 2026-08-18", + "captured": "2026-08-18", + "coverage": "the 250 highest-volume of 17846 distinct free-form strings; 1533511 of 1745000 (name, version) pairs (87.9%)", + "notes": [ + "Real values of the legacy free-form `License:` field on PyPI, ranked by how many (name, version) pairs carry them, with the SPDX types Types() derives from each. This is a REGRESSION FIXTURE, not a specification: every non-Unknown row is a claim about a real package's license and must be reviewed by a human when it changes.", + "Rows longer than license.TextDumpMaxLen are excluded: they are license-text dumps, which the derivation refuses to tokenize at all. The in-code tests cover that case directly.", + "Over the WHOLE corpus (not just these rows) the derivation accepts 843695 of 1745000 versions (48.35%); these rows carry 836878 of those accepted versions.", + "`versions` is recorded so a reviewer can see what a row is worth. Nothing asserts on it." + ], + "cases": [ + { + "license": "MIT", + "versions": 600772, + "want": [ + "MIT" + ] + }, + { + "license": "Apache-2.0", + "versions": 167432, + "want": [ + "Apache-2.0" + ] + }, + { + "license": "UNKNOWN", + "versions": 69824, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache 2.0", + "versions": 63176, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache License 2.0", + "versions": 57107, + "want": [ + "Unknown" + ] + }, + { + "license": "BSD", + "versions": 44585, + "want": [ + "Unknown" + ] + }, + { + "license": "MIT License", + "versions": 40663, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL", + "versions": 31081, + "want": [ + "Unknown" + ] + }, + { + "license": "GPLv3", + "versions": 23697, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache 2", + "versions": 22314, + "want": [ + "Unknown" + ] + }, + { + "license": "Proprietary", + "versions": 19257, + "want": [ + "Unknown" + ] + }, + { + "license": "BSD-3-Clause", + "versions": 18546, + "want": [ + "BSD-3-Clause" + ] + }, + { + "license": "Apache License, Version 2.0", + "versions": 16170, + "want": [ + "Unknown" + ] + }, + { + "license": "GPLv2+", + "versions": 12789, + "want": [ + "Unknown" + ] + }, + { + "license": "LICENSE.txt", + "versions": 12434, + "want": [ + "Unknown" + ] + }, + { + "license": "MIT Licence", + "versions": 11551, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL-3.0", + "versions": 9769, + "want": [ + "Unknown" + ] + }, + { + "license": "LICENSE", + "versions": 9444, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache", + "versions": 9381, + "want": [ + "Unknown" + ] + }, + { + "license": "LGPL", + "versions": 8974, + "want": [ + "Unknown" + ] + }, + { + "license": "ASL", + "versions": 8356, + "want": [ + "Unknown" + ] + }, + { + "license": "AGPL-3.0", + "versions": 8223, + "want": [ + "Unknown" + ] + }, + { + "license": "BSD 3-Clause License", + "versions": 7172, + "want": [ + "Unknown" + ] + }, + { + "license": "mit", + "versions": 6922, + "want": [ + "MIT" + ] + }, + { + "license": "GPL-3.0-or-later", + "versions": 6845, + "want": [ + "GPL-3.0-or-later" + ] + }, + { + "license": "Apache License Version 2.0", + "versions": 6602, + "want": [ + "Unknown" + ] + }, + { + "license": "MIT license", + "versions": 6258, + "want": [ + "Unknown" + ] + }, + { + "license": "BSD License", + "versions": 5686, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache Software License", + "versions": 4924, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache License", + "versions": 4651, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL3", + "versions": 4597, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU General Public License v3.0", + "versions": 4514, + "want": [ + "Unknown" + ] + }, + { + "license": "BSD 3-Clause", + "versions": 3831, + "want": [ + "Unknown" + ] + }, + { + "license": "GPLv2", + "versions": 3748, + "want": [ + "Unknown" + ] + }, + { + "license": "MIT OR Apache-2.0", + "versions": 3732, + "want": [ + "MIT", + "Apache-2.0" + ] + }, + { + "license": "GNU GPLv3", + "versions": 3691, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU", + "versions": 3589, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL2", + "versions": 3346, + "want": [ + "Unknown" + ] + }, + { + "license": "GPLv3+", + "versions": 3205, + "want": [ + "Unknown" + ] + }, + { + "license": "apache-2.0", + "versions": 3122, + "want": [ + "Apache-2.0" + ] + }, + { + "license": "MPL-2.0", + "versions": 3070, + "want": [ + "MPL-2.0" + ] + }, + { + "license": "Apache Software License 2.0", + "versions": 2994, + "want": [ + "Unknown" + ] + }, + { + "license": "AGPL-3.0-or-later", + "versions": 2878, + "want": [ + "AGPL-3.0-or-later" + ] + }, + { + "license": "ISC", + "versions": 2848, + "want": [ + "ISC" + ] + }, + { + "license": "AGPL", + "versions": 2843, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL v3", + "versions": 2809, + "want": [ + "Unknown" + ] + }, + { + "license": "BSD 2-Clause License", + "versions": 2662, + "want": [ + "Unknown" + ] + }, + { + "license": "AGPLv3", + "versions": 2612, + "want": [ + "Unknown" + ] + }, + { + "license": "LGPLv3", + "versions": 2485, + "want": [ + "Unknown" + ] + }, + { + "license": "LGPL-3.0", + "versions": 2475, + "want": [ + "Unknown" + ] + }, + { + "license": "WTFPL", + "versions": 2427, + "want": [ + "WTFPL" + ] + }, + { + "license": "GPL-3.0-only", + "versions": 2292, + "want": [ + "GPL-3.0-only" + ] + }, + { + "license": "modified BSD", + "versions": 2259, + "want": [ + "Unknown" + ] + }, + { + "license": "The MIT License", + "versions": 2205, + "want": [ + "Unknown" + ] + }, + { + "license": "Creative Commons Attribution-Noncommercial-Share Alike license", + "versions": 2133, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache2", + "versions": 2067, + "want": [ + "Unknown" + ] + }, + { + "license": "BSD-3", + "versions": 2016, + "want": [ + "Unknown" + ] + }, + { + "license": "MPLv2", + "versions": 1934, + "want": [ + "Unknown" + ] + }, + { + "license": "apache 3.0", + "versions": 1856, + "want": [ + "Unknown" + ] + }, + { + "license": "BSD (3-clause)", + "versions": 1834, + "want": [ + "Unknown" + ] + }, + { + "license": "The MIT License (MIT)", + "versions": 1805, + "want": [ + "Unknown" + ] + }, + { + "license": "PSF", + "versions": 1755, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL3+", + "versions": 1742, + "want": [ + "Unknown" + ] + }, + { + "license": "LGPL-3.0-or-later", + "versions": 1734, + "want": [ + "LGPL-3.0-or-later" + ] + }, + { + "license": "ZPL 2.1", + "versions": 1632, + "want": [ + "Unknown" + ] + }, + { + "license": "Elastic-2.0", + "versions": 1590, + "want": [ + "Elastic-2.0" + ] + }, + { + "license": "Creative Commons Attribution-ShareAlike 4.0 International", + "versions": 1519, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU General Public License v2.0 or later", + "versions": 1519, + "want": [ + "Unknown" + ] + }, + { + "license": "PolyForm Shield License 1.0.0, https://polyformproject.org/wp-content/uploads/2020/06/PolyForm-Shield-1.0.0.txt", + "versions": 1515, + "want": [ + "Unknown" + ] + }, + { + "license": "CC0-1.0", + "versions": 1508, + "want": [ + "CC0-1.0" + ] + }, + { + "license": "GPL 3.0", + "versions": 1493, + "want": [ + "Unknown" + ] + }, + { + "license": "BSD 2-clause", + "versions": 1474, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache2.0", + "versions": 1469, + "want": [ + "Unknown" + ] + }, + { + "license": "All rights reserved", + "versions": 1458, + "want": [ + "Unknown" + ] + }, + { + "license": "AGPL-3.0-only", + "versions": 1433, + "want": [ + "AGPL-3.0-only" + ] + }, + { + "license": "BSD-2-Clause", + "versions": 1427, + "want": [ + "BSD-2-Clause" + ] + }, + { + "license": "BSD 3-clause", + "versions": 1425, + "want": [ + "Unknown" + ] + }, + { + "license": "LGPL v3", + "versions": 1421, + "want": [ + "Unknown" + ] + }, + { + "license": "Moderne Source Available License", + "versions": 1402, + "want": [ + "Unknown" + ] + }, + { + "license": "http://www.apache.org/licenses/LICENSE-2.0", + "versions": 1382, + "want": [ + "Unknown" + ] + }, + { + "license": "https://aka.ms/azureml-sdk-license", + "versions": 1368, + "want": [ + "Unknown" + ] + }, + { + "license": "Proprietary Software", + "versions": 1352, + "want": [ + "Unknown" + ] + }, + { + "license": "MIT/Apache-2.0", + "versions": 1341, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache-2", + "versions": 1318, + "want": [ + "Unknown" + ] + }, + { + "license": "BSD 2", + "versions": 1302, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache Software License (Apache-2.0)", + "versions": 1278, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL-2.0-or-later", + "versions": 1254, + "want": [ + "GPL-2.0-or-later" + ] + }, + { + "license": "Unlicense", + "versions": 1214, + "want": [ + "Unlicense" + ] + }, + { + "license": "ZPL", + "versions": 1214, + "want": [ + "Unknown" + ] + }, + { + "license": "License :: OSI Approved :: MIT License", + "versions": 1193, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache v2", + "versions": 1174, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL-3", + "versions": 1174, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU GPL v3", + "versions": 1133, + "want": [ + "Unknown" + ] + }, + { + "license": "MPL", + "versions": 1130, + "want": [ + "Unknown" + ] + }, + { + "license": "gpl", + "versions": 1127, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU General Public License v3 (GPLv3)", + "versions": 1088, + "want": [ + "Unknown" + ] + }, + { + "license": "MPL2", + "versions": 1087, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU Affero General Public License v3", + "versions": 1072, + "want": [ + "Unknown" + ] + }, + { + "license": "Public Domain", + "versions": 1066, + "want": [ + "Unknown" + ] + }, + { + "license": "BSD3", + "versions": 1033, + "want": [ + "Unknown" + ] + }, + { + "license": "Proprietary https://aka.ms/azureml-preview-sdk-license", + "versions": 1028, + "want": [ + "Unknown" + ] + }, + { + "license": "UNLICENSE", + "versions": 1016, + "want": [ + "Unlicense" + ] + }, + { + "license": "Apache 2.0 License", + "versions": 962, + "want": [ + "Unknown" + ] + }, + { + "license": "License :: OSI Approved :: Apache Software License", + "versions": 949, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache-2.0 license", + "versions": 935, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL-3.0 License", + "versions": 911, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU GENERAL PUBLIC LICENSE", + "versions": 909, + "want": [ + "Unknown" + ] + }, + { + "license": "Salure License", + "versions": 906, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU General Public License", + "versions": 903, + "want": [ + "Unknown" + ] + }, + { + "license": "MIT licence, see LICENCE.txt", + "versions": 902, + "want": [ + "Unknown" + ] + }, + { + "license": "TBD", + "versions": 883, + "want": [ + "Unknown" + ] + }, + { + "license": "BSL-1.1", + "versions": 849, + "want": [ + "Unknown" + ] + }, + { + "license": "UCSD", + "versions": 848, + "want": [ + "Unknown" + ] + }, + { + "license": "Commercial", + "versions": 845, + "want": [ + "Unknown" + ] + }, + { + "license": "LICENSE.md", + "versions": 831, + "want": [ + "Unknown" + ] + }, + { + "license": "General Public Licence 2", + "versions": 818, + "want": [ + "Unknown" + ] + }, + { + "license": "unlicensed", + "versions": 809, + "want": [ + "Unknown" + ] + }, + { + "license": "OSI Approved :: Apache Software License", + "versions": 803, + "want": [ + "Unknown" + ] + }, + { + "license": "MPL 2.0", + "versions": 795, + "want": [ + "Unknown" + ] + }, + { + "license": "EUPL-1.2", + "versions": 789, + "want": [ + "EUPL-1.2" + ] + }, + { + "license": "Apache License v2.0", + "versions": 788, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache-2.0 License", + "versions": 782, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL v2", + "versions": 775, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL-2.0", + "versions": 774, + "want": [ + "Unknown" + ] + }, + { + "license": "BSD-derived (http://www.repoze.org/LICENSE.txt)", + "versions": 772, + "want": [ + "Unknown" + ] + }, + { + "license": "Private", + "versions": 764, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache Software License (Apache 2.0)", + "versions": 760, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU Lesser General Public License v3 or later (LGPLv3+)", + "versions": 757, + "want": [ + "Unknown" + ] + }, + { + "license": "Other/Proprietary License", + "versions": 737, + "want": [ + "Unknown" + ] + }, + { + "license": "BrynQ License", + "versions": 735, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache License v2", + "versions": 732, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU Affero General Public License, version 3.0", + "versions": 710, + "want": [ + "Unknown" + ] + }, + { + "license": "MIT License, Apache License, Version 2.0", + "versions": 705, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU GPL", + "versions": 701, + "want": [ + "Unknown" + ] + }, + { + "license": "The Unlicense", + "versions": 693, + "want": [ + "Unknown" + ] + }, + { + "license": "None", + "versions": 675, + "want": [ + "Unknown" + ] + }, + { + "license": "Copyright (C) 2023, Greenroom Robotics", + "versions": 674, + "want": [ + "Unknown" + ] + }, + { + "license": "CC BY-NC-SA 4.0", + "versions": 671, + "want": [ + "Unknown" + ] + }, + { + "license": "LGPL2.1", + "versions": 668, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache License (2.0)", + "versions": 656, + "want": [ + "Unknown" + ] + }, + { + "license": "proprietary", + "versions": 649, + "want": [ + "Unknown" + ] + }, + { + "license": "APACHE", + "versions": 633, + "want": [ + "Unknown" + ] + }, + { + "license": "Closed source", + "versions": 626, + "want": [ + "Unknown" + ] + }, + { + "license": "Mozilla Public License 2.0", + "versions": 623, + "want": [ + "Unknown" + ] + }, + { + "license": "AGPLv3+", + "versions": 614, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU General Public License (GPL)", + "versions": 612, + "want": [ + "Unknown" + ] + }, + { + "license": "gpl-3.0", + "versions": 612, + "want": [ + "Unknown" + ] + }, + { + "license": "Affero General Public License v3", + "versions": 610, + "want": [ + "Unknown" + ] + }, + { + "license": "AGPL 3.0", + "versions": 607, + "want": [ + "Unknown" + ] + }, + { + "license": "\"MIT\"", + "versions": 585, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL 2", + "versions": 583, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache Licence 2.0", + "versions": 581, + "want": [ + "Unknown" + ] + }, + { + "license": "\"GPL-3.0\"", + "versions": 574, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL version 3", + "versions": 568, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL3.0", + "versions": 563, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU AFFERO GENERAL PUBLIC LICENSE", + "versions": 554, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL 3", + "versions": 554, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU General Public License v2.0", + "versions": 549, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL License", + "versions": 539, + "want": [ + "Unknown" + ] + }, + { + "license": "Mozilla Public License Version 2.0 with Commons Clause", + "versions": 539, + "want": [ + "Unknown" + ] + }, + { + "license": "CeCILL-B", + "versions": 538, + "want": [ + "CECILL-B" + ] + }, + { + "license": "GPL-3.0 license", + "versions": 532, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU GENERAL PUBLIC LICENSE Version 3", + "versions": 523, + "want": [ + "Unknown" + ] + }, + { + "license": "EULA", + "versions": 521, + "want": [ + "Unknown" + ] + }, + { + "license": "LGPLv2+", + "versions": 513, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL V3", + "versions": 509, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU General Public License v3", + "versions": 508, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU General Public License (GPL) v3 or later", + "versions": 507, + "want": [ + "Unknown" + ] + }, + { + "license": "CeCILL v2", + "versions": 505, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU Affero General Public License v3.0", + "versions": 491, + "want": [ + "Unknown" + ] + }, + { + "license": "LGPL-3.0-ONLY", + "versions": 487, + "want": [ + "LGPL-3.0-only" + ] + }, + { + "license": "Apache licensed, as found in the LICENSE file", + "versions": 481, + "want": [ + "Unknown" + ] + }, + { + "license": "LGPL-2.1", + "versions": 481, + "want": [ + "Unknown" + ] + }, + { + "license": "LicenseRef-Proprietary", + "versions": 480, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL v3.0", + "versions": 472, + "want": [ + "Unknown" + ] + }, + { + "license": "Custom Proprietary License", + "versions": 471, + "want": [ + "Unknown" + ] + }, + { + "license": "Proprietary - IntelliStream", + "versions": 469, + "want": [ + "Unknown" + ] + }, + { + "license": "UNLICENSED", + "versions": 468, + "want": [ + "Unknown" + ] + }, + { + "license": "CC0", + "versions": 467, + "want": [ + "Unknown" + ] + }, + { + "license": " Copyright 2021 Datalogue, Inc.", + "versions": 462, + "want": [ + "Unknown" + ] + }, + { + "license": "LGPLv3+", + "versions": 460, + "want": [ + "Unknown" + ] + }, + { + "license": "http://www.fsf.org/licensing/licenses/agpl-3.0.html", + "versions": 458, + "want": [ + "Unknown" + ] + }, + { + "license": "BSD 2-Clause", + "versions": 456, + "want": [ + "Unknown" + ] + }, + { + "license": "Free for non-commercial use", + "versions": 456, + "want": [ + "Unknown" + ] + }, + { + "license": "CC-BY-NC-4.0", + "versions": 453, + "want": [ + "CC-BY-NC-4.0" + ] + }, + { + "license": "New BSD", + "versions": 447, + "want": [ + "Unknown" + ] + }, + { + "license": "BSD 3", + "versions": 436, + "want": [ + "Unknown" + ] + }, + { + "license": "BSD-2", + "versions": 429, + "want": [ + "Unknown" + ] + }, + { + "license": "Mozilla Public License Version 2.0", + "versions": 427, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU LGPL", + "versions": 417, + "want": [ + "Unknown" + ] + }, + { + "license": "Non-commercial use only with mandatory attribution", + "versions": 417, + "want": [ + "Unknown" + ] + }, + { + "license": "Quarch Technology ltd", + "versions": 409, + "want": [ + "Unknown" + ] + }, + { + "license": "EUPL 1.2", + "versions": 398, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache Licence", + "versions": 394, + "want": [ + "Unknown" + ] + }, + { + "license": "Non commercial", + "versions": 392, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU AGPLv3", + "versions": 390, + "want": [ + "Unknown" + ] + }, + { + "license": "License GPL-2", + "versions": 388, + "want": [ + "Unknown" + ] + }, + { + "license": "CC-BY-NC-SA-4.0", + "versions": 387, + "want": [ + "CC-BY-NC-SA-4.0" + ] + }, + { + "license": "All Rights Reserved", + "versions": 382, + "want": [ + "Unknown" + ] + }, + { + "license": ": OSI Approved :: MIT License", + "versions": 381, + "want": [ + "Unknown" + ] + }, + { + "license": "CC BY-SA 4.0", + "versions": 380, + "want": [ + "Unknown" + ] + }, + { + "license": "ASL 2.0", + "versions": 379, + "want": [ + "Unknown" + ] + }, + { + "license": "New BSD License", + "versions": 370, + "want": [ + "Unknown" + ] + }, + { + "license": "CC0 1.0 Universal", + "versions": 369, + "want": [ + "Unknown" + ] + }, + { + "license": "Eclipse Public License - v1.0", + "versions": 364, + "want": [ + "Unknown" + ] + }, + { + "license": "License :: OSI Approved :: BSD License", + "versions": 362, + "want": [ + "Unknown" + ] + }, + { + "license": "Applitools SDK License", + "versions": 358, + "want": [ + "Unknown" + ] + }, + { + "license": "LICENSE.BSD3", + "versions": 351, + "want": [ + "Unknown" + ] + }, + { + "license": "Public domain", + "versions": 349, + "want": [ + "Unknown" + ] + }, + { + "license": "apache2", + "versions": 346, + "want": [ + "Unknown" + ] + }, + { + "license": " Copyright 2021 Datalogue, Inc. This Datalogue SDK is licensed solely pursuant to the terms of the Master Software License executed between you as Licensee and Datalogue, Inc. All rights reserved. ", + "versions": 345, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache License V2.0", + "versions": 344, + "want": [ + "Unknown" + ] + }, + { + "license": "MIT-0", + "versions": 343, + "want": [ + "MIT-0" + ] + }, + { + "license": "cc-by-sa-4.0", + "versions": 343, + "want": [ + "CC-BY-SA-4.0" + ] + }, + { + "license": "PROPRIETARY", + "versions": 341, + "want": [ + "Unknown" + ] + }, + { + "license": "Python Software Foundation License", + "versions": 341, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU Library or Lesser General Public License (LGPL)", + "versions": 340, + "want": [ + "Unknown" + ] + }, + { + "license": "BSD-3-CLAUSE", + "versions": 338, + "want": [ + "BSD-3-Clause" + ] + }, + { + "license": "Python", + "versions": 338, + "want": [ + "Unknown" + ] + }, + { + "license": "3-clause BSD", + "versions": 332, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache v2.0", + "versions": 328, + "want": [ + "Unknown" + ] + }, + { + "license": "https://pypi.org/project/spiderx/", + "versions": 328, + "want": [ + "Unknown" + ] + }, + { + "license": "3-Clause BSD", + "versions": 324, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache 2 License", + "versions": 321, + "want": [ + "Unknown" + ] + }, + { + "license": "MMB License v1.0", + "versions": 321, + "want": [ + "Unknown" + ] + }, + { + "license": "NVIDIA Proprietary Software", + "versions": 321, + "want": [ + "Unknown" + ] + }, + { + "license": "Proprietary - Arcade Software License Agreement v1.0", + "versions": 318, + "want": [ + "Unknown" + ] + }, + { + "license": "none", + "versions": 316, + "want": [ + "Unknown" + ] + }, + { + "license": "GNUv3", + "versions": 312, + "want": [ + "Unknown" + ] + }, + { + "license": "CC-NC-ND", + "versions": 308, + "want": [ + "Unknown" + ] + }, + { + "license": "CC-BY-4.0", + "versions": 302, + "want": [ + "CC-BY-4.0" + ] + }, + { + "license": "GNU General Public License Version 3", + "versions": 302, + "want": [ + "Unknown" + ] + }, + { + "license": "MIT LICENSE", + "versions": 302, + "want": [ + "Unknown" + ] + }, + { + "license": "LGPL 2.1", + "versions": 294, + "want": [ + "Unknown" + ] + }, + { + "license": "BSD-3-Clause License", + "versions": 293, + "want": [ + "Unknown" + ] + }, + { + "license": "3 Clause BSD", + "versions": 291, + "want": [ + "Unknown" + ] + }, + { + "license": "CC BY-NC 4.0", + "versions": 290, + "want": [ + "Unknown" + ] + }, + { + "license": "Cisco End User License Agreement", + "versions": 290, + "want": [ + "Unknown" + ] + }, + { + "license": "LGPL3", + "versions": 286, + "want": [ + "Unknown" + ] + }, + { + "license": "Copyright © 2025 Frontmatter. All rights reserved.", + "versions": 284, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL v3 or later", + "versions": 283, + "want": [ + "Unknown" + ] + }, + { + "license": "LGPLv2", + "versions": 283, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL-2.0-only", + "versions": 282, + "want": [ + "GPL-2.0-only" + ] + }, + { + "license": "0BSD", + "versions": 279, + "want": [ + "0BSD" + ] + }, + { + "license": "new BSD", + "versions": 279, + "want": [ + "Unknown" + ] + }, + { + "license": "GNU Affero General Public License (AGPL) version 3.0", + "versions": 278, + "want": [ + "Unknown" + ] + }, + { + "license": "Apache License Version 2.0, January 2004 http://www.apache.org/licenses/", + "versions": 277, + "want": [ + "Unknown" + ] + }, + { + "license": "DSB 3-clause", + "versions": 277, + "want": [ + "Unknown" + ] + }, + { + "license": "GPL2.0", + "versions": 277, + "want": [ + "Unknown" + ] + }, + { + "license": "LGPL-3.0-only", + "versions": 275, + "want": [ + "LGPL-3.0-only" + ] + } + ] +} From 676399fbe1e2d0f13a0e469a84f399de3ce6c3c7 Mon Sep 17 00:00:00 2001 From: Jonathan Yoder Date: Tue, 18 Aug 2026 19:07:06 -0400 Subject: [PATCH 2/2] license: do not let the free-form field overrule a classifier Review found a wrong-license attribution reachable from real PyPI metadata: a package whose only structured declaration was "License :: Other/Proprietary License" derived to MIT if its free-form License field said MIT. StandardizeLicensePyPIClassifiers collapses the 17 classifiers SPDX has no identifier for to Unknown, so an unmappable classifier arrived at the free-form tier looking identical to a package that declared nothing. But such a classifier still says something, and "proprietary" in particular says the opposite of what the free-form string claimed. Suppress the tier on the presence of any License:: classifier rather than on the value it mapped to. The bare "License :: OSI Approved" umbrella still does not count, matching how the classifier tier already treats it. This costs nothing on the measured population: the corpus selects versions whose only license signal is the free-form field, so it contains no License:: classifiers at all, and the accept rate is unchanged at 48.35%. Also correct two overclaims the review flagged. The strict token rule stops an UNRECOGNIZED token from producing a license; it does not guarantee a recognized token was meant as an identifier, since SPDX publishes ~120 single-word ids including company names. Measured, that residual is 5 of 843,695 resolving versions. And the deprecated-id check is scoped to the free-form tier; License-Expression still passes through unvalidated. Rekey the corpus fixture on what RESOLVES rather than what is frequent. All 278 resolving strings are now covered, plus the 60 highest-volume rejections as anchors. Sampling by volume omitted the entire tail, which is exactly where the single-word risk lives. --- CHANGELOG.md | 30 +- license/freeform_test.go | 28 + license/license.go | 40 +- license/testdata/freeform_corpus.json | 2241 +++++++++++++++++-------- 4 files changed, 1629 insertions(+), 710 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e755be2..28c9079 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,9 +24,20 @@ mistaken for a safe patch upgrade. The tier is deliberately strict: **one unrecognized token rejects the whole field.** The field resolves only when it is itself a published, non-deprecated SPDX identifier, or an SPDX expression whose every identifier is one. That is - what makes it impossible to invent a license here — `3-Clause BSD License` - tokenizes to `3-Clause` / `BSD` / `License`, and accepting the plausible part - would attribute `BSD-3-Clause` to a package on the strength of a word. + what stops an unrecognized token from producing a license — `3-Clause BSD + License` tokenizes to `3-Clause` / `BSD` / `License`, and accepting the + plausible part would attribute `BSD-3-Clause` to a package on the strength of + a word. It is not a guarantee that a recognized token was *meant* as an + identifier: SPDX publishes around 120 single-word identifiers, some of them + ordinary words or company names, so a package whose `License` field reads + `Intel` resolves to the Intel Open Source License. + + The tier is also suppressed entirely when the package carries any + `License ::` classifier, including one SPDX has no identifier for. Such a + classifier still says something — `License :: Other/Proprietary License` is a + positive statement — and it would otherwise reach this tier looking identical + to a package that declared nothing, letting a stray free-form `MIT` overrule + it. The rule settles the ambiguous spellings without anyone adjudicating them. Bare `GPL` and `GPLv3` are not identifiers, so they are rejected rather than @@ -45,11 +56,16 @@ mistaken for a safe patch upgrade. rejections are `UNKNOWN` (69,824), `Apache 2.0` (63,176), `Apache License 2.0` (57,107), `BSD` (44,585) and `MIT License` (40,663). -- `license`: SPDX identifiers are now checked against the published SPDX +- `license`: the free-form tier checks identifiers against the published SPDX License List (`license/data/spdx_licenses.json`, generated by - `license/data/gen_spdx_licenses.py`) rather than an ad hoc set. Deprecated - identifiers are excluded, so `GPL-3.0` and `AGPL-3.0` do not resolve — they - are ambiguous between the `-only` and `-or-later` forms that replaced them. + `license/data/gen_spdx_licenses.py`). Deprecated identifiers are excluded, so + a free-form `GPL-3.0` or `AGPL-3.0` does not resolve — both are ambiguous + between the `-only` and `-or-later` forms that replaced them. + + ⚠️ This check is scoped to the free-form tier. `License-Expression` is still + passed through without validation, so the same string resolves there. Making + the two agree is a larger behavior change and is deliberately not in this + release. ## [0.7.0] - 2026-08-14 diff --git a/license/freeform_test.go b/license/freeform_test.go index db3229f..175bfbb 100644 --- a/license/freeform_test.go +++ b/license/freeform_test.go @@ -169,6 +169,34 @@ func TestTypesFreeformTierIsLast(t *testing.T) { assert.Equal(t, []string{"BSD-3-Clause"}, got) }) + // A classifier SPDX has no identifier for still says something. It reaches + // the free-form tier looking identical to a package that declared nothing, + // because both collapse to Unknown -- so the tier must be suppressed by the + // presence of the classifier, not by the value it mapped to. + t.Run("unmappable-classifier-still-suppresses-freeform", func(t *testing.T) { + for _, classifier := range []string{ + "License :: Other/Proprietary License", + "License :: Free for non-commercial use", + "License :: Free To Use But Restricted", + "License :: Free For Home Use", + "License :: Freeware", + // Open source, but the version is ambiguous, so it does not map. + // A free-form MIT here contradicts the classifier just as plainly. + "License :: OSI Approved :: GNU General Public License (GPL)", + } { + got := Types("", []string{classifier}, "MIT") + assert.Equal(t, []string{LicenseUnknown}, got, + "%q must not be overruled by a free-form MIT", classifier) + } + }) + + // The bare umbrella names no license, so it is a missing declaration rather + // than an unknown one, and must not suppress the tier. + t.Run("bare-osi-umbrella-does-not-suppress-freeform", func(t *testing.T) { + got := Types("", []string{"License :: OSI Approved"}, "MIT") + assert.Equal(t, []string{"MIT"}, got) + }) + t.Run("freeform-runs-when-nothing-structured", func(t *testing.T) { assert.Equal(t, []string{"MIT"}, Types("", nil, "MIT")) }) diff --git a/license/license.go b/license/license.go index f8808c6..da52965 100644 --- a/license/license.go +++ b/license/license.go @@ -60,9 +60,20 @@ func Types(expression string, classifiers []string, license string) []string { if !isUnknownTypes(types) { return types } - // Priority 3: the legacy freeform License field, when it is unambiguous - if fromText := typesFromLicenseText(license); len(fromText) > 0 { - return fromText + // Priority 3: the legacy freeform License field, when it is unambiguous. + // + // Only when the package declared nothing structured at all. A classifier + // that SPDX has no identifier for still SAYS something -- "License :: + // Other/Proprietary License" is a positive statement that the package is + // proprietary -- and it reaches this point looking identical to a package + // that declared no license, because both collapse to Unknown. Consulting + // the free-form field there would let a stray "MIT" overrule an explicit + // declaration to the contrary, which is the one outcome this derivation + // must never produce. + if !declaresLicenseClassifier(classifiers) { + if fromText := typesFromLicenseText(license); len(fromText) > 0 { + return fromText + } } // Priority 4: unknown, as returned by the classifier tier return types @@ -77,6 +88,21 @@ func isUnknownTypes(types []string) bool { return len(types) == 1 && types[0] == LicenseUnknown } +// declaresLicenseClassifier reports whether the package carries a "License ::" +// classifier that says something about its license. +// +// The bare "License :: OSI Approved" umbrella does not count: it names no +// license, and StandardizeLicensePyPIClassifiers already treats it as a missing +// declaration rather than an unknown one. +func declaresLicenseClassifier(classifiers []string) bool { + for _, name := range GetLicensesFromPyPIClassifiers(classifiers) { + if name != "OSI Approved" { + return true + } + } + return false +} + // typesFromLicenseText returns SPDX ids derived from the legacy free-form // License field, or nil when the text cannot be resolved to KNOWN ids. // @@ -85,7 +111,13 @@ func isUnknownTypes(types []string) bool { // OUT of Unknown and never onto a wrong id. // // ⚠️ The governing rule is that ONE unrecognized token rejects the WHOLE field. -// That is what makes it impossible to invent a license here. ParseSPDXExpression +// That is what makes it impossible to derive a license from an UNRECOGNIZED +// token. It is not a guarantee that a recognized token was meant as an SPDX +// identifier: SPDX publishes ~120 single-word identifiers, several of which are +// ordinary words or company names, so a package from Intel whose License field +// reads "Intel" resolves to the Intel Open Source License. Widening what counts +// as recognized widens that exposure; weigh it against the volume the widening +// actually buys. ParseSPDXExpression // does not validate -- it strips operators and hands back whatever tokens are // left -- so "3-Clause BSD License" tokenizes to `3-Clause` / `BSD` / `License`, // and accepting the recognizable-looking part of that would attribute BSD-3-Clause diff --git a/license/testdata/freeform_corpus.json b/license/testdata/freeform_corpus.json index bec1afd..5481e3a 100644 --- a/license/testdata/freeform_corpus.json +++ b/license/testdata/freeform_corpus.json @@ -1,13 +1,5 @@ { - "source": "bigquery-public-data.pypi.distribution_metadata, captured 2026-08-18", "captured": "2026-08-18", - "coverage": "the 250 highest-volume of 17846 distinct free-form strings; 1533511 of 1745000 (name, version) pairs (87.9%)", - "notes": [ - "Real values of the legacy free-form `License:` field on PyPI, ranked by how many (name, version) pairs carry them, with the SPDX types Types() derives from each. This is a REGRESSION FIXTURE, not a specification: every non-Unknown row is a claim about a real package's license and must be reviewed by a human when it changes.", - "Rows longer than license.TextDumpMaxLen are excluded: they are license-text dumps, which the derivation refuses to tokenize at all. The in-code tests cover that case directly.", - "Over the WHOLE corpus (not just these rows) the derivation accepts 843695 of 1745000 versions (48.35%); these rows carry 836878 of those accepted versions.", - "`versions` is recorded so a reviewer can see what a row is worth. Nothing asserts on it." - ], "cases": [ { "license": "MIT", @@ -24,1741 +16,2592 @@ ] }, { - "license": "UNKNOWN", - "versions": 69824, + "license": "BSD-3-Clause", + "versions": 18546, "want": [ - "Unknown" + "BSD-3-Clause" ] }, { - "license": "Apache 2.0", - "versions": 63176, + "license": "mit", + "versions": 6922, "want": [ - "Unknown" + "MIT" ] }, { - "license": "Apache License 2.0", - "versions": 57107, + "license": "GPL-3.0-or-later", + "versions": 6845, "want": [ - "Unknown" + "GPL-3.0-or-later" ] }, { - "license": "BSD", - "versions": 44585, + "license": "MIT OR Apache-2.0", + "versions": 3732, "want": [ - "Unknown" + "MIT", + "Apache-2.0" ] }, { - "license": "MIT License", - "versions": 40663, + "license": "apache-2.0", + "versions": 3122, "want": [ - "Unknown" + "Apache-2.0" ] }, { - "license": "GPL", - "versions": 31081, + "license": "MPL-2.0", + "versions": 3070, "want": [ - "Unknown" + "MPL-2.0" ] }, { - "license": "GPLv3", - "versions": 23697, + "license": "AGPL-3.0-or-later", + "versions": 2878, "want": [ - "Unknown" + "AGPL-3.0-or-later" ] }, { - "license": "Apache 2", - "versions": 22314, + "license": "ISC", + "versions": 2848, "want": [ - "Unknown" + "ISC" ] }, { - "license": "Proprietary", - "versions": 19257, + "license": "WTFPL", + "versions": 2427, "want": [ - "Unknown" + "WTFPL" ] }, { - "license": "BSD-3-Clause", - "versions": 18546, + "license": "GPL-3.0-only", + "versions": 2292, + "want": [ + "GPL-3.0-only" + ] + }, + { + "license": "LGPL-3.0-or-later", + "versions": 1734, + "want": [ + "LGPL-3.0-or-later" + ] + }, + { + "license": "Elastic-2.0", + "versions": 1590, + "want": [ + "Elastic-2.0" + ] + }, + { + "license": "CC0-1.0", + "versions": 1508, + "want": [ + "CC0-1.0" + ] + }, + { + "license": "AGPL-3.0-only", + "versions": 1433, + "want": [ + "AGPL-3.0-only" + ] + }, + { + "license": "BSD-2-Clause", + "versions": 1427, + "want": [ + "BSD-2-Clause" + ] + }, + { + "license": "GPL-2.0-or-later", + "versions": 1254, + "want": [ + "GPL-2.0-or-later" + ] + }, + { + "license": "Unlicense", + "versions": 1214, + "want": [ + "Unlicense" + ] + }, + { + "license": "UNLICENSE", + "versions": 1016, + "want": [ + "Unlicense" + ] + }, + { + "license": "EUPL-1.2", + "versions": 789, + "want": [ + "EUPL-1.2" + ] + }, + { + "license": "CeCILL-B", + "versions": 538, + "want": [ + "CECILL-B" + ] + }, + { + "license": "LGPL-3.0-ONLY", + "versions": 487, + "want": [ + "LGPL-3.0-only" + ] + }, + { + "license": "CC-BY-NC-4.0", + "versions": 453, + "want": [ + "CC-BY-NC-4.0" + ] + }, + { + "license": "CC-BY-NC-SA-4.0", + "versions": 387, + "want": [ + "CC-BY-NC-SA-4.0" + ] + }, + { + "license": "cc-by-sa-4.0", + "versions": 343, + "want": [ + "CC-BY-SA-4.0" + ] + }, + { + "license": "MIT-0", + "versions": 343, + "want": [ + "MIT-0" + ] + }, + { + "license": "BSD-3-CLAUSE", + "versions": 338, "want": [ "BSD-3-Clause" ] }, { - "license": "Apache License, Version 2.0", - "versions": 16170, + "license": "CC-BY-4.0", + "versions": 302, "want": [ - "Unknown" + "CC-BY-4.0" ] }, { - "license": "GPLv2+", - "versions": 12789, + "license": "GPL-2.0-only", + "versions": 282, "want": [ - "Unknown" + "GPL-2.0-only" ] }, { - "license": "LICENSE.txt", - "versions": 12434, + "license": "0BSD", + "versions": 279, "want": [ - "Unknown" + "0BSD" ] }, { - "license": "MIT Licence", - "versions": 11551, + "license": "LGPL-3.0-only", + "versions": 275, "want": [ - "Unknown" + "LGPL-3.0-only" ] }, { - "license": "GPL-3.0", - "versions": 9769, + "license": "unlicense", + "versions": 271, "want": [ - "Unknown" + "Unlicense" ] }, { - "license": "LICENSE", - "versions": 9444, + "license": "Apache-2.0 AND Apache-2.0 with LLVM-exception AND MIT AND Unicode-DFS-2016 AND BSD-2-Clause AND BSD-3-CLause", + "versions": 268, "want": [ - "Unknown" + "Apache-2.0", + "MIT", + "Unicode-DFS-2016", + "BSD-2-Clause", + "BSD-3-Clause" ] }, { - "license": "Apache", - "versions": 9381, + "license": "BSD-3-Clause-LBNL", + "versions": 238, "want": [ - "Unknown" + "BSD-3-Clause-LBNL" ] }, { - "license": "LGPL", - "versions": 8974, + "license": "bsd-3-clause", + "versions": 232, "want": [ - "Unknown" + "BSD-3-Clause" ] }, { - "license": "ASL", - "versions": 8356, + "license": "LGPL-2.1-or-later", + "versions": 227, "want": [ - "Unknown" + "LGPL-2.1-or-later" ] }, { - "license": "AGPL-3.0", - "versions": 8223, + "license": "Apache-2.0 WITH LLVM-exception", + "versions": 189, "want": [ - "Unknown" + "Apache-2.0" ] }, { - "license": "BSD 3-Clause License", - "versions": 7172, + "license": "wtfpl", + "versions": 181, "want": [ - "Unknown" + "WTFPL" ] }, { - "license": "mit", - "versions": 6922, + "license": "BUSL-1.1", + "versions": 164, + "want": [ + "BUSL-1.1" + ] + }, + { + "license": "PolyForm-Noncommercial-1.0.0", + "versions": 163, "want": [ + "PolyForm-Noncommercial-1.0.0" + ] + }, + { + "license": "Apache-2.0 OR MIT", + "versions": 159, + "want": [ + "Apache-2.0", "MIT" ] }, { - "license": "GPL-3.0-or-later", - "versions": 6845, + "license": "Beerware", + "versions": 151, "want": [ - "GPL-3.0-or-later" + "Beerware" ] }, { - "license": "Apache License Version 2.0", - "versions": 6602, + "license": "BSD-3-Clause-Clear", + "versions": 142, "want": [ - "Unknown" + "BSD-3-Clause-Clear" ] }, { - "license": "MIT license", - "versions": 6258, + "license": "PostgreSQL", + "versions": 139, "want": [ - "Unknown" + "PostgreSQL" ] }, { - "license": "BSD License", - "versions": 5686, + "license": "bsd-3-clause-clear", + "versions": 138, + "want": [ + "BSD-3-Clause-Clear" + ] + }, + { + "license": "CPAL-1.0", + "versions": 136, + "want": [ + "CPAL-1.0" + ] + }, + { + "license": "BSD-4-Clause", + "versions": 130, + "want": [ + "BSD-4-Clause" + ] + }, + { + "license": "MulanPSL-2.0", + "versions": 119, + "want": [ + "MulanPSL-2.0" + ] + }, + { + "license": "CeCILL-C", + "versions": 113, + "want": [ + "CECILL-C" + ] + }, + { + "license": "CeCILL-2.1", + "versions": 109, + "want": [ + "CECILL-2.1" + ] + }, + { + "license": "osl-3.0", + "versions": 107, + "want": [ + "OSL-3.0" + ] + }, + { + "license": "zlib", + "versions": 101, + "want": [ + "Zlib" + ] + }, + { + "license": "CECILL-C", + "versions": 100, + "want": [ + "CECILL-C" + ] + }, + { + "license": "AGPL-3.0+", + "versions": 98, + "want": [ + "AGPL-3.0-or-later" + ] + }, + { + "license": "GPL-3.0+", + "versions": 96, + "want": [ + "GPL-3.0-or-later" + ] + }, + { + "license": "MIT AND (Apache-2.0 OR BSD-2-Clause)", + "versions": 93, + "want": [ + "MIT", + "Apache-2.0", + "BSD-2-Clause" + ] + }, + { + "license": "BSD-3-clause", + "versions": 89, + "want": [ + "BSD-3-Clause" + ] + }, + { + "license": "CC-BY-SA-4.0", + "versions": 88, + "want": [ + "CC-BY-SA-4.0" + ] + }, + { + "license": "Apache-2.0 or BSD-3-Clause", + "versions": 86, + "want": [ + "Apache-2.0", + "BSD-3-Clause" + ] + }, + { + "license": "Apache-2.0 AND Apache-2.0 with LLVM-exception AND MIT AND Unicode-DFS-2016 AND\n\tBSD-2-Clause AND BSD-3-CLause", + "versions": 85, + "want": [ + "Apache-2.0", + "MIT", + "Unicode-DFS-2016", + "BSD-2-Clause", + "BSD-3-Clause" + ] + }, + { + "license": "NPOSL-3.0", + "versions": 83, + "want": [ + "NPOSL-3.0" + ] + }, + { + "license": "EPL-2.0", + "versions": 76, + "want": [ + "EPL-2.0" + ] + }, + { + "license": "LGPL-2.1-only", + "versions": 76, + "want": [ + "LGPL-2.1-only" + ] + }, + { + "license": "CC-BY-NC-ND-4.0", + "versions": 74, + "want": [ + "CC-BY-NC-ND-4.0" + ] + }, + { + "license": "CECILL-2.1", + "versions": 73, + "want": [ + "CECILL-2.1" + ] + }, + { + "license": "FSL-1.1-MIT", + "versions": 70, + "want": [ + "FSL-1.1-MIT" + ] + }, + { + "license": "APACHE-2.0", + "versions": 69, + "want": [ + "Apache-2.0" + ] + }, + { + "license": "LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only", + "versions": 60, + "want": [ + "LGPL-3.0-only", + "GPL-2.0-only", + "GPL-3.0-only" + ] + }, + { + "license": "LGPL-2.1+", + "versions": 58, + "want": [ + "LGPL-2.1-or-later" + ] + }, + { + "license": "cc-by-4.0", + "versions": 52, + "want": [ + "CC-BY-4.0" + ] + }, + { + "license": "Apache-2.0 AND CC-BY-SA-4.0", + "versions": 52, + "want": [ + "Apache-2.0", + "CC-BY-SA-4.0" + ] + }, + { + "license": "Apache-2.0 with LLVM-exception", + "versions": 50, + "want": [ + "Apache-2.0" + ] + }, + { + "license": "AFL-3.0", + "versions": 46, + "want": [ + "AFL-3.0" + ] + }, + { + "license": "BlueOak-1.0.0", + "versions": 42, + "want": [ + "BlueOak-1.0.0" + ] + }, + { + "license": "Apache-2.0 AND MIT", + "versions": 39, + "want": [ + "Apache-2.0", + "MIT" + ] + }, + { + "license": "Apache-2.0 OR BSD-3-Clause", + "versions": 38, + "want": [ + "Apache-2.0", + "BSD-3-Clause" + ] + }, + { + "license": "Apache-2.0 AND BSD-3-Clause AND MIT", + "versions": 36, + "want": [ + "Apache-2.0", + "BSD-3-Clause", + "MIT" + ] + }, + { + "license": "Cecill-B", + "versions": 36, + "want": [ + "CECILL-B" + ] + }, + { + "license": "BEERWARE", + "versions": 35, + "want": [ + "Beerware" + ] + }, + { + "license": "GPL-2.0+", + "versions": 35, + "want": [ + "GPL-2.0-or-later" + ] + }, + { + "license": "LGPL-2.0-or-later", + "versions": 35, + "want": [ + "LGPL-2.0-or-later" + ] + }, + { + "license": "libpng", + "versions": 34, + "want": [ + "Libpng" + ] + }, + { + "license": "MIT AND Apache-2.0", + "versions": 34, + "want": [ + "MIT", + "Apache-2.0" + ] + }, + { + "license": "Cecill-C", + "versions": 33, + "want": [ + "CECILL-C" + ] + }, + { + "license": "PSF-2.0", + "versions": 33, + "want": [ + "PSF-2.0" + ] + }, + { + "license": "MPL-2.0 and MIT and BSD-3-Clause", + "versions": 32, + "want": [ + "MPL-2.0", + "MIT", + "BSD-3-Clause" + ] + }, + { + "license": "Unlicense OR AGPL-3.0-or-later OR GPL-2.0-or-later OR BSD-4-Clause OR MIT OR Apache-2.0 ", + "versions": 32, + "want": [ + "Unlicense", + "AGPL-3.0-or-later", + "GPL-2.0-or-later", + "BSD-4-Clause", + "MIT", + "Apache-2.0" + ] + }, + { + "license": "SSPL-1.0", + "versions": 31, + "want": [ + "SSPL-1.0" + ] + }, + { + "license": "FSL-1.1-ALv2", + "versions": 29, + "want": [ + "FSL-1.1-ALv2" + ] + }, + { + "license": "EPL-1.0", + "versions": 28, + "want": [ + "EPL-1.0" + ] + }, + { + "license": "Unlicense OR GPL-2.0-or-later OR MIT OR Apache-2.0 OR BSD-2-Clause OR BSD-3-Clause OR BSD-4-Clause ", + "versions": 27, + "want": [ + "Unlicense", + "GPL-2.0-or-later", + "MIT", + "Apache-2.0", + "BSD-2-Clause", + "BSD-3-Clause", + "BSD-4-Clause" + ] + }, + { + "license": "X11", + "versions": 27, + "want": [ + "X11" + ] + }, + { + "license": "Artistic-2.0", + "versions": 27, + "want": [ + "Artistic-2.0" + ] + }, + { + "license": "Apache-2.0 AND Apache-2.0 with LLVM-exception AND MIT AND Unicode-DFS-2016", + "versions": 26, + "want": [ + "Apache-2.0", + "MIT", + "Unicode-DFS-2016" + ] + }, + { + "license": "CC0-1.0 OR Apache-2.0", + "versions": 26, + "want": [ + "CC0-1.0", + "Apache-2.0" + ] + }, + { + "license": "EUPL-1.1", + "versions": 25, + "want": [ + "EUPL-1.1" + ] + }, + { + "license": "Apache-2.0 OR BSD-2-Clause", + "versions": 24, + "want": [ + "Apache-2.0", + "BSD-2-Clause" + ] + }, + { + "license": "0BSD AND Apache-2.0 WITH LLVM-exception", + "versions": 23, + "want": [ + "0BSD", + "Apache-2.0" + ] + }, + { + "license": "mpl-2.0", + "versions": 23, + "want": [ + "MPL-2.0" + ] + }, + { + "license": "Unlicense OR GPL-2.0-or-later OR MIT OR Apache-2.0 OR BSD-2-Clause OR BSD-3-Clause OR BSD-4-Clause", + "versions": 21, + "want": [ + "Unlicense", + "GPL-2.0-or-later", + "MIT", + "Apache-2.0", + "BSD-2-Clause", + "BSD-3-Clause", + "BSD-4-Clause" + ] + }, + { + "license": "OLDAP-2.8", + "versions": 21, + "want": [ + "OLDAP-2.8" + ] + }, + { + "license": "MIT OR Apache-2.0 OR BSL-1.0", + "versions": 20, + "want": [ + "MIT", + "Apache-2.0", + "BSL-1.0" + ] + }, + { + "license": "ECL-2.0", + "versions": 20, + "want": [ + "ECL-2.0" + ] + }, + { + "license": "BSL-1.0", + "versions": 20, + "want": [ + "BSL-1.0" + ] + }, + { + "license": "EPICS", + "versions": 19, + "want": [ + "EPICS" + ] + }, + { + "license": "CeCILL-2.1 OR AGPL-3.0-or-later", + "versions": 19, + "want": [ + "CECILL-2.1", + "AGPL-3.0-or-later" + ] + }, + { + "license": "CeCILL-b", + "versions": 18, + "want": [ + "CECILL-B" + ] + }, + { + "license": "LGPL-3.0+", + "versions": 17, + "want": [ + "LGPL-3.0-or-later" + ] + }, + { + "license": "any-OSI", + "versions": 17, + "want": [ + "any-OSI" + ] + }, + { + "license": "GPL-3.0-or-later AND LGPL-3.0-or-later AND MIT AND BSD-2-Clause", + "versions": 16, + "want": [ + "GPL-3.0-or-later", + "LGPL-3.0-or-later", + "MIT", + "BSD-2-Clause" + ] + }, + { + "license": "MIT OR BSD-2-Clause", + "versions": 15, + "want": [ + "MIT", + "BSD-2-Clause" + ] + }, + { + "license": "GLWTPL", + "versions": 15, + "want": [ + "GLWTPL" + ] + }, + { + "license": "OGL-Canada-2.0", + "versions": 15, + "want": [ + "OGL-Canada-2.0" + ] + }, + { + "license": "Zlib", + "versions": 14, + "want": [ + "Zlib" + ] + }, + { + "license": "MIT-Modern-Variant", + "versions": 14, "want": [ - "Unknown" + "MIT-Modern-Variant" ] }, { - "license": "Apache Software License", - "versions": 4924, + "license": "NCSA", + "versions": 14, "want": [ - "Unknown" + "NCSA" ] }, { - "license": "Apache License", - "versions": 4651, + "license": "BSD-2-clause", + "versions": 14, "want": [ - "Unknown" + "BSD-2-Clause" ] }, { - "license": "GPL3", - "versions": 4597, + "license": "MIT or Apache-2.0", + "versions": 14, "want": [ - "Unknown" + "MIT", + "Apache-2.0" ] }, { - "license": "GNU General Public License v3.0", - "versions": 4514, + "license": "Ms-PL", + "versions": 13, "want": [ - "Unknown" + "MS-PL" ] }, { - "license": "BSD 3-Clause", - "versions": 3831, + "license": "Apache-2.0 AND CC-BY-4.0", + "versions": 13, "want": [ - "Unknown" + "Apache-2.0", + "CC-BY-4.0" ] }, { - "license": "GPLv2", - "versions": 3748, + "license": "cc-by-nc-sa-4.0", + "versions": 13, "want": [ - "Unknown" + "CC-BY-NC-SA-4.0" ] }, { - "license": "MIT OR Apache-2.0", - "versions": 3732, + "license": "ZPL-2.1", + "versions": 12, "want": [ - "MIT", - "Apache-2.0" + "ZPL-2.1" ] }, { - "license": "GNU GPLv3", - "versions": 3691, + "license": "GPL-3.0+ AND MIT", + "versions": 12, "want": [ - "Unknown" + "GPL-3.0-or-later", + "MIT" ] }, { - "license": "GNU", - "versions": 3589, + "license": "BSD-1-Clause", + "versions": 11, "want": [ - "Unknown" + "BSD-1-Clause" ] }, { - "license": "GPL2", - "versions": 3346, + "license": "Python-2.0", + "versions": 11, "want": [ - "Unknown" + "Python-2.0" ] }, { - "license": "GPLv3+", - "versions": 3205, + "license": "Unlicense OR AGPL-3.0-or-later OR GPL-2.0-or-later OR BSD-4-Clause OR MIT OR Apache-2.0\n ", + "versions": 11, "want": [ - "Unknown" + "Unlicense", + "AGPL-3.0-or-later", + "GPL-2.0-or-later", + "BSD-4-Clause", + "MIT", + "Apache-2.0" ] }, { - "license": "apache-2.0", - "versions": 3122, + "license": "Unlicense OR AGPL-3.0-or-later OR GPL-2.0-or-later OR BSD-4-Clause OR MIT OR Apache-2.0", + "versions": 11, "want": [ + "Unlicense", + "AGPL-3.0-or-later", + "GPL-2.0-or-later", + "BSD-4-Clause", + "MIT", "Apache-2.0" ] }, { - "license": "MPL-2.0", - "versions": 3070, + "license": "MIT (X11)", + "versions": 10, "want": [ - "MPL-2.0" + "MIT", + "X11" ] }, { - "license": "Apache Software License 2.0", - "versions": 2994, + "license": "bsd-2-clause", + "versions": 10, "want": [ - "Unknown" + "BSD-2-Clause" ] }, { - "license": "AGPL-3.0-or-later", - "versions": 2878, + "license": "MPL-2.0 AND MIT", + "versions": 10, "want": [ - "AGPL-3.0-or-later" + "MPL-2.0", + "MIT" ] }, { - "license": "ISC", - "versions": 2848, + "license": "Unlicense OR GPL-2.0-or-later OR MIT OR Apache-2.0 OR BSD-2-Clause OR BSD-3-Clause ", + "versions": 10, "want": [ - "ISC" + "Unlicense", + "GPL-2.0-or-later", + "MIT", + "Apache-2.0", + "BSD-2-Clause", + "BSD-3-Clause" ] }, { - "license": "AGPL", - "versions": 2843, + "license": "Unlicense OR MIT", + "versions": 10, "want": [ - "Unknown" + "Unlicense", + "MIT" ] }, { - "license": "GPL v3", - "versions": 2809, + "license": "CC-BY-ND-4.0", + "versions": 10, "want": [ - "Unknown" + "CC-BY-ND-4.0" ] }, { - "license": "BSD 2-Clause License", - "versions": 2662, + "license": "BSD-3-Clause OR Apache-2.0", + "versions": 10, "want": [ - "Unknown" + "BSD-3-Clause", + "Apache-2.0" ] }, { - "license": "AGPLv3", - "versions": 2612, + "license": "MIT AND CC-BY-4.0", + "versions": 9, "want": [ - "Unknown" + "MIT", + "CC-BY-4.0" ] }, { - "license": "LGPLv3", - "versions": 2485, + "license": "BSD-3-Clause AND MIT AND LGPL-2.1-or-later AND Apache-2.0", + "versions": 9, "want": [ - "Unknown" + "BSD-3-Clause", + "MIT", + "LGPL-2.1-or-later", + "Apache-2.0" ] }, { - "license": "LGPL-3.0", - "versions": 2475, + "license": "GPL-2.0-or-later AND BSD-3-Clause AND LGPL-2.0-or-later AND Apache-2.0 AND MIT AND LGPL-2.1-or-later", + "versions": 8, "want": [ - "Unknown" + "GPL-2.0-or-later", + "BSD-3-Clause", + "LGPL-2.0-or-later", + "Apache-2.0", + "MIT", + "LGPL-2.1-or-later" ] }, { - "license": "WTFPL", - "versions": 2427, + "license": "LiLiQ-Rplus-1.1", + "versions": 8, "want": [ - "WTFPL" + "LiLiQ-Rplus-1.1" ] }, { - "license": "GPL-3.0-only", - "versions": 2292, + "license": "MIT AND GPL-2.0-or-later AND BSD-3-Clause AND LGPL-2.0-or-later AND Apache-2.0 AND LGPL-2.1-or-later", + "versions": 8, "want": [ - "GPL-3.0-only" + "MIT", + "GPL-2.0-or-later", + "BSD-3-Clause", + "LGPL-2.0-or-later", + "Apache-2.0", + "LGPL-2.1-or-later" ] }, { - "license": "modified BSD", - "versions": 2259, + "license": "MS-PL", + "versions": 8, "want": [ - "Unknown" + "MS-PL" ] }, { - "license": "The MIT License", - "versions": 2205, + "license": "AGPL-1.0-or-later", + "versions": 7, "want": [ - "Unknown" + "AGPL-1.0-or-later" ] }, { - "license": "Creative Commons Attribution-Noncommercial-Share Alike license", - "versions": 2133, + "license": "MIT AND Python-2.0", + "versions": 7, "want": [ - "Unknown" + "MIT", + "Python-2.0" ] }, { - "license": "Apache2", - "versions": 2067, + "license": "BSD-3-Clause-Clear AND MIT AND BSD-3-Clause AND LGPL-2.0-or-later AND Apache-2.0 AND LGPL-2.1-or-later", + "versions": 7, "want": [ - "Unknown" + "BSD-3-Clause-Clear", + "MIT", + "BSD-3-Clause", + "LGPL-2.0-or-later", + "Apache-2.0", + "LGPL-2.1-or-later" ] }, { - "license": "BSD-3", - "versions": 2016, + "license": "GPL-3.0-or-later OR MIT", + "versions": 6, "want": [ - "Unknown" + "GPL-3.0-or-later", + "MIT" ] }, { - "license": "MPLv2", - "versions": 1934, + "license": "Apache-1.0", + "versions": 6, "want": [ - "Unknown" + "Apache-1.0" ] }, { - "license": "apache 3.0", - "versions": 1856, + "license": "MPL-1.1", + "versions": 6, "want": [ - "Unknown" + "MPL-1.1" ] }, { - "license": "BSD (3-clause)", - "versions": 1834, + "license": "MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later", + "versions": 6, "want": [ - "Unknown" + "MPL-1.1", + "GPL-2.0-or-later", + "LGPL-2.1-or-later" ] }, { - "license": "The MIT License (MIT)", - "versions": 1805, + "license": "BSD-2-Clause-Patent", + "versions": 6, "want": [ - "Unknown" + "BSD-2-Clause-Patent" ] }, { - "license": "PSF", - "versions": 1755, + "license": "(CC-BY-4.0 AND OFL-1.1 AND MIT)", + "versions": 6, "want": [ - "Unknown" + "CC-BY-4.0", + "OFL-1.1", + "MIT" ] }, { - "license": "GPL3+", - "versions": 1742, + "license": "copyleft-next-0.3.0", + "versions": 5, "want": [ - "Unknown" + "copyleft-next-0.3.0" ] }, { - "license": "LGPL-3.0-or-later", - "versions": 1734, + "license": "CC-BY-SA-2.1-JP", + "versions": 5, "want": [ - "LGPL-3.0-or-later" + "CC-BY-SA-2.1-JP" ] }, { - "license": "ZPL 2.1", - "versions": 1632, + "license": "CAL-1.0-Combined-Work-Exception", + "versions": 5, "want": [ - "Unknown" + "CAL-1.0-Combined-Work-Exception" ] }, { - "license": "Elastic-2.0", - "versions": 1590, + "license": "AGPL-1.0-only", + "versions": 5, "want": [ - "Elastic-2.0" + "AGPL-1.0-only" ] }, { - "license": "Creative Commons Attribution-ShareAlike 4.0 International", - "versions": 1519, + "license": "CPOL-1.02", + "versions": 5, "want": [ - "Unknown" + "CPOL-1.02" ] }, { - "license": "GNU General Public License v2.0 or later", - "versions": 1519, + "license": "MIT AND BSD-3-Clause", + "versions": 5, "want": [ - "Unknown" + "MIT", + "BSD-3-Clause" ] }, { - "license": "PolyForm Shield License 1.0.0, https://polyformproject.org/wp-content/uploads/2020/06/PolyForm-Shield-1.0.0.txt", - "versions": 1515, + "license": "CC-BY-NC-ND-3.0-DE", + "versions": 5, "want": [ - "Unknown" + "CC-BY-NC-ND-3.0-DE" ] }, { - "license": "CC0-1.0", - "versions": 1508, + "license": "CC-BY-NC-SA-3.0-IGO", + "versions": 5, "want": [ - "CC0-1.0" + "CC-BY-NC-SA-3.0-IGO" ] }, { - "license": "GPL 3.0", - "versions": 1493, + "license": "PolyForm-Small-Business-1.0.0", + "versions": 5, "want": [ - "Unknown" + "PolyForm-Small-Business-1.0.0" ] }, { - "license": "BSD 2-clause", - "versions": 1474, + "license": "CC-BY-NC-ND-3.0-IGO", + "versions": 5, "want": [ - "Unknown" + "CC-BY-NC-ND-3.0-IGO" ] }, { - "license": "Apache2.0", - "versions": 1469, + "license": "CDLA-Sharing-1.0", + "versions": 5, "want": [ - "Unknown" + "CDLA-Sharing-1.0" ] }, { - "license": "All rights reserved", - "versions": 1458, + "license": "JPL-image", + "versions": 5, "want": [ - "Unknown" + "JPL-image" ] }, { - "license": "AGPL-3.0-only", - "versions": 1433, + "license": "TPL-1.0", + "versions": 5, "want": [ - "AGPL-3.0-only" + "TPL-1.0" ] }, { - "license": "BSD-2-Clause", - "versions": 1427, + "license": "TAPR-OHL-1.0", + "versions": 5, "want": [ - "BSD-2-Clause" + "TAPR-OHL-1.0" ] }, { - "license": "BSD 3-clause", - "versions": 1425, + "license": "OpenPBS-2.3", + "versions": 5, "want": [ - "Unknown" + "OpenPBS-2.3" ] }, { - "license": "LGPL v3", - "versions": 1421, + "license": "CC-BY-NC-3.0-DE", + "versions": 5, "want": [ - "Unknown" + "CC-BY-NC-3.0-DE" ] }, { - "license": "Moderne Source Available License", - "versions": 1402, + "license": "CC-BY-SA-2.0-UK", + "versions": 5, "want": [ - "Unknown" + "CC-BY-SA-2.0-UK" ] }, { - "license": "http://www.apache.org/licenses/LICENSE-2.0", - "versions": 1382, + "license": "Sendmail-8.23", + "versions": 5, "want": [ - "Unknown" + "Sendmail-8.23" ] }, { - "license": "https://aka.ms/azureml-sdk-license", - "versions": 1368, + "license": "CC-BY-SA-3.0-AT", + "versions": 5, "want": [ - "Unknown" + "CC-BY-SA-3.0-AT" ] }, { - "license": "Proprietary Software", - "versions": 1352, + "license": "FDK-AAC", + "versions": 5, "want": [ - "Unknown" + "FDK-AAC" ] }, { - "license": "MIT/Apache-2.0", - "versions": 1341, + "license": "QPL-1.0-INRIA-2004", + "versions": 5, "want": [ - "Unknown" + "QPL-1.0-INRIA-2004" ] }, { - "license": "Apache-2", - "versions": 1318, + "license": "MPL-1.1 AND LGPL-2.1-or-later AND BSD-3-Clause AND LGPL-2.0-or-later AND MIT", + "versions": 5, "want": [ - "Unknown" + "MPL-1.1", + "LGPL-2.1-or-later", + "BSD-3-Clause", + "LGPL-2.0-or-later", + "MIT" ] }, { - "license": "BSD 2", - "versions": 1302, + "license": "Linux-man-pages-copyleft", + "versions": 5, "want": [ - "Unknown" + "Linux-man-pages-copyleft" ] }, { - "license": "Apache Software License (Apache-2.0)", - "versions": 1278, + "license": "Artistic-1.0", + "versions": 5, "want": [ - "Unknown" + "Artistic-1.0" ] }, { - "license": "GPL-2.0-or-later", - "versions": 1254, + "license": "Arphic-1999", + "versions": 5, "want": [ - "GPL-2.0-or-later" + "Arphic-1999" ] }, { - "license": "Unlicense", - "versions": 1214, + "license": "SimPL-2.0", + "versions": 5, "want": [ - "Unlicense" + "SimPL-2.0" ] }, { - "license": "ZPL", - "versions": 1214, + "license": "CERN-OHL-W-2.0", + "versions": 5, "want": [ - "Unknown" + "CERN-OHL-W-2.0" ] }, { - "license": "License :: OSI Approved :: MIT License", - "versions": 1193, + "license": "CERN-OHL-S-2.0", + "versions": 5, "want": [ - "Unknown" + "CERN-OHL-S-2.0" ] }, { - "license": "Apache v2", - "versions": 1174, + "license": "CC-BY-ND-3.0-DE", + "versions": 5, "want": [ - "Unknown" + "CC-BY-ND-3.0-DE" ] }, { - "license": "GPL-3", - "versions": 1174, + "license": "copyleft-next-0.3.1", + "versions": 5, "want": [ - "Unknown" + "copyleft-next-0.3.1" ] }, { - "license": "GNU GPL v3", - "versions": 1133, + "license": "UCL-1.0", + "versions": 5, "want": [ - "Unknown" + "UCL-1.0" ] }, { - "license": "MPL", - "versions": 1130, + "license": "MIT AND (Apache-2.0 OR BSD-2-clause)", + "versions": 4, "want": [ - "Unknown" + "MIT", + "Apache-2.0", + "BSD-2-Clause" ] }, { - "license": "gpl", - "versions": 1127, + "license": "MIT OR AFL-2.1", + "versions": 4, "want": [ - "Unknown" + "MIT", + "AFL-2.1" ] }, { - "license": "GNU General Public License v3 (GPLv3)", - "versions": 1088, + "license": "Apache-2.0 OR CC-BY-4.0", + "versions": 4, "want": [ - "Unknown" + "Apache-2.0", + "CC-BY-4.0" ] }, { - "license": "MPL2", - "versions": 1087, + "license": "CC-BY-NC-SA-2.0-DE", + "versions": 4, "want": [ - "Unknown" + "CC-BY-NC-SA-2.0-DE" ] }, { - "license": "GNU Affero General Public License v3", - "versions": 1072, + "license": "(MIT OR Apache-2.0)", + "versions": 4, "want": [ - "Unknown" + "MIT", + "Apache-2.0" ] }, { - "license": "Public Domain", - "versions": 1066, + "license": "GPL-3.0-or-later ", + "versions": 4, "want": [ - "Unknown" + "GPL-3.0-or-later" ] }, { - "license": "BSD3", - "versions": 1033, + "license": "UPL-1.0 OR Apache-2.0", + "versions": 4, "want": [ - "Unknown" + "UPL-1.0", + "Apache-2.0" ] }, { - "license": "Proprietary https://aka.ms/azureml-preview-sdk-license", - "versions": 1028, + "license": "CC-BY-NC-SA-3.0-DE", + "versions": 4, "want": [ - "Unknown" + "CC-BY-NC-SA-3.0-DE" ] }, { - "license": "UNLICENSE", - "versions": 1016, + "license": "CC-BY-NC-SA-2.0-FR", + "versions": 4, "want": [ - "Unlicense" + "CC-BY-NC-SA-2.0-FR" ] }, { - "license": "Apache 2.0 License", - "versions": 962, + "license": "CC-BY-NC-SA-2.0-UK", + "versions": 4, "want": [ - "Unknown" + "CC-BY-NC-SA-2.0-UK" ] }, { - "license": "License :: OSI Approved :: Apache Software License", - "versions": 949, + "license": "cc0-1.0", + "versions": 4, "want": [ - "Unknown" + "CC0-1.0" ] }, { - "license": "Apache-2.0 license", - "versions": 935, + "license": "GPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-2-Clause", + "versions": 4, "want": [ - "Unknown" + "GPL-2.0-or-later", + "LGPL-2.1-or-later", + "BSD-2-Clause" ] }, { - "license": "GPL-3.0 License", - "versions": 911, + "license": "Mit", + "versions": 4, "want": [ - "Unknown" + "MIT" ] }, { - "license": "GNU GENERAL PUBLIC LICENSE", - "versions": 909, + "license": "LGPL-2.1-only OR MPL-1.1", + "versions": 4, "want": [ - "Unknown" + "LGPL-2.1-only", + "MPL-1.1" ] }, { - "license": "Salure License", - "versions": 906, + "license": "APACHE-2.0 OR UPL-1.0", + "versions": 3, "want": [ - "Unknown" + "Apache-2.0", + "UPL-1.0" ] }, { - "license": "GNU General Public License", - "versions": 903, + "license": "Apache-2.0 OR CC0-1.0", + "versions": 3, "want": [ - "Unknown" + "Apache-2.0", + "CC0-1.0" ] }, { - "license": "MIT licence, see LICENCE.txt", - "versions": 902, + "license": "MIT OR Unlicense", + "versions": 3, "want": [ - "Unknown" + "MIT", + "Unlicense" ] }, { - "license": "TBD", - "versions": 883, + "license": "afl-3.0", + "versions": 3, "want": [ - "Unknown" + "AFL-3.0" ] }, { - "license": "BSL-1.1", - "versions": 849, + "license": "BSD-3-Clause AND LGPL-3.0-or-later AND MIT", + "versions": 3, "want": [ - "Unknown" + "BSD-3-Clause", + "LGPL-3.0-or-later", + "MIT" ] }, { - "license": "UCSD", - "versions": 848, + "license": "CDDL-1.0", + "versions": 3, "want": [ - "Unknown" + "CDDL-1.0" ] }, { - "license": "Commercial", - "versions": 845, + "license": "beerware", + "versions": 3, "want": [ - "Unknown" + "Beerware" ] }, { - "license": "LICENSE.md", - "versions": 831, + "license": "Polyform-Noncommercial-1.0.0", + "versions": 3, "want": [ - "Unknown" + "PolyForm-Noncommercial-1.0.0" ] }, { - "license": "General Public Licence 2", - "versions": 818, + "license": "JAM", + "versions": 3, "want": [ - "Unknown" + "Jam" ] }, { - "license": "unlicensed", - "versions": 809, + "license": "CC-By-SA-4.0", + "versions": 3, "want": [ - "Unknown" + "CC-BY-SA-4.0" ] }, { - "license": "OSI Approved :: Apache Software License", - "versions": 803, + "license": "BSD-2-CLAUSE", + "versions": 3, "want": [ - "Unknown" + "BSD-2-Clause" ] }, { - "license": "MPL 2.0", - "versions": 795, + "license": "Artistic-2.0 OR GPL-1.0-or-later", + "versions": 3, "want": [ - "Unknown" + "Artistic-2.0", + "GPL-1.0-or-later" ] }, { - "license": "EUPL-1.2", - "versions": 789, + "license": "OSL-3.0", + "versions": 3, "want": [ - "EUPL-1.2" + "OSL-3.0" ] }, { - "license": "Apache License v2.0", - "versions": 788, + "license": "UPL-1.0 OR APACHE-2.0", + "versions": 3, "want": [ - "Unknown" + "UPL-1.0", + "Apache-2.0" ] }, { - "license": "Apache-2.0 License", - "versions": 782, + "license": "CECILL-B", + "versions": 3, "want": [ - "Unknown" + "CECILL-B" ] }, { - "license": "GPL v2", - "versions": 775, + "license": "UPL-1.0", + "versions": 3, "want": [ - "Unknown" + "UPL-1.0" ] }, { - "license": "GPL-2.0", - "versions": 774, + "license": "Apache-2.0 AND AGPL-3.0-only", + "versions": 2, "want": [ - "Unknown" + "Apache-2.0", + "AGPL-3.0-only" ] }, { - "license": "BSD-derived (http://www.repoze.org/LICENSE.txt)", - "versions": 772, + "license": "cc-by-nc-4.0", + "versions": 2, "want": [ - "Unknown" + "CC-BY-NC-4.0" ] }, { - "license": "Private", - "versions": 764, + "license": "LGPL-2.1-or-later AND BSD-3-Clause AND MIT AND MPL-1.1 AND LGPL-2.0-or-later", + "versions": 2, "want": [ - "Unknown" + "LGPL-2.1-or-later", + "BSD-3-Clause", + "MIT", + "MPL-1.1", + "LGPL-2.0-or-later" ] }, { - "license": "Apache Software License (Apache 2.0)", - "versions": 760, + "license": "BSD-3-Clause AND TCL", + "versions": 2, "want": [ - "Unknown" + "BSD-3-Clause", + "TCL" ] }, { - "license": "GNU Lesser General Public License v3 or later (LGPLv3+)", - "versions": 757, + "license": "Hippocratic-2.1", + "versions": 2, "want": [ - "Unknown" + "Hippocratic-2.1" ] }, { - "license": "Other/Proprietary License", - "versions": 737, + "license": "cecill-c", + "versions": 2, "want": [ - "Unknown" + "CECILL-C" ] }, { - "license": "BrynQ License", - "versions": 735, + "license": "Apache-2.0 AND BSD-2-Clause", + "versions": 2, "want": [ - "Unknown" + "Apache-2.0", + "BSD-2-Clause" ] }, { - "license": "Apache License v2", - "versions": 732, + "license": "cecill-2.1", + "versions": 2, "want": [ - "Unknown" + "CECILL-2.1" ] }, { - "license": "GNU Affero General Public License, version 3.0", - "versions": 710, + "license": "SSPL-1.0 AND MIT", + "versions": 2, "want": [ - "Unknown" + "SSPL-1.0", + "MIT" ] }, { - "license": "MIT License, Apache License, Version 2.0", - "versions": 705, + "license": "Apache-2.0 OR UPL-1.0", + "versions": 2, "want": [ - "Unknown" + "Apache-2.0", + "UPL-1.0" ] }, { - "license": "GNU GPL", - "versions": 701, + "license": "GPL-2.0-or-later AND GPL-3.0-or-later AND BSD-3-Clause AND LGPL-3.0-or-later AND MIT", + "versions": 2, "want": [ - "Unknown" + "GPL-2.0-or-later", + "GPL-3.0-or-later", + "BSD-3-Clause", + "LGPL-3.0-or-later", + "MIT" ] }, { - "license": "The Unlicense", - "versions": 693, + "license": "CC-BY-SA-3.0", + "versions": 2, "want": [ - "Unknown" + "CC-BY-SA-3.0" ] }, { - "license": "None", - "versions": 675, + "license": "MITNFA", + "versions": 2, "want": [ - "Unknown" + "MITNFA" ] }, { - "license": "Copyright (C) 2023, Greenroom Robotics", - "versions": 674, + "license": "BSD-3-Clause-LBNL AND BSD-3-Clause AND BSL-1.0 AND LGPL-2.0-only AND LGPL-2.1-only AND LGPL-3.0-only AND MIT AND LGPL-2.0-or-later WITH WxWindows-exception-3.1", + "versions": 2, "want": [ - "Unknown" + "BSD-3-Clause-LBNL", + "BSD-3-Clause", + "BSL-1.0", + "LGPL-2.0-only", + "LGPL-2.1-only", + "LGPL-3.0-only", + "MIT", + "LGPL-2.0-or-later" ] }, { - "license": "CC BY-NC-SA 4.0", - "versions": 671, + "license": "MIT AND BSD-2-CLAUSE", + "versions": 2, "want": [ - "Unknown" + "MIT", + "BSD-2-Clause" ] }, { - "license": "LGPL2.1", - "versions": 668, + "license": "ISC OR Apache-2.0", + "versions": 2, "want": [ - "Unknown" + "ISC", + "Apache-2.0" ] }, { - "license": "Apache License (2.0)", - "versions": 656, + "license": "AGPL-3.0+ AND Apache-2.0", + "versions": 2, "want": [ - "Unknown" + "AGPL-3.0-or-later", + "Apache-2.0" ] }, { - "license": "proprietary", - "versions": 649, + "license": "BuSL-1.1", + "versions": 2, "want": [ - "Unknown" + "BUSL-1.1" ] }, { - "license": "APACHE", - "versions": 633, + "license": "DL-DE-BY-2.0", + "versions": 2, "want": [ - "Unknown" + "DL-DE-BY-2.0" ] }, { - "license": "Closed source", - "versions": 626, + "license": "OFL-1.1", + "versions": 2, "want": [ - "Unknown" + "OFL-1.1" ] }, { - "license": "Mozilla Public License 2.0", - "versions": 623, + "license": "BUSL-1.1 AND Apache-2.0", + "versions": 2, "want": [ - "Unknown" + "BUSL-1.1", + "Apache-2.0" ] }, { - "license": "AGPLv3+", - "versions": 614, + "license": "MIT AND ISC", + "versions": 2, "want": [ - "Unknown" + "MIT", + "ISC" ] }, { - "license": "GNU General Public License (GPL)", - "versions": 612, + "license": "MIT OR Apache-2.0 OR BSD-2-Clause", + "versions": 2, "want": [ - "Unknown" + "MIT", + "Apache-2.0", + "BSD-2-Clause" ] }, { - "license": "gpl-3.0", - "versions": 612, + "license": "MIT AND Apache-2.0 AND LGPL-2.0-or-later AND BSD-3-Clause AND LGPL-2.1-or-later AND BSD-3-Clause-Clear", + "versions": 1, "want": [ - "Unknown" + "MIT", + "Apache-2.0", + "LGPL-2.0-or-later", + "BSD-3-Clause", + "LGPL-2.1-or-later", + "BSD-3-Clause-Clear" ] }, { - "license": "Affero General Public License v3", - "versions": 610, + "license": "CC-PDM-1.0", + "versions": 1, "want": [ - "Unknown" + "CC-PDM-1.0" ] }, { - "license": "AGPL 3.0", - "versions": 607, + "license": "MIT X11", + "versions": 1, "want": [ - "Unknown" + "MIT", + "X11" ] }, { - "license": "\"MIT\"", - "versions": 585, + "license": "GFDL-1.3-or-later", + "versions": 1, "want": [ - "Unknown" + "GFDL-1.3-or-later" ] }, { - "license": "GPL 2", - "versions": 583, + "license": "BSD-3-Clause AND MPL-1.1 AND MIT AND LGPL-2.0-or-later AND LGPL-2.1-or-later", + "versions": 1, "want": [ - "Unknown" + "BSD-3-Clause", + "MPL-1.1", + "MIT", + "LGPL-2.0-or-later", + "LGPL-2.1-or-later" ] }, { - "license": "Apache Licence 2.0", - "versions": 581, + "license": "MIT AND BSD-3-Clause AND Apache-2.0 AND LGPL-2.1-or-later AND GPL-2.0-or-later AND LGPL-2.0-or-later", + "versions": 1, "want": [ - "Unknown" + "MIT", + "BSD-3-Clause", + "Apache-2.0", + "LGPL-2.1-or-later", + "GPL-2.0-or-later", + "LGPL-2.0-or-later" ] }, { - "license": "\"GPL-3.0\"", - "versions": 574, + "license": "MIT AND LGPL-2.1-or-later AND Apache-2.0 AND BSD-3-Clause", + "versions": 1, "want": [ - "Unknown" + "MIT", + "LGPL-2.1-or-later", + "Apache-2.0", + "BSD-3-Clause" ] }, { - "license": "GPL version 3", - "versions": 568, + "license": "BSD-3-Clause AND LGPL-2.0-or-later AND Apache-2.0 AND BSD-3-Clause-Clear AND LGPL-2.1-or-later AND MIT", + "versions": 1, "want": [ - "Unknown" + "BSD-3-Clause", + "LGPL-2.0-or-later", + "Apache-2.0", + "BSD-3-Clause-Clear", + "LGPL-2.1-or-later", + "MIT" ] }, { - "license": "GPL3.0", - "versions": 563, + "license": "MiT", + "versions": 1, "want": [ - "Unknown" + "MIT" ] }, { - "license": "GNU AFFERO GENERAL PUBLIC LICENSE", - "versions": 554, + "license": "MIT AND LGPL-2.0-or-later AND GPL-2.0-or-later AND BSD-3-Clause AND Apache-2.0 AND LGPL-2.1-or-later", + "versions": 1, "want": [ - "Unknown" + "MIT", + "LGPL-2.0-or-later", + "GPL-2.0-or-later", + "BSD-3-Clause", + "Apache-2.0", + "LGPL-2.1-or-later" ] }, { - "license": "GPL 3", - "versions": 554, + "license": "isc", + "versions": 1, "want": [ - "Unknown" + "ISC" ] }, { - "license": "GNU General Public License v2.0", - "versions": 549, + "license": "MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later", + "versions": 1, "want": [ - "Unknown" + "MPL-1.1", + "GPL-2.0-only", + "LGPL-2.1-or-later" ] }, { - "license": "GPL License", - "versions": 539, + "license": "PSF-2.0 AND GPL-3.0-only", + "versions": 1, "want": [ - "Unknown" + "PSF-2.0", + "GPL-3.0-only" ] }, { - "license": "Mozilla Public License Version 2.0 with Commons Clause", - "versions": 539, + "license": "AFL-1.1", + "versions": 1, "want": [ - "Unknown" + "AFL-1.1" ] }, { - "license": "CeCILL-B", - "versions": 538, + "license": "MPL-1.1 OR GPL-2.0-or-later or LGPL-2.1-or-later", + "versions": 1, "want": [ - "CECILL-B" + "MPL-1.1", + "GPL-2.0-or-later", + "LGPL-2.1-or-later" ] }, { - "license": "GPL-3.0 license", - "versions": 532, + "license": "MIT\n", + "versions": 1, "want": [ - "Unknown" + "MIT" ] }, { - "license": "GNU GENERAL PUBLIC LICENSE Version 3", - "versions": 523, + "license": "MIT ", + "versions": 1, "want": [ - "Unknown" + "MIT" ] }, { - "license": "EULA", - "versions": 521, + "license": "GPL-3.0-or-later AND Apache-2.0 AND CC0-1.0 AND CC-BY-SA-4.0", + "versions": 1, "want": [ - "Unknown" + "GPL-3.0-or-later", + "Apache-2.0", + "CC0-1.0", + "CC-BY-SA-4.0" ] }, { - "license": "LGPLv2+", - "versions": 513, + "license": "GPL-3.0-only WITH Classpath-exception-2.0 OR BSD-3-Clause", + "versions": 1, "want": [ - "Unknown" + "GPL-3.0-only", + "BSD-3-Clause" ] }, { - "license": "GPL V3", - "versions": 509, + "license": "LGPL-2.1-or-later AND BSD-3-Clause AND LGPL-2.0-or-later AND MIT AND MPL-1.1", + "versions": 1, "want": [ - "Unknown" + "LGPL-2.1-or-later", + "BSD-3-Clause", + "LGPL-2.0-or-later", + "MIT", + "MPL-1.1" ] }, { - "license": "GNU General Public License v3", - "versions": 508, + "license": "CECILL-2.0", + "versions": 1, "want": [ - "Unknown" + "CECILL-2.0" ] }, { - "license": "GNU General Public License (GPL) v3 or later", - "versions": 507, + "license": "EFL-2.0", + "versions": 1, "want": [ - "Unknown" + "EFL-2.0" ] }, { - "license": "CeCILL v2", - "versions": 505, + "license": "MIT AND BSD-3-Clause-Clear AND LGPL-2.0-or-later AND BSD-3-Clause AND Apache-2.0 AND LGPL-2.1-or-later", + "versions": 1, "want": [ - "Unknown" + "MIT", + "BSD-3-Clause-Clear", + "LGPL-2.0-or-later", + "BSD-3-Clause", + "Apache-2.0", + "LGPL-2.1-or-later" ] }, { - "license": "GNU Affero General Public License v3.0", - "versions": 491, + "license": "GPL-3.0-only WITH Classpath-Exception-2.0 OR BSD-3-Clause", + "versions": 1, "want": [ - "Unknown" + "GPL-3.0-only", + "BSD-3-Clause" ] }, { - "license": "LGPL-3.0-ONLY", - "versions": 487, + "license": "CUBE", + "versions": 1, "want": [ - "LGPL-3.0-only" + "Cube" ] }, { - "license": "Apache licensed, as found in the LICENSE file", - "versions": 481, + "license": "MIT AND LGPL-2.1-or-later AND LGPL-2.0-or-later AND MPL-1.1", + "versions": 1, "want": [ - "Unknown" + "MIT", + "LGPL-2.1-or-later", + "LGPL-2.0-or-later", + "MPL-1.1" ] }, { - "license": "LGPL-2.1", - "versions": 481, + "license": "GPL-3.0-or-later AND BSD-2-Clause AND MIT AND PSF-2.0", + "versions": 1, "want": [ - "Unknown" + "GPL-3.0-or-later", + "BSD-2-Clause", + "MIT", + "PSF-2.0" ] }, { - "license": "LicenseRef-Proprietary", - "versions": 480, + "license": "GPL-3.0-or-later AND Python-2.0.1", + "versions": 1, "want": [ - "Unknown" + "GPL-3.0-or-later", + "Python-2.0.1" ] }, { - "license": "GPL v3.0", - "versions": 472, + "license": "PolyForm-Noncommercial-1.0.0 ", + "versions": 1, "want": [ - "Unknown" + "PolyForm-Noncommercial-1.0.0" ] }, { - "license": "Custom Proprietary License", - "versions": 471, + "license": "MIT OR BSD-3-Clause", + "versions": 1, "want": [ - "Unknown" + "MIT", + "BSD-3-Clause" ] }, { - "license": "Proprietary - IntelliStream", - "versions": 469, + "license": "nokia", + "versions": 1, "want": [ - "Unknown" + "Nokia" ] }, { - "license": "UNLICENSED", - "versions": 468, + "license": "LGPL-3.0-or-later or MIT", + "versions": 1, "want": [ - "Unknown" + "LGPL-3.0-or-later", + "MIT" ] }, { - "license": "CC0", - "versions": 467, + "license": "MIT AND Apache-2.0 AND LGPL-2.0-or-later AND BSD-3-Clause AND LGPL-2.1-or-later AND GPL-2.0-or-later", + "versions": 1, "want": [ - "Unknown" + "MIT", + "Apache-2.0", + "LGPL-2.0-or-later", + "BSD-3-Clause", + "LGPL-2.1-or-later", + "GPL-2.0-or-later" ] }, { - "license": " Copyright 2021 Datalogue, Inc.", - "versions": 462, + "license": "Apache-2.0 OR MIT OR GPL-2.0-or-later OR BSD-2-clause OR BSD-3-clause OR BSD-4-clause ", + "versions": 1, "want": [ - "Unknown" + "Apache-2.0", + "MIT", + "GPL-2.0-or-later", + "BSD-2-Clause", + "BSD-3-Clause", + "BSD-4-Clause" ] }, { - "license": "LGPLv3+", - "versions": 460, + "license": "MIT AND GPL-3.0-or-later", + "versions": 1, "want": [ - "Unknown" + "MIT", + "GPL-3.0-or-later" ] }, { - "license": "http://www.fsf.org/licensing/licenses/agpl-3.0.html", - "versions": 458, + "license": "UNLICENSE MIT", + "versions": 1, "want": [ - "Unknown" + "Unlicense", + "MIT" ] }, { - "license": "BSD 2-Clause", - "versions": 456, + "license": "Zlib AND MIT AND BSD-2-Clause AND BSD-3-Clause AND PSF-2.0", + "versions": 1, "want": [ - "Unknown" + "Zlib", + "MIT", + "BSD-2-Clause", + "BSD-3-Clause", + "PSF-2.0" ] }, { - "license": "Free for non-commercial use", - "versions": 456, + "license": "MIT AND GPL-2.0-or-later AND BSD-3-Clause AND Apache-2.0 AND LGPL-2.1-or-later AND LGPL-2.0-or-later", + "versions": 1, "want": [ - "Unknown" + "MIT", + "GPL-2.0-or-later", + "BSD-3-Clause", + "Apache-2.0", + "LGPL-2.1-or-later", + "LGPL-2.0-or-later" ] }, { - "license": "CC-BY-NC-4.0", - "versions": 453, + "license": "EUPL-1.2 AND CC-BY-SA-3.0", + "versions": 1, "want": [ - "CC-BY-NC-4.0" + "EUPL-1.2", + "CC-BY-SA-3.0" ] }, { - "license": "New BSD", - "versions": 447, + "license": "EPL-2.0 OR MIT", + "versions": 1, "want": [ - "Unknown" + "EPL-2.0", + "MIT" ] }, { - "license": "BSD 3", - "versions": 436, + "license": "MIT\n ", + "versions": 1, "want": [ - "Unknown" + "MIT" ] }, { - "license": "BSD-2", - "versions": 429, + "license": "Apache-2.0 or MIT", + "versions": 1, "want": [ - "Unknown" + "Apache-2.0", + "MIT" ] }, { - "license": "Mozilla Public License Version 2.0", - "versions": 427, + "license": "Apache-2.0 OR LGPL-2.1-or-later", + "versions": 1, "want": [ - "Unknown" + "Apache-2.0", + "LGPL-2.1-or-later" ] }, { - "license": "GNU LGPL", - "versions": 417, + "license": "ZLIB", + "versions": 1, "want": [ - "Unknown" + "Zlib" ] }, { - "license": "Non-commercial use only with mandatory attribution", - "versions": 417, + "license": "UNKNOWN", + "versions": 69824, "want": [ "Unknown" ] }, { - "license": "Quarch Technology ltd", - "versions": 409, + "license": "Apache 2.0", + "versions": 63176, "want": [ "Unknown" ] }, { - "license": "EUPL 1.2", - "versions": 398, + "license": "Apache License 2.0", + "versions": 57107, "want": [ "Unknown" ] }, { - "license": "Apache Licence", - "versions": 394, + "license": "BSD", + "versions": 44585, "want": [ "Unknown" ] }, { - "license": "Non commercial", - "versions": 392, + "license": "MIT License", + "versions": 40663, "want": [ "Unknown" ] }, { - "license": "GNU AGPLv3", - "versions": 390, + "license": "GPL", + "versions": 31081, "want": [ "Unknown" ] }, { - "license": "License GPL-2", - "versions": 388, + "license": "GPLv3", + "versions": 23697, "want": [ "Unknown" ] }, { - "license": "CC-BY-NC-SA-4.0", - "versions": 387, + "license": "Apache 2", + "versions": 22314, "want": [ - "CC-BY-NC-SA-4.0" + "Unknown" ] }, { - "license": "All Rights Reserved", - "versions": 382, + "license": "Proprietary", + "versions": 19257, "want": [ "Unknown" ] }, { - "license": ": OSI Approved :: MIT License", - "versions": 381, + "license": "Apache License, Version 2.0", + "versions": 16170, "want": [ "Unknown" ] }, { - "license": "CC BY-SA 4.0", - "versions": 380, + "license": "GPLv2+", + "versions": 12789, "want": [ "Unknown" ] }, { - "license": "ASL 2.0", - "versions": 379, + "license": "LICENSE.txt", + "versions": 12434, "want": [ "Unknown" ] }, { - "license": "New BSD License", - "versions": 370, + "license": "MIT Licence", + "versions": 11551, "want": [ "Unknown" ] }, { - "license": "CC0 1.0 Universal", - "versions": 369, + "license": "GPL-3.0", + "versions": 9769, "want": [ "Unknown" ] }, { - "license": "Eclipse Public License - v1.0", - "versions": 364, + "license": "LICENSE", + "versions": 9444, "want": [ "Unknown" ] }, { - "license": "License :: OSI Approved :: BSD License", - "versions": 362, + "license": "Apache", + "versions": 9381, "want": [ "Unknown" ] }, { - "license": "Applitools SDK License", - "versions": 358, + "license": "LGPL", + "versions": 8974, "want": [ "Unknown" ] }, { - "license": "LICENSE.BSD3", - "versions": 351, + "license": "ASL", + "versions": 8356, "want": [ "Unknown" ] }, { - "license": "Public domain", - "versions": 349, + "license": "AGPL-3.0", + "versions": 8223, "want": [ "Unknown" ] }, { - "license": "apache2", - "versions": 346, + "license": "BSD 3-Clause License", + "versions": 7172, "want": [ "Unknown" ] }, { - "license": " Copyright 2021 Datalogue, Inc. This Datalogue SDK is licensed solely pursuant to the terms of the Master Software License executed between you as Licensee and Datalogue, Inc. All rights reserved. ", - "versions": 345, + "license": "Apache License Version 2.0", + "versions": 6602, "want": [ "Unknown" ] }, { - "license": "Apache License V2.0", - "versions": 344, + "license": "MIT license", + "versions": 6258, "want": [ "Unknown" ] }, { - "license": "MIT-0", - "versions": 343, + "license": "BSD License", + "versions": 5686, "want": [ - "MIT-0" + "Unknown" ] }, { - "license": "cc-by-sa-4.0", - "versions": 343, + "license": "Apache Software License", + "versions": 4924, "want": [ - "CC-BY-SA-4.0" + "Unknown" ] }, { - "license": "PROPRIETARY", - "versions": 341, + "license": "Apache License", + "versions": 4651, "want": [ "Unknown" ] }, { - "license": "Python Software Foundation License", - "versions": 341, + "license": "GPL3", + "versions": 4597, "want": [ "Unknown" ] }, { - "license": "GNU Library or Lesser General Public License (LGPL)", - "versions": 340, + "license": "GNU General Public License v3.0", + "versions": 4514, "want": [ "Unknown" ] }, { - "license": "BSD-3-CLAUSE", - "versions": 338, + "license": "BSD 3-Clause", + "versions": 3831, "want": [ - "BSD-3-Clause" + "Unknown" ] }, { - "license": "Python", - "versions": 338, + "license": "Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n \n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n \n 1. Definitions.\n \n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n \n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n \n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n \n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n \n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n \n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n \n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n \n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n \n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n \n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n \n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n \n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n \n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n \n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n \n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n \n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n \n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n \n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n \n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n \n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n \n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n \n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n \n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n \n END OF TERMS AND CONDITIONS\n \n APPENDIX: How to apply the Apache License to your work.\n \n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n \n Copyright [yyyy] [name of copyright owner]\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n ", + "versions": 3793, "want": [ "Unknown" ] }, { - "license": "3-clause BSD", - "versions": 332, + "license": "GPLv2", + "versions": 3748, "want": [ "Unknown" ] }, { - "license": "Apache v2.0", - "versions": 328, + "license": "GNU GPLv3", + "versions": 3691, "want": [ "Unknown" ] }, { - "license": "https://pypi.org/project/spiderx/", - "versions": 328, + "license": "GNU", + "versions": 3589, "want": [ "Unknown" ] }, { - "license": "3-Clause BSD", - "versions": 324, + "license": "GPL2", + "versions": 3346, "want": [ "Unknown" ] }, { - "license": "Apache 2 License", - "versions": 321, + "license": "GPLv3+", + "versions": 3205, "want": [ "Unknown" ] }, { - "license": "MMB License v1.0", - "versions": 321, + "license": "Apache Software License 2.0", + "versions": 2994, "want": [ "Unknown" ] }, { - "license": "NVIDIA Proprietary Software", - "versions": 321, + "license": "AGPL", + "versions": 2843, "want": [ "Unknown" ] }, { - "license": "Proprietary - Arcade Software License Agreement v1.0", - "versions": 318, + "license": "Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. \"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. \"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. \"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. \"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License. \"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. \"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. \"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). \"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. \"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\" \"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets \"[]\" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same \"printed page\" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ", + "versions": 2811, "want": [ "Unknown" ] }, { - "license": "none", - "versions": 316, + "license": "GPL v3", + "versions": 2809, "want": [ "Unknown" ] }, { - "license": "GNUv3", - "versions": 312, + "license": "GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. \u003chttps://fsf.org/\u003e Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. \"This License\" refers to version 3 of the GNU General Public License. \"Copyright\" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. \"The Program\" refers to any copyrightable work licensed under this License. Each licensee is addressed as \"you\". \"Licensees\" and \"recipients\" may be individuals or organizations. To \"modify\" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a \"modified version\" of the earlier work or a work \"based on\" the earlier work. A \"covered work\" means either the unmodified Program or a work based on the Program. To \"propagate\" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To \"convey\" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays \"Appropriate Legal Notices\" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The \"source code\" for a work means the preferred form of the work for making modifications to it. \"Object code\" means any non-source form of a work. A \"Standard Interface\" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The \"System Libraries\" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A \"Major Component\", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The \"Corresponding Source\" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to \"keep intact all notices\". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an \"aggregate\" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A \"User Product\" is either (1) a \"consumer product\", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, \"normally used\" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. \"Installation Information\" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. \"Additional permissions\" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered \"further restrictions\" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An \"entity transaction\" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A \"contributor\" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's \"contributor version\". A contributor's \"essential patent claims\" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, \"control\" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a \"patent license\" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To \"grant\" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. \"Knowingly relying\" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is \"discriminatory\" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License \"or any later version\" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the \"copyright\" line and a pointer to where the full notice is found. \u003cone line to give the program's name and a brief idea of what it does.\u003e Copyright (C) \u003cyear\u003e \u003cname of author\u003e This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see \u003chttps://www.gnu.org/licenses/\u003e. Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: \u003cprogram\u003e Copyright (C) \u003cyear\u003e \u003cname of author\u003e This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an \"about box\". You should also get your employer (if you work as a programmer) or school, if any, to sign a \"copyright disclaimer\" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see \u003chttps://www.gnu.org/licenses/\u003e. The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read \u003chttps://www.gnu.org/licenses/why-not-lgpl.html\u003e. ", + "versions": 2663, "want": [ "Unknown" ] }, { - "license": "CC-NC-ND", - "versions": 308, + "license": "BSD 2-Clause License", + "versions": 2662, "want": [ "Unknown" ] }, { - "license": "CC-BY-4.0", - "versions": 302, + "license": "AGPLv3", + "versions": 2612, "want": [ - "CC-BY-4.0" + "Unknown" ] }, { - "license": "GNU General Public License Version 3", - "versions": 302, + "license": "LGPLv3", + "versions": 2485, "want": [ "Unknown" ] }, { - "license": "MIT LICENSE", - "versions": 302, + "license": "LGPL-3.0", + "versions": 2475, "want": [ "Unknown" ] }, { - "license": "LGPL 2.1", - "versions": 294, + "license": "modified BSD", + "versions": 2259, "want": [ "Unknown" ] }, { - "license": "BSD-3-Clause License", - "versions": 293, + "license": "The MIT License", + "versions": 2205, "want": [ "Unknown" ] }, { - "license": "3 Clause BSD", - "versions": 291, + "license": "Creative Commons Attribution-Noncommercial-Share Alike license", + "versions": 2133, "want": [ "Unknown" ] }, { - "license": "CC BY-NC 4.0", - "versions": 290, + "license": "Apache2", + "versions": 2067, "want": [ "Unknown" ] }, { - "license": "Cisco End User License Agreement", - "versions": 290, + "license": "BSD-3", + "versions": 2016, "want": [ "Unknown" ] }, { - "license": "LGPL3", - "versions": 286, + "license": "GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n \n Copyright (C) 2007 Free Software Foundation, Inc. \u003chttps://fsf.org/\u003e\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\n software and other kinds of works.\n \n The licenses for most software and other practical works are designed\n to take away your freedom to share and change the works. By contrast,\n the GNU General Public License is intended to guarantee your freedom to\n share and change all versions of a program--to make sure it remains free\n software for all its users. We, the Free Software Foundation, use the\n GNU General Public License for most of our software; it applies also to\n any other work released this way by its authors. You can apply it to\n your programs, too.\n \n When we speak of free software, we are referring to freedom, not\n price. Our General Public Licenses are designed to make sure that you\n have the freedom to distribute copies of free software (and charge for\n them if you wish), that you receive source code or can get it if you\n want it, that you can change the software or use pieces of it in new\n free programs, and that you know you can do these things.\n \n To protect your rights, we need to prevent others from denying you\n these rights or asking you to surrender the rights. Therefore, you have\n certain responsibilities if you distribute copies of the software, or if\n you modify it: responsibilities to respect the freedom of others.\n \n For example, if you distribute copies of such a program, whether\n gratis or for a fee, you must pass on to the recipients the same\n freedoms that you received. You must make sure that they, too, receive\n or can get the source code. And you must show them these terms so they\n know 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\n giving you legal permission to copy, distribute and/or modify it.\n \n For the developers' and authors' protection, the GPL clearly explains\n that there is no warranty for this free software. For both users' and\n authors' sake, the GPL requires that modified versions be marked as\n changed, so that their problems will not be attributed erroneously to\n authors of previous versions.\n \n Some devices are designed to deny users access to install or run\n modified versions of the software inside them, although the manufacturer\n can do so. This is fundamentally incompatible with the aim of\n protecting users' freedom to change the software. The systematic\n pattern of such abuse occurs in the area of products for individuals to\n use, which is precisely where it is most unacceptable. Therefore, we\n have designed this version of the GPL to prohibit the practice for those\n products. If such problems arise substantially in other domains, we\n stand ready to extend this provision to those domains in future versions\n of the GPL, as needed to protect the freedom of users.\n \n Finally, every program is threatened constantly by software patents.\n States should not allow patents to restrict development and use of\n software on general-purpose computers, but in those that do, we wish to\n avoid the special danger that patents applied to a free program could\n make it effectively proprietary. To prevent this, the GPL assures that\n patents cannot be used to render the program non-free.\n \n The precise terms and conditions for copying, distribution and\n modification 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\n works, such as semiconductor masks.\n \n \"The Program\" refers to any copyrightable work licensed under this\n License. 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\n in a fashion requiring copyright permission, other than the making of an\n exact copy. The resulting work is called a \"modified version\" of the\n earlier work or a work \"based on\" the earlier work.\n \n A \"covered work\" means either the unmodified Program or a work based\n on the Program.\n \n To \"propagate\" a work means to do anything with it that, without\n permission, would make you directly or secondarily liable for\n infringement under applicable copyright law, except executing it on a\n computer or modifying a private copy. Propagation includes copying,\n distribution (with or without modification), making available to the\n public, and in some countries other activities as well.\n \n To \"convey\" a work means any kind of propagation that enables other\n parties to make or receive copies. Mere interaction with a user through\n a computer network, with no transfer of a copy, is not conveying.\n \n An interactive user interface displays \"Appropriate Legal Notices\"\n to the extent that it includes a convenient and prominently visible\n feature that (1) displays an appropriate copyright notice, and (2)\n tells the user that there is no warranty for the work (except to the\n extent that warranties are provided), that licensees may convey the\n work under this License, and how to view a copy of this License. If\n the interface presents a list of user commands or options, such as a\n menu, 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\n for making modifications to it. \"Object code\" means any non-source\n form of a work.\n \n A \"Standard Interface\" means an interface that either is an official\n standard defined by a recognized standards body, or, in the case of\n interfaces specified for a particular programming language, one that\n is widely used among developers working in that language.\n \n The \"System Libraries\" of an executable work include anything, other\n than the work as a whole, that (a) is included in the normal form of\n packaging a Major Component, but which is not part of that Major\n Component, and (b) serves only to enable use of the work with that\n Major Component, or to implement a Standard Interface for which an\n implementation 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\n produce 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\n the source code needed to generate, install, and (for an executable\n work) run the object code and to modify the work, including scripts to\n control those activities. However, it does not include the work's\n System Libraries, or general-purpose tools or generally available free\n programs which are used unmodified in performing those activities but\n which are not part of the work. For example, Corresponding Source\n includes interface definition files associated with source files for\n the work, and the source code for shared libraries and dynamically\n linked subprograms that the work is specifically designed to require,\n such as by intimate data communication or control flow between those\n subprograms and other parts of the work.\n \n The Corresponding Source need not include anything that users\n can regenerate automatically from other parts of the Corresponding\n Source.\n \n The Corresponding Source for a work in source code form is that\n same work.\n \n 2. Basic Permissions.\n \n All rights granted under this License are granted for the term of\n copyright on the Program, and are irrevocable provided the stated\n conditions are met. This License explicitly affirms your unlimited\n permission to run the unmodified Program. The output from running a\n covered work is covered by this License only if the output, given its\n content, constitutes a covered work. This License acknowledges your\n rights 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\n convey, without conditions so long as your license otherwise remains\n in force. You may convey covered works to others for the sole purpose\n of having them make modifications exclusively for you, or provide you\n with facilities for running those works, provided that you comply with\n the terms of this License in conveying all material for which you do\n not control copyright. Those thus making or running the covered works\n for you must do so exclusively on your behalf, under your direction\n and control, on terms that prohibit them from making any copies of\n your copyrighted material outside their relationship with you.\n \n Conveying under any other circumstances is permitted solely under\n the conditions stated below. Sublicensing is not allowed; section 10\n makes 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\n measure under any applicable law fulfilling obligations under article\n 11 of the WIPO copyright treaty adopted on 20 December 1996, or\n similar laws prohibiting or restricting circumvention of such\n measures.\n \n When you convey a covered work, you waive any legal power to forbid\n circumvention of technological measures to the extent such circumvention\n is effected by exercising rights under this License with respect to\n the covered work, and you disclaim any intention to limit operation or\n modification of the work as a means of enforcing, against the work's\n users, your or third parties' legal rights to forbid circumvention of\n technological measures.\n \n 4. Conveying Verbatim Copies.\n \n You may convey verbatim copies of the Program's source code as you\n receive it, in any medium, provided that you conspicuously and\n appropriately publish on each copy an appropriate copyright notice;\n keep intact all notices stating that this License and any\n non-permissive terms added in accord with section 7 apply to the code;\n keep intact all notices of the absence of any warranty; and give all\n recipients 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,\n and 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\n produce it from the Program, in the form of source code under the\n terms 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\n works, which are not by their nature extensions of the covered work,\n and which are not combined with it such as to form a larger program,\n in or on a volume of a storage or distribution medium, is called an\n \"aggregate\" if the compilation and its resulting copyright are not\n used to limit the access or legal rights of the compilation's users\n beyond what the individual works permit. Inclusion of a covered work\n in an aggregate does not cause this License to apply to the other\n parts 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\n of sections 4 and 5, provided that you also convey the\n machine-readable Corresponding Source under the terms of this License,\n in 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\n from the Corresponding Source as a System Library, need not be\n included in conveying the object code work.\n \n A \"User Product\" is either (1) a \"consumer product\", which means any\n tangible personal property which is normally used for personal, family,\n or household purposes, or (2) anything designed or sold for incorporation\n into a dwelling. In determining whether a product is a consumer product,\n doubtful cases shall be resolved in favor of coverage. For a particular\n product received by a particular user, \"normally used\" refers to a\n typical or common use of that class of product, regardless of the status\n of the particular user or of the way in which the particular user\n actually uses, or expects or is expected to use, the product. A product\n is a consumer product regardless of whether the product has substantial\n commercial, industrial or non-consumer uses, unless such uses represent\n the only significant mode of use of the product.\n \n \"Installation Information\" for a User Product means any methods,\n procedures, authorization keys, or other information required to install\n and execute modified versions of a covered work in that User Product from\n a modified version of its Corresponding Source. The information must\n suffice to ensure that the continued functioning of the modified object\n code is in no case prevented or interfered with solely because\n modification has been made.\n \n If you convey an object code work under this section in, or with, or\n specifically for use in, a User Product, and the conveying occurs as\n part of a transaction in which the right of possession and use of the\n User Product is transferred to the recipient in perpetuity or for a\n fixed term (regardless of how the transaction is characterized), the\n Corresponding Source conveyed under this section must be accompanied\n by the Installation Information. But this requirement does not apply\n if neither you nor any third party retains the ability to install\n modified object code on the User Product (for example, the work has\n been installed in ROM).\n \n The requirement to provide Installation Information does not include a\n requirement to continue to provide support service, warranty, or updates\n for a work that has been modified or installed by the recipient, or for\n the User Product in which it has been modified or installed. Access to a\n network may be denied when the modification itself materially and\n adversely affects the operation of the network or violates the rules and\n protocols for communication across the network.\n \n Corresponding Source conveyed, and Installation Information provided,\n in accord with this section must be in a format that is publicly\n documented (and with an implementation available to the public in\n source code form), and must require no special password or key for\n unpacking, reading or copying.\n \n 7. Additional Terms.\n \n \"Additional permissions\" are terms that supplement the terms of this\n License by making exceptions from one or more of its conditions.\n Additional permissions that are applicable to the entire Program shall\n be treated as though they were included in this License, to the extent\n that they are valid under applicable law. If additional permissions\n apply only to part of the Program, that part may be used separately\n under those permissions, but the entire Program remains governed by\n this License without regard to the additional permissions.\n \n When you convey a copy of a covered work, you may at your option\n remove any additional permissions from that copy, or from any part of\n it. (Additional permissions may be written to require their own\n removal in certain cases when you modify the work.) You may place\n additional permissions on material, added by you to a covered work,\n for which you have or can give appropriate copyright permission.\n \n Notwithstanding any other provision of this License, for material you\n add to a covered work, you may (if authorized by the copyright holders of\n that 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\n restrictions\" within the meaning of section 10. If the Program as you\n received it, or any part of it, contains a notice stating that it is\n governed by this License along with a term that is a further\n restriction, you may remove that term. If a license document contains\n a further restriction but permits relicensing or conveying under this\n License, you may add to a covered work material governed by the terms\n of that license document, provided that the further restriction does\n not survive such relicensing or conveying.\n \n If you add terms to a covered work in accord with this section, you\n must place, in the relevant source files, a statement of the\n additional terms that apply to those files, or a notice indicating\n where to find the applicable terms.\n \n Additional terms, permissive or non-permissive, may be stated in the\n form of a separately written license, or stated as exceptions;\n the above requirements apply either way.\n \n 8. Termination.\n \n You may not propagate or modify a covered work except as expressly\n provided under this License. Any attempt otherwise to propagate or\n modify it is void, and will automatically terminate your rights under\n this License (including any patent licenses granted under the third\n paragraph of section 11).\n \n However, if you cease all violation of this License, then your\n license from a particular copyright holder is reinstated (a)\n provisionally, unless and until the copyright holder explicitly and\n finally terminates your license, and (b) permanently, if the copyright\n holder fails to notify you of the violation by some reasonable means\n prior to 60 days after the cessation.\n \n Moreover, your license from a particular copyright holder is\n reinstated permanently if the copyright holder notifies you of the\n violation by some reasonable means, this is the first time you have\n received notice of violation of this License (for any work) from that\n copyright holder, and you cure the violation prior to 30 days after\n your receipt of the notice.\n \n Termination of your rights under this section does not terminate the\n licenses of parties who have received copies or rights from you under\n this License. If your rights have been terminated and not permanently\n reinstated, you do not qualify to receive new licenses for the same\n material 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\n run a copy of the Program. Ancillary propagation of a covered work\n occurring solely as a consequence of using peer-to-peer transmission\n to receive a copy likewise does not require acceptance. However,\n nothing other than this License grants you permission to propagate or\n modify any covered work. These actions infringe copyright if you do\n not accept this License. Therefore, by modifying or propagating a\n covered 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\n receives a license from the original licensors, to run, modify and\n propagate that work, subject to this License. You are not responsible\n for enforcing compliance by third parties with this License.\n \n An \"entity transaction\" is a transaction transferring control of an\n organization, or substantially all assets of one, or subdividing an\n organization, or merging organizations. If propagation of a covered\n work results from an entity transaction, each party to that\n transaction who receives a copy of the work also receives whatever\n licenses to the work the party's predecessor in interest had or could\n give under the previous paragraph, plus a right to possession of the\n Corresponding Source of the work from the predecessor in interest, if\n the predecessor has it or can get it with reasonable efforts.\n \n You may not impose any further restrictions on the exercise of the\n rights granted or affirmed under this License. For example, you may\n not impose a license fee, royalty, or other charge for exercise of\n rights granted under this License, and you may not initiate litigation\n (including a cross-claim or counterclaim in a lawsuit) alleging that\n any patent claim is infringed by making, using, selling, offering for\n sale, 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\n License of the Program or a work on which the Program is based. The\n work thus licensed is called the contributor's \"contributor version\".\n \n A contributor's \"essential patent claims\" are all patent claims\n owned or controlled by the contributor, whether already acquired or\n hereafter acquired, that would be infringed by some manner, permitted\n by this License, of making, using, or selling its contributor version,\n but do not include claims that would be infringed only as a\n consequence of further modification of the contributor version. For\n purposes of this definition, \"control\" includes the right to grant\n patent sublicenses in a manner consistent with the requirements of\n this License.\n \n Each contributor grants you a non-exclusive, worldwide, royalty-free\n patent license under the contributor's essential patent claims, to\n make, use, sell, offer for sale, import and otherwise run, modify and\n propagate the contents of its contributor version.\n \n In the following three paragraphs, a \"patent license\" is any express\n agreement or commitment, however denominated, not to enforce a patent\n (such as an express permission to practice a patent or covenant not to\n sue for patent infringement). To \"grant\" such a patent license to a\n party means to make such an agreement or commitment not to enforce a\n patent against the party.\n \n If you convey a covered work, knowingly relying on a patent license,\n and the Corresponding Source of the work is not available for anyone\n to copy, free of charge and under the terms of this License, through a\n publicly available network server or other readily accessible means,\n then you must either (1) cause the Corresponding Source to be so\n available, or (2) arrange to deprive yourself of the benefit of the\n patent license for this particular work, or (3) arrange, in a manner\n consistent with the requirements of this License, to extend the patent\n license to downstream recipients. \"Knowingly relying\" means you have\n actual knowledge that, but for the patent license, your conveying the\n covered work in a country, or your recipient's use of the covered work\n in a country, would infringe one or more identifiable patents in that\n country that you have reason to believe are valid.\n \n If, pursuant to or in connection with a single transaction or\n arrangement, you convey, or propagate by procuring conveyance of, a\n covered work, and grant a patent license to some of the parties\n receiving the covered work authorizing them to use, propagate, modify\n or convey a specific copy of the covered work, then the patent license\n you grant is automatically extended to all recipients of the covered\n work and works based on it.\n \n A patent license is \"discriminatory\" if it does not include within\n the scope of its coverage, prohibits the exercise of, or is\n conditioned on the non-exercise of one or more of the rights that are\n specifically granted under this License. You may not convey a covered\n work if you are a party to an arrangement with a third party that is\n in the business of distributing software, under which you make payment\n to the third party based on the extent of your activity of conveying\n the work, and under which the third party grants, to any of the\n parties who would receive the covered work from you, a discriminatory\n patent license (a) in connection with copies of the covered work\n conveyed by you (or copies made from those copies), or (b) primarily\n for and in connection with specific products or compilations that\n contain the covered work, unless you entered into that arrangement,\n or that patent license was granted, prior to 28 March 2007.\n \n Nothing in this License shall be construed as excluding or limiting\n any implied license or other defenses to infringement that may\n otherwise 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\n otherwise) that contradict the conditions of this License, they do not\n excuse you from the conditions of this License. If you cannot convey a\n covered work so as to satisfy simultaneously your obligations under this\n License and any other pertinent obligations, then as a consequence you may\n not convey it at all. For example, if you agree to terms that obligate you\n to collect a royalty for further conveying from those to whom you convey\n the Program, the only way you could satisfy both those terms and this\n License 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\n permission to link or combine any covered work with a work licensed\n under version 3 of the GNU Affero General Public License into a single\n combined work, and to convey the resulting work. The terms of this\n License will continue to apply to the part which is the covered work,\n but the special requirements of the GNU Affero General Public License,\n section 13, concerning interaction through a network will apply to the\n combination as such.\n \n 14. Revised Versions of this License.\n \n The Free Software Foundation may publish revised and/or new versions of\n the GNU General Public License from time to time. Such new versions will\n be similar in spirit to the present version, but may differ in detail to\n address new problems or concerns.\n \n Each version is given a distinguishing version number. If the\n Program specifies that a certain numbered version of the GNU General\n Public License \"or any later version\" applies to it, you have the\n option of following the terms and conditions either of that numbered\n version or of any later version published by the Free Software\n Foundation. If the Program does not specify a version number of the\n GNU General Public License, you may choose any version ever published\n by the Free Software Foundation.\n \n If the Program specifies that a proxy can decide which future\n versions of the GNU General Public License can be used, that proxy's\n public statement of acceptance of a version permanently authorizes you\n to choose that version for the Program.\n \n Later license versions may give you additional or different\n permissions. However, no additional obligations are imposed on any\n author or copyright holder as a result of your choosing to follow a\n later version.\n \n 15. Disclaimer of Warranty.\n \n THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\n APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\n HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\n OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\n THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\n IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\n ALL 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\n WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\n THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\n GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\n USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\n DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\n PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\n EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\n SUCH DAMAGES.\n \n 17. Interpretation of Sections 15 and 16.\n \n If the disclaimer of warranty and limitation of liability provided\n above cannot be given local legal effect according to their terms,\n reviewing courts shall apply local law that most closely approximates\n an absolute waiver of all civil liability in connection with the\n Program, unless a warranty or assumption of liability accompanies a\n copy 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\n possible use to the public, the best way to achieve this is to make it\n free 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\n to attach them to the start of each source file to most effectively\n state the exclusion of warranty; and each file should have at least\n the \"copyright\" line and a pointer to where the full notice is found.\n \n \u003cone line to give the program's name and a brief idea of what it does.\u003e\n Copyright (C) \u003cyear\u003e \u003cname of author\u003e\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 \u003chttps://www.gnu.org/licenses/\u003e.\n \n Also 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\n notice like this when it starts in an interactive mode:\n \n \u003cprogram\u003e Copyright (C) \u003cyear\u003e \u003cname of author\u003e\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 \n The hypothetical commands `show w' and `show c' should show the appropriate\n parts of the General Public License. Of course, your program's commands\n might 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,\n if any, to sign a \"copyright disclaimer\" for the program, if necessary.\n For more information on this, and how to apply and follow the GNU GPL, see\n \u003chttps://www.gnu.org/licenses/\u003e.\n \n The GNU General Public License does not permit incorporating your program\n into proprietary programs. If your program is a subroutine library, you\n may consider it more useful to permit linking proprietary applications with\n the library. If this is what you want to do, use the GNU Lesser General\n Public License instead of this License. But first, please read\n \u003chttps://www.gnu.org/licenses/why-not-lgpl.html\u003e.\n ", + "versions": 1999, "want": [ "Unknown" ] }, { - "license": "Copyright © 2025 Frontmatter. All rights reserved.", - "versions": 284, + "license": "Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. \"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. \"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. \"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. \"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License. \"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. \"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. \"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). \"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. \"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\" \"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets \"[]\" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same \"printed page\" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.", + "versions": 1985, "want": [ "Unknown" ] }, { - "license": "GPL v3 or later", - "versions": 283, + "license": "MPLv2", + "versions": 1934, "want": [ "Unknown" ] }, { - "license": "LGPLv2", - "versions": 283, + "license": "apache 3.0", + "versions": 1856, "want": [ "Unknown" ] }, { - "license": "GPL-2.0-only", - "versions": 282, + "license": "BSD (3-clause)", + "versions": 1834, "want": [ - "GPL-2.0-only" + "Unknown" ] }, { - "license": "0BSD", - "versions": 279, + "license": "The MIT License (MIT)", + "versions": 1805, "want": [ - "0BSD" + "Unknown" ] }, { - "license": "new BSD", - "versions": 279, + "license": "PSF", + "versions": 1755, "want": [ "Unknown" ] }, { - "license": "GNU Affero General Public License (AGPL) version 3.0", - "versions": 278, + "license": "GPL3+", + "versions": 1742, "want": [ "Unknown" ] }, { - "license": "Apache License Version 2.0, January 2004 http://www.apache.org/licenses/", - "versions": 277, + "license": "ZPL 2.1", + "versions": 1632, "want": [ "Unknown" ] }, { - "license": "DSB 3-clause", - "versions": 277, + "license": "Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n \n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n \n 1. Definitions.\n \n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n \n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n \n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n \n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n \n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n \n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n \n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n \n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n \n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n \n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n \n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n \n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n \n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n \n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n \n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n \n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n \n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n \n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n \n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n \n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n \n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n \n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n \n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n \n END OF TERMS AND CONDITIONS\n \n APPENDIX: How to apply the Apache License to your work.\n \n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n \n Copyright [yyyy] [name of copyright owner]\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.", + "versions": 1624, "want": [ "Unknown" ] }, { - "license": "GPL2.0", - "versions": 277, + "license": "GNU General Public License v2.0 or later", + "versions": 1519, "want": [ "Unknown" ] }, { - "license": "LGPL-3.0-only", - "versions": 275, + "license": "Creative Commons Attribution-ShareAlike 4.0 International", + "versions": 1519, "want": [ - "LGPL-3.0-only" + "Unknown" ] } - ] + ], + "coverage": "every one of the 278 free-form strings that RESOLVE (843695 of 1745000 (name, version) pairs, 48.35%), plus the 60 highest-volume rejections as regression anchors; 17846 distinct strings in the corpus overall", + "notes": [ + "Real values of the legacy free-form `License:` field on PyPI, with the SPDX types Types() derives from each. This is a REGRESSION FIXTURE, not a specification: every non-Unknown row is a claim about a real package's license and must be reviewed by a human when it changes, not re-recorded to make a test pass.", + "Keyed on what RESOLVES rather than on what is frequent. A resolving row is a claim; a rejecting row is a non-claim. Sampling by volume would omit the entire tail, which is exactly where a single-word SPDX identifier that is also an ordinary word or a company name (Intel, Nokia, Fair, DOC) can be mistaken for a license the package never granted.", + "Rows longer than license.TextDumpMaxLen are excluded: they are license-text dumps, which the derivation refuses to tokenize at all. The in-code tests cover that case directly.", + "`versions` is recorded so a reviewer can see what a row is worth. Nothing asserts on it." + ], + "source": "bigquery-public-data.pypi.distribution_metadata, captured 2026-08-18" }