license_name stringlengths 10 89 | spdx_id stringlengths 2 36 | license_family stringlengths 2 36 | version stringclasses 56
values | version_modifier stringclasses 2
values | usage_category stringclasses 4
values | full_text stringlengths 88 46.1k | source_url stringlengths 33 67 | page_markdown stringlengths 339 46.3k | fsf_tags stringclasses 8
values | fsf_gpl_compatibility stringclasses 5
values | fsf_category stringclasses 6
values | is_fsf_classified bool 2
classes | is_fsf_libre bool 2
classes | is_fsf_nonfree bool 2
classes | fsf_gpl2_compatible bool 2
classes | fsf_gpl3_compatible bool 2
classes | fsf_fdl_compatible bool 2
classes | fsf_viewpoint_restricted bool 2
classes | compatible_exceptions stringclasses 3
values | spdx_ref int64 0 726 | is_deprecated bool 2
classes | num_chars int64 88 46.1k | num_words int64 8 7.15k | num_paragraphs int64 1 138 | ttr float64 0.13 1 | guiraud_r float64 2.83 18.5 | dugast_u float64 3.85 170 | mattr float64 0.56 1 | entropy_s float64 3 8.6 | entropy_s_norm float64 0.79 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
BSD Zero Clause License | 0BSD | 0BSD | null | null | other | Copyright (C) YEAR by AUTHOR EMAIL
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNE... | https://spdx.org/licenses/0BSD.html | # BSD Zero Clause License
**SPDX Identifier:** `0BSD`
**Source:** https://spdx.org/licenses/0BSD.html
## FSF Classification
**GPL compatibility:** GPL-2 and GPL-3 compatible
**Tags:** gpl-2-compatible, gpl-3-compatible, libre
(Source: [FSF License List API](https://github.com/spdx/fsf-api))
## License Text
```
Cop... | ["gpl-2-compatible", "gpl-3-compatible", "libre"] | GPL-2 and GPL-3 compatible | libre+gpl_both | true | true | false | true | true | false | false | [] | 459 | false | 643 | 103 | 3 | 0.6796 | 6.9 | 15.1 | 0.6775 | 5.873 | 0.9582 |
3D Slicer License v1.0 | 3D-Slicer-1.0 | 3D-Slicer | 1.0 | null | other | 3D Slicer Contribution and Software License Agreement ("Agreement")
Version 1.0 (December 20, 2005)
This Agreement covers contributions to and downloads from the 3D
Slicer project ("Slicer") maintained by The Brigham and Women's
Hospital, Inc. ("Brigham"). Part A of this Agreement applies to
contributions of software ... | https://spdx.org/licenses/3D-Slicer-1.0.html | # 3D Slicer License v1.0
**SPDX Identifier:** `3D-Slicer-1.0`
**Source:** https://spdx.org/licenses/3D-Slicer-1.0.html
## License Text
```
3D Slicer Contribution and Software License Agreement ("Agreement")
Version 1.0 (December 20, 2005)
This Agreement covers contributions to and downloads from the 3D
Slicer project... | null | null | not_classified | false | false | false | false | false | false | false | [] | 490 | false | 10,299 | 1,533 | 26 | 0.3203 | 12.54 | 66.94 | 0.6722 | 7.6203 | 0.8524 |
Attribution Assurance License | AAL | AAL | null | null | other | Attribution Assurance License
Copyright (c) 2002 by AUTHOR PROFESSIONAL IDENTIFICATION * URL "PROMOTIONAL SLOGAN FOR AUTHOR'S PROFESSIONAL PRACTICE"
All Rights Reserved
ATTRIBUTION ASSURANCE LICENSE (adapted from the original BSD license)
Redistribution and use in source and binary forms, with or without modificati... | https://spdx.org/licenses/AAL.html | # Attribution Assurance License
**SPDX Identifier:** `AAL`
**Source:** https://spdx.org/licenses/AAL.html
## Notes
This license was released: 2002 Originally written by Edwin A. Suominen for licensing his PRIVARIA secure networking software (see www.privaria.org). The author, who is not an attorney, places this licens... | null | null | not_classified | false | false | false | false | false | false | false | [] | 314 | false | 2,529 | 372 | 11 | 0.6075 | 11.72 | 38.18 | 0.7538 | 7.2814 | 0.9311 |
Abstyles License | Abstyles | Abstyles | null | null | other | This is APREAMBL.TEX, version 1.10e, written by Hans-Hermann Bode
(HHBODE@DOSUNI1.BITNET), for the BibTeX `adaptable' family, version 1.10.
See the file APREAMBL.DOC for a detailed documentation.
This program is distributed WITHOUT ANY WARRANTY, express or implied.
Copyright (C) 1991, 1992 Hans-Hermann Bode
Permissi... | https://spdx.org/licenses/Abstyles.html | # Abstyles License
**SPDX Identifier:** `Abstyles`
**Source:** https://spdx.org/licenses/Abstyles.html
## License Text
```
This is APREAMBL.TEX, version 1.10e, written by Hans-Hermann Bode
(HHBODE@DOSUNI1.BITNET), for the BibTeX `adaptable' family, version 1.10.
See the file APREAMBL.DOC for a detailed documentation.
... | null | null | not_classified | false | false | false | false | false | false | false | [] | 336 | false | 731 | 105 | 5 | 0.619 | 6.34 | 13.97 | 0.6317 | 5.758 | 0.9561 |
AdaCore Doc License | AdaCore-doc | AdaCore-doc | null | null | other | This document may be copied, in whole or in part, in any form or by any means, as is or with alterations, provided that (1) alterations are clearly marked as alterations and (2) this copyright notice is included unmodified in any copy.
| https://spdx.org/licenses/AdaCore-doc.html | # AdaCore Doc License
**SPDX Identifier:** `AdaCore-doc`
**Source:** https://spdx.org/licenses/AdaCore-doc.html
## License Text
```
This document may be copied, in whole or in part, in any form or by any means, as is or with alterations, provided that (1) alterations are clearly marked as alterations and (2) this copy... | null | null | not_classified | false | false | false | false | false | false | false | [] | 363 | false | 236 | 42 | 1 | 0.7381 | 4.78 | 8.29 | 0.7381 | 4.7849 | 0.9658 |
Adobe Systems Incorporated Source Code License Agreement | Adobe-2006 | Adobe | 2006 | null | other | Adobe Systems Incorporated(r) Source Code License Agreement
Copyright(c) 2006 Adobe Systems Incorporated. All rights reserved.
Please read this Source Code License Agreement carefully before using the source code.
Adobe Systems Incorporated grants to you a perpetual, worldwide, non-exclusive, no-charge, royalty-free,... | https://spdx.org/licenses/Adobe-2006.html | # Adobe Systems Incorporated Source Code License Agreement
**SPDX Identifier:** `Adobe-2006`
**Source:** https://spdx.org/licenses/Adobe-2006.html
## License Text
```
Adobe Systems Incorporated(r) Source Code License Agreement
Copyright(c) 2006 Adobe Systems Incorporated. All rights reserved.
Please read this Source ... | null | null | not_classified | false | false | false | false | false | false | false | [] | 48 | false | 1,776 | 261 | 6 | 0.6284 | 10.15 | 29.47 | 0.7417 | 6.8988 | 0.9377 |
Adobe Display PostScript License | Adobe-Display-PostScript | Adobe-Display-PostScript | null | null | other | (c)Copyright 1988,1991 Adobe Systems Incorporated.
All rights reserved.
Permission to use, copy, modify, distribute, and sublicense this software and its
documentation for any purpose and without fee is hereby granted, provided that
the above copyright notices appear in all copies and that both those copyright
notices... | https://spdx.org/licenses/Adobe-Display-PostScript.html | # Adobe Display PostScript License
**SPDX Identifier:** `Adobe-Display-PostScript`
**Source:** https://spdx.org/licenses/Adobe-Display-PostScript.html
## License Text
```
(c)Copyright 1988,1991 Adobe Systems Incorporated.
All rights reserved.
Permission to use, copy, modify, distribute, and sublicense this software a... | null | null | not_classified | false | false | false | false | false | false | false | [] | 62 | false | 1,883 | 283 | 4 | 0.5124 | 8.62 | 25.68 | 0.6692 | 6.6629 | 0.928 |
Adobe Glyph List License | Adobe-Glyph | Adobe-Glyph | null | null | other | Copyright (c) 1997,1998,2002,2007 Adobe Systems Incorporated
Permission is hereby granted, free of charge, to any person obtaining a copy of this documentation file to use, copy, publish, distribute, sublicense, and/or sell copies of the documentation, and to permit others to do the same, provided that:
- No mod... | https://spdx.org/licenses/Adobe-Glyph.html | # Adobe Glyph List License
**SPDX Identifier:** `Adobe-Glyph`
**Source:** https://spdx.org/licenses/Adobe-Glyph.html
## License Text
```
Copyright (c) 1997,1998,2002,2007 Adobe Systems Incorporated
Permission is hereby granted, free of charge, to any person obtaining a copy of this documentation file to use, copy, pu... | null | null | not_classified | false | false | false | false | false | false | false | [] | 538 | false | 1,607 | 250 | 5 | 0.556 | 8.79 | 25.17 | 0.6977 | 6.6076 | 0.9282 |
Adobe Utopia Font License | Adobe-Utopia | Adobe-Utopia | null | null | other | Permission to use, reproduce, display and distribute the listed typefaces
is hereby granted, provided that the Adobe Copyright notice appears in all
whole and partial copies of the software and that the following trademark
symbol and attribution appear in all unmodified copies of the software:
The Adobe typefaces (Typ... | https://spdx.org/licenses/Adobe-Utopia.html | # Adobe Utopia Font License
**SPDX Identifier:** `Adobe-Utopia`
**Source:** https://spdx.org/licenses/Adobe-Utopia.html
## License Text
```
Permission to use, reproduce, display and distribute the listed typefaces
is hereby granted, provided that the Adobe Copyright notice appears in all
whole and partial copies of th... | null | null | not_classified | false | false | false | false | false | false | false | [] | 1 | false | 481 | 69 | 3 | 0.6667 | 5.54 | 10.86 | 0.6667 | 5.2698 | 0.9541 |
Amazon Digital Services License | ADSL | ADSL | null | null | other | This software code is made available "AS IS" without warranties of any kind. You may copy, display, modify and redistribute the software code either by itself or as incorporated into your code; provided that you do not remove any proprietary notices. Your use of this software code is at your own risk and you waive any ... | https://spdx.org/licenses/ADSL.html | # Amazon Digital Services License
**SPDX Identifier:** `ADSL`
**Source:** https://spdx.org/licenses/ADSL.html
## License Text
```
This software code is made available "AS IS" without warranties of any kind. You may copy, display, modify and redistribute the software code either by itself or as incorporated into your c... | null | null | not_classified | false | false | false | false | false | false | false | [] | 157 | false | 488 | 83 | 1 | 0.6867 | 6.26 | 12.9 | 0.6867 | 5.6458 | 0.9679 |
Advanced Cryptics Dictionary License | Advanced-Cryptics-Dictionary | Advanced-Cryptics-Dictionary | null | null | other | License text: Copyright (c) J Ross Beresford 1993-1999. All Rights Reserved.
The following restriction is placed on the use of this publication:
if The UK Advanced Cryptics Dictionary is used in a software package
or redistributed in any form, the copyright notice must be
prominently displayed and the text of this doc... | https://spdx.org/licenses/Advanced-Cryptics-Dictionary.html | # Advanced Cryptics Dictionary License
**SPDX Identifier:** `Advanced-Cryptics-Dictionary`
**Source:** https://spdx.org/licenses/Advanced-Cryptics-Dictionary.html
## License Text
```
License text: Copyright (c) J Ross Beresford 1993-1999. All Rights Reserved.
The following restriction is placed on the use of this pub... | null | null | not_classified | false | false | false | false | false | false | false | [] | 635 | false | 451 | 73 | 3 | 0.8219 | 7.02 | 13.98 | 0.8219 | 5.7582 | 0.9748 |
Academic Free License v1.1 | AFL-1.1 | AFL | 1.1 | null | other | Academic Free License
Version 1.1
The Academic Free License applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following notice immediately following the copyright notice for the Original Work:
"Licensed under the Academic Free License version 1.1."
Gran... | https://spdx.org/licenses/AFL-1.1.html | # Academic Free License v1.1
**SPDX Identifier:** `AFL-1.1`
**Source:** https://spdx.org/licenses/AFL-1.1.html
## Notes
This license has been superseded by later versions.
## FSF Classification
**GPL compatibility:** Free (libre) but not marked GPL-compatible
**Tags:** libre
(Source: [FSF License List API](https://... | ["libre"] | Free (libre) but not marked GPL-compatible | libre_only | true | true | false | false | false | false | false | [] | 545 | false | 4,676 | 721 | 13 | 0.4105 | 11.02 | 44.98 | 0.636 | 7.1645 | 0.8727 |
Academic Free License v1.2 | AFL-1.2 | AFL | 1.2 | null | other | Academic Free License
Version 1.2
This Academic Free License applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the
following notice immediately following the copyright notice for the Original Work:
Licensed under the Academic Free License version 1.2
Grant ... | https://spdx.org/licenses/AFL-1.2.html | # Academic Free License v1.2
**SPDX Identifier:** `AFL-1.2`
**Source:** https://spdx.org/licenses/AFL-1.2.html
## Notes
This license has been superseded by later versions. We found these notes here: https://web.archive.org/web/20100828113909/http://opensource.linux-mirror.org/licenses/afl-1.2.txt The following is inte... | ["libre"] | Free (libre) but not marked GPL-compatible | libre_only | true | true | false | false | false | false | false | [] | 492 | false | 4,950 | 771 | 12 | 0.4021 | 11.16 | 46.63 | 0.6493 | 7.2319 | 0.8738 |
Academic Free License v2.0 | AFL-2.0 | AFL | 2.0 | null | other | The Academic Free License
v. 2.0
This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following notice immediately following the copyright notice for the Original Work:
Licensed under the Academic Free License vers... | https://spdx.org/licenses/AFL-2.0.html | # Academic Free License v2.0
**SPDX Identifier:** `AFL-2.0`
**Source:** https://spdx.org/licenses/AFL-2.0.html
## FSF Classification
**GPL compatibility:** Free (libre) but not marked GPL-compatible
**Tags:** libre
(Source: [FSF License List API](https://github.com/spdx/fsf-api))
## License Text
```
The Academic F... | ["libre"] | Free (libre) but not marked GPL-compatible | libre_only | true | true | false | false | false | false | false | [] | 19 | false | 8,986 | 1,411 | 20 | 0.3515 | 13.2 | 68.39 | 0.6594 | 7.6012 | 0.8489 |
Academic Free License v2.1 | AFL-2.1 | AFL | 2.1 | null | other | The Academic Free License
v.2.1
This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following notice immediately following the copyright notice for the Original Work:
Licensed under the Academic Free License versi... | https://spdx.org/licenses/AFL-2.1.html | # Academic Free License v2.1
**SPDX Identifier:** `AFL-2.1`
**Source:** https://spdx.org/licenses/AFL-2.1.html
## FSF Classification
**GPL compatibility:** Free (libre) but not marked GPL-compatible
**Tags:** libre
(Source: [FSF License List API](https://github.com/spdx/fsf-api))
## License Text
```
The Academic F... | ["libre"] | Free (libre) but not marked GPL-compatible | libre_only | true | true | false | false | false | false | false | [] | 262 | false | 8,947 | 1,405 | 20 | 0.3544 | 13.29 | 68.71 | 0.6635 | 7.6045 | 0.8487 |
Academic Free License v3.0 | AFL-3.0 | AFL | 3.0 | null | model | Academic Free License (“AFL”) v. 3.0
This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:
Licensed under the Academic Free License ... | https://spdx.org/licenses/AFL-3.0.html | # Academic Free License v3.0
**SPDX Identifier:** `AFL-3.0`
**Source:** https://spdx.org/licenses/AFL-3.0.html
## FSF Classification
**GPL compatibility:** Free (libre) but not marked GPL-compatible
**Tags:** libre
(Source: [FSF License List API](https://github.com/spdx/fsf-api))
## License Text
```
Academic Free ... | ["libre"] | Free (libre) but not marked GPL-compatible | libre_only | true | true | false | false | false | false | false | [] | 620 | false | 10,315 | 1,637 | 20 | 0.3378 | 13.67 | 74.72 | 0.6625 | 7.6593 | 0.8407 |
Afmparse License | Afmparse | Afmparse | null | null | other | (C) 1988, 1989 by Adobe Systems Incorporated. All rights reserved.
This file may be freely copied and redistributed as long as:
1) This entire notice continues to be included in the file,
2) If the file has been modified in any way, a notice of such modification is conspicuously indicated.
PostScript, Disp... | https://spdx.org/licenses/Afmparse.html | # Afmparse License
**SPDX Identifier:** `Afmparse`
**Source:** https://spdx.org/licenses/Afmparse.html
## License Text
```
(C) 1988, 1989 by Adobe Systems Incorporated. All rights reserved.
This file may be freely copied and redistributed as long as:
1) This entire notice continues to be included in the file,
... | null | null | not_classified | false | false | false | false | false | false | false | [] | 224 | false | 893 | 133 | 5 | 0.6842 | 7.89 | 18.61 | 0.7221 | 6.2668 | 0.963 |
Affero General Public License v1.0 | AGPL-1.0 | AGPL | 1.0 | null | other | AFFERO GENERAL PUBLIC LICENSE
Version 1, March 2002 Copyright © 2002 Affero Inc. 510 Third Street - Suite 225, San Francisco, CA 94107, USA
This license is a modified version of the GNU General Public License copyright (C) 1989, 1991 Free Software Foundation, Inc. made with their permission. Section 2(d) has been adde... | https://spdx.org/licenses/AGPL-1.0.html | # Affero General Public License v1.0
**SPDX Identifier:** `AGPL-1.0`
**Source:** https://spdx.org/licenses/AGPL-1.0.html
## Notes
DEPRECATED: Use the license identifier AGPL-1.0-only instead of AGPL-1.0.
## FSF Classification
**GPL compatibility:** Free (libre) but not marked GPL-compatible
**Tags:** libre
(Sourc... | ["libre"] | Free (libre) but not marked GPL-compatible | libre_only | true | true | false | false | false | false | false | [] | 198 | true | 15,838 | 2,658 | 40 | 0.2889 | 14.9 | 97.4 | 0.6709 | 8.0038 | 0.835 |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
SPDX License Dataset
Build pipeline for three datasets on Hugging Face:
- midah/hf-dataset-licenses — 700+ SPDX licenses with full text, FSF metadata, HF usage categories, and compatible exceptions
- midah/hf-asset-license — ~95 HF Hub-selectable licenses (SPDX-mapped + HF-only like Llama 2, Gemma, OpenRAIL) with LLM-extracted clause features
- midah/hf-dataset-licenses-exceptions — SPDX license exceptions used in WITH expressions (e.g.
GPL-2.0-only WITH Classpath-exception-2.0)
How it works
The pipeline fetches every license from the SPDX License List, enriches each one with FSF classification, Hugging Face Hub usage statistics, temporal metadata, and text metrics, then publishes the result as a HF dataset.
The flow has three phases: build, enrich, and publish.
Build
build_license_dataset.py fetches the SPDX license list, downloads each license's full text and page markdown from spdx.org, parses version/family information, and maps compatible exceptions. It also pulls FSF metadata (libre/non-free, GPL compatibility) and derives a usage category from HF Hub counts. The output is spdx_licenses_dataset/ (Arrow) and spdx_licenses_dataset.parquet.
build_spdx_exceptions.py does the same for SPDX exceptions — the license addenda used in WITH expressions.
Two supporting build scripts produce the reference data that feeds into the main build:
build_hf_selectable.py— maps SPDX identifiers to Hugging Face Hub license dropdown values and writesschemas/hf_selectable_licenses.jsonbuild_hf_license_counts.py— scrapes HF Hub for per-license dataset and model counts, writesschemas/hf_license_counts.jsonandhf_license_counts.parquet
Enrich
enrich_dataset.py adds columns to the existing dataset without rebuilding from scratch. Each enrichment can run independently:
| Flag | What it adds | Source |
|---|---|---|
--fsf |
fsf_category, is_fsf_libre, compatibility flags |
FSF API via license_utils/fsf.py |
--temporal |
spdx_ref, is_deprecated |
SPDX license list via license_utils/temporal.py |
--spdx-dates |
spdx_added_date, spdx_last_modified |
GitHub commit history via license_utils/spdx_dates.py |
--lengths |
num_chars, num_words |
license_texts.json via license_utils/text_metrics.py |
--usage |
usage_category, dataset_count, model_count |
HF counts via license_utils/hf_usage.py |
Publish
Any build or enrich step accepts --push to upload the result to Hugging Face. make push-licenses rebuilds and pushes in one step; make push-only pushes the existing local dataset.
export_licenses_metadata.py exports a lightweight licenses_metadata.json (no full texts) for downstream tooling.
Plots
gen_plots.py --all generates all figures into figures/. The individual plot scripts can also run standalone:
| Script | Figures | What it shows |
|---|---|---|
gen_openness_plots.py |
figures/openness/ |
Openness score distribution, HF-selectable vs non-selectable |
gen_temporal_plots.py |
figures/temporal/ |
Version evolution, calendar-time trends, text complexity |
gen_usage_plot.py |
figures/usage/ |
Top HF license usage by artifact type |
Project layout
scripts/ Pipeline scripts (build, enrich, export, plot)
license_utils/ Shared library (FSF, temporal, SPDX dates, HF usage, text metrics)
schemas/ Reference JSON (features.json, hf_selectable_licenses.json, hf_license_counts.json)
figures/ Generated plots (openness, temporal, usage, overview, llm)
llm_extractions/ LLM-based feature extraction (separate pipeline)
hf_catalog/ HF catalog data
Quick start
pip install -r requirements.txt
# Full pipeline
make build-licenses # ~15 min
python scripts/build_hf_selectable.py # SPDX→HF mapping
python scripts/build_hf_license_counts.py # HF usage counts
make enrich # All enrichments
make push-licenses # Push to HF
# Individual steps
make enrich-usage # Just usage columns
make gen-plots # Generate all figures
make export-metadata # Export licenses_metadata.json
Dataset fields (hf-asset-license)
Core: license_name, spdx_id, license_family, version, version_modifier, full_text, source_url, page_markdown, source
FSF: fsf_category, fsf_tags, fsf_gpl_compatibility, is_fsf_libre, is_fsf_nonfree, fsf_gpl2_compatible, fsf_gpl3_compatible, fsf_fdl_compatible, fsf_viewpoint_restricted
Usage: usage_category, dataset_count, model_count
Text: num_chars, num_words, ttr, guiraud_r, dugast_u, mattr
LLM-extracted: prohibits_commercial_use, requires_attribution, requires_sharealike, applies_to_outputs, has_clause_training, has_clause_finetuning, has_provenance_obligations, has_clause_model_redistribution, has_clause_data_redistribution, has_clause_access_mode, allows_training_use, has_patent_grant, has_patent_termination, allows_commercial_use, prohibits_derivatives, is_ml_specific, has_ai_use_restrictions, jurisdiction, patent
Usage
from datasets import load_dataset
# Full SPDX corpus (700+ licenses)
ds = load_dataset("midah/hf-dataset-licenses")
mit = ds["train"].filter(lambda x: x["spdx_id"] == "MIT")[0]
# HF Hub-selectable subset with LLM features (~95 licenses)
ds = load_dataset("midah/hf-asset-license")
License
CC0-1.0. Individual license texts retain their original terms.
- Downloads last month
- 85