Datasets:
sha1 stringlengths 40 40 | gt stringclasses 79
values | want stringclasses 65
values | top stringclasses 103
values | set listlengths 0 3 |
|---|---|---|---|---|
005f302dd7432ec58efb3a54cb02a802ed3a8211 | MIT | MIT | MIT | [
"MIT"
] |
006169a4119b23146b15b56107d912dc9664a2c7 | MIT | MIT | MIT | [
"MIT"
] |
00621ece679633437ff76c248b7636afb9bf3b00 | MIT | MIT | MIT | [
"MIT"
] |
006dda46c25cad379f2c6d76242a03419cb0edd4 | MIT | MIT | MIT | [
"MIT"
] |
0070ed3a323b38607dce4aaf394c8ae5556a17c4 | MIT | MIT | MIT | [
"MIT"
] |
007319b3cba24df8f81100ed0a62338519c60a2c | MIT | MIT | MIT | [
"MIT"
] |
007523580f878ff5ff139076b2086273e5a26556 | MIT | MIT | MIT | [
"MIT"
] |
00763d2d25fb174f7e753b1b788f47f4870f64de | MIT | MIT | MIT | [
"MIT"
] |
008be86475821de6210f3ff6260c5696df4af757 | MIT | MIT | MIT | [
"MIT"
] |
00918ad5a788e3bcbc01ef0314f50910eb4d4e91 | MIT | MIT | MIT | [
"MIT"
] |
009f19b5f9e7478906b388969b05fc713ce96879 | MIT | MIT | MIT | [
"MIT"
] |
009f7b633eef9788af55cd2ab4d68ac9f94ac8c6 | MIT | MIT | MIT | [
"MIT"
] |
00a6d4631364eaa1a2ba8c8ffee897baeb4b21a6 | MIT | MIT | MIT | [
"MIT"
] |
00a948489458f68dc4419bf1148d0c85fbf691e6 | MIT | MIT | MIT | [
"MIT"
] |
00aa927c0ec4ab01fe13e61d10d122055a5b031c | MIT | MIT | MIT | [
"MIT"
] |
00c5abafff6007555ea52d62fc986bd6dbec923d | MIT | MIT | MIT | [
"MIT"
] |
00ca766f0dd20e79a6ae9c01402822c9e769fe2a | MIT | MIT | MIT | [
"MIT"
] |
00cbdebae36bc56048f53e5799f055e7ecf18de2 | MIT | MIT | MIT | [
"MIT"
] |
00d2ac597253a86368478bfe578d95fed45ad2fd | MIT | MIT | MIT | [
"MIT"
] |
00d3d80045703b3a2f18c35c19bddeed4da9a87e | MIT | MIT | MIT | [
"MIT"
] |
00d67231cd1441809cfcac39e0dce03df198c838 | MIT | MIT | MIT | [
"MIT"
] |
00d85e467b4d382fa8f521e3e8505dceacbe860d | Apache-2.0 | Apache-2.0 | Apache-2.0 | [
"Apache-2.0"
] |
00e20abe657a37c47a9a7b10da8277d073125f20 | MIT | MIT | MIT | [
"MIT"
] |
00e626e18a38e15825f2aff49d5a68cf7470a644 | MIT | MIT | MIT | [
"MIT"
] |
00ebd7a7d0a121487598568e44da16e336083a39 | MIT | MIT | MIT | [
"MIT"
] |
00eccba62373322f59298a0a99b4a6c42802d62a | MIT | MIT | MIT | [
"MIT"
] |
00f334988c260f559b65a4c27c21187d79a15125 | MIT | MIT | MIT | [
"MIT"
] |
00f3723cdd421d3cce2652c99bddec415c1ac269 | MIT | MIT | MIT | [
"MIT"
] |
010ce93ffd6a6b4455954ecea530acf59a20db6f | MIT | MIT | MIT | [
"MIT"
] |
0114e8c57e7284f87f3a91ae82beeb9159eae00a | MIT | MIT | MIT | [
"MIT"
] |
0119fc25799fed030149f6cd30ee9471e938a38f | MIT | MIT | MIT | [
"MIT"
] |
0126db78521f72ccd5ec5bd9632ee2dba69c1452 | MIT | MIT | MIT | [
"MIT"
] |
012715512e36321246eb2a6002d77ec488a67406 | MIT | MIT | MIT | [
"MIT"
] |
0145d1125cc2737f54373622b60edf9b0d7ae242 | MIT | MIT | MIT | [
"MIT"
] |
01473c31c2f2c23f3bada79f2034524927b6b4d1 | MIT | MIT | MIT | [
"MIT"
] |
014781f0dd086aaa439b7a51d3ec7f795adf6daf | MIT | MIT | MIT | [
"MIT"
] |
014d69031dfd93b16865bacc34c626ffd48b9832 | MIT | MIT | MIT | [
"MIT"
] |
01518c1ffc581ccb0e1df8337bdb98157125dc00 | MIT | MIT | MIT | [
"MIT"
] |
01531b83a121e72bc2222f98eddc9bc9b323f41f | MIT | MIT | MIT | [
"MIT"
] |
01583af00c73c6310d9858343ff49f27de4addff | MIT | MIT | MIT | [
"MIT"
] |
01601cb14c140d03aa647cdd4c2085d663ebf8c4 | MIT | MIT | MIT | [
"MIT"
] |
0163fcd51cb09f1739fec9ca0e427a7a116b24ce | MIT | MIT | MIT | [
"MIT"
] |
0168398f16447fa20f40e7bc390231e5b0bc2546 | MIT | MIT | MIT | [
"MIT"
] |
016a19b167d0e09c5225fd527e9164d3d00abe7d | MIT | MIT | MIT | [
"MIT"
] |
016d9464adc709bc3dad7252c1be30c226442e56 | MIT | MIT | MIT | [
"MIT"
] |
0177b6ba7aac9a5e163564d7f2fc278fbf69ea22 | MIT | MIT | MIT | [
"MIT"
] |
017a459a0652fad7e130023577cd172f1fa655bb | MIT | MIT | MIT | [
"MIT"
] |
018d080fd68ecad6909333e0f0aa73a3597f3c8a | MIT | MIT | MIT | [
"MIT"
] |
018f2e19572c4f60f168c230852ec652c08cfc69 | MIT | MIT | MIT | [
"MIT"
] |
018fc14a1c4995389db5c6641af0e0b23ee92151 | MIT | MIT | MIT | [
"MIT"
] |
019cbb4f6022bd82631da0fa0d7f3c8bf159a484 | MIT | MIT | MIT | [
"MIT"
] |
01a14b53ffaf7ea90bc3bbbeadf528368669d60e | MIT | MIT | MIT | [
"MIT"
] |
01b0f5028622e2281a044492aaac79c7ce77d825 | MIT | MIT | MIT | [
"MIT"
] |
01b25ecd30eb08acc7553f64b5e7f1e45ce05583 | MIT | MIT | MIT | [
"MIT"
] |
01baf1f898daab001d53472c072f59ac711f9e71 | MIT | MIT | MIT | [
"MIT"
] |
01ccb2e6a7ffd1f86dfdb4aa350d38d9376b01e1 | MIT | MIT | MIT | [
"MIT"
] |
01e32ae7659bef4f4f7d3c0f335ab2a477a54e3f | MIT | MIT | MIT | [
"MIT"
] |
01fad1edb2b1599ad535abebf255a101bce91ef7 | MIT | MIT | MIT | [
"MIT"
] |
020a3a6ce6f622f46f234a51bd52d5efbc9610e4 | MIT | MIT | MIT | [
"MIT"
] |
021322000adc0d11af6975319b450fccc350aaba | MIT | MIT | MIT | [
"MIT"
] |
021f83c0660874d00f29723631084e43b0189a7a | MIT | MIT | MIT | [
"MIT"
] |
0220bc012a58e303ec6fdb3c62f67186f99bd817 | MIT | MIT | MIT | [
"MIT"
] |
0223c69937626ad13720f4d52eae15cf773c3374 | MIT | MIT | MIT | [
"MIT"
] |
0225871603a71556f09733d5559351755a8eb083 | MIT | MIT | MIT | [
"MIT"
] |
023321700c2187dd591f63988776f318d4374619 | MIT | MIT | MIT | [
"MIT"
] |
0235fecb555729c9f3e059807a9f26c4a48c3396 | MIT | MIT | MIT | [
"MIT"
] |
023c430ef6408ea40b15039dfb74859d0046755e | MIT | MIT | MIT | [
"MIT"
] |
0246d3fe2e894656f7b26b3d4cbaa8ec256d66b8 | MIT | MIT | MIT | [
"MIT"
] |
0249f68cfd9d651e6a53ed62ec292f9295827b34 | MIT | MIT | MIT | [
"MIT"
] |
025049eaf93a7ea8f199174f4829e2e59b257864 | BSD-3-Clause | BSD-3-Clause | BSD-3-Clause | [
"BSD-3-Clause"
] |
02555c20a2bffeae8315a2ea94e036a4407e58de | MIT | MIT | MIT | [
"MIT"
] |
0255b342b5eaf68e20ff3b7250ad1c62f000711c | BSD-3-Clause | BSD-3-Clause | BSD-3-Clause | [
"BSD-3-Clause"
] |
0266a97e03476753c95f801728c19bc00fe0e3b2 | MIT | MIT | MIT | [
"MIT"
] |
026e87189441a8e4bb8c1f0b3161c280ca440f04 | MIT | MIT | MIT | [
"MIT"
] |
026fa22d21043446de9c03b294d8e44e732a8efe | MIT | MIT | MIT | [
"MIT"
] |
02750ece22e661249df9803630e2abab412bf9a5 | MIT | MIT | MIT | [
"MIT"
] |
02791b8c8542db54328d5e558ed4e817a4cae898 | MIT | MIT | MIT | [
"MIT"
] |
027caea950bf15d4186132ce8ad0957d68d4df27 | MIT | MIT | MIT | [
"MIT"
] |
02892c08ce8325425e7e254f617c0bc0125a3679 | MIT | MIT | MIT | [
"MIT"
] |
028aff01d246491527754743b4ebbe50327d3e42 | MIT | MIT | MIT | [
"MIT"
] |
028d938214843cbb7a6dbb3c78e807f2dd6bcd03 | MIT | MIT | MIT | [
"MIT"
] |
028eebf710abcc39e677d36f12c9cf557647e238 | MIT | MIT | MIT | [
"MIT"
] |
0294b92659374119446fd9ec24cfc9157e6c8f8f | MIT | MIT | MIT | [
"MIT"
] |
0296337f7e0d844d9b097ed946f897f3e2326c84 | MIT | MIT | MIT | [
"MIT"
] |
02c4402f90ee42525ac1046f50c2e83a7b6b770e | BSD-3-Clause | BSD-3-Clause | BSD-3-Clause | [
"BSD-3-Clause"
] |
02c85ca8c95882a3b250a3839163274c8d4ee98e | MIT | MIT | MIT | [
"MIT"
] |
02d386530366f34c19123f4d6a6e0b7289541381 | MIT | MIT | MIT | [
"MIT"
] |
02d7a0f355be6dbded87fe801f38972fb77f40a6 | MIT | MIT | MIT | [
"MIT"
] |
02dab20c01c72acd6002587ec4c08eb6a18d7707 | MIT | MIT | MIT | [
"MIT"
] |
02de9d6cf077d191382749b47caad971830cf05c | MIT | MIT | MIT | [
"MIT"
] |
02f1e5e414460940aaf62f5965e9c0cd1f97aab0 | MIT | MIT | MIT | [
"MIT"
] |
02f76100305975c3cae50d21bcf74d292721c36c | MIT | MIT | MIT | [
"MIT"
] |
030c1f2c346d89628a79fb375f694ccf9b862dce | MIT | MIT | MIT | [
"MIT"
] |
03124ad4331dcd3d99db27a7da7e14b760fb380d | MIT | MIT | MIT | [
"MIT"
] |
0317d7df74d219c8cf22f7465730f9fbb38a9bdd | MIT | MIT | MIT | [
"MIT"
] |
032077223107c7da62b52db7b85601a365a4982a | MIT | MIT | MIT | [
"MIT"
] |
032155e2c770ea64aacf507201f8ced4c9102c4c | MIT | MIT | MIT | [
"MIT"
] |
03384b8b8c41fec505fbd0d57f4cd556d0e2f49f | MIT | MIT | MIT | [
"MIT"
] |
033b7a32c7d7132d4f3430a9101031c40b3d6a1c | MIT | MIT | MIT | [
"MIT"
] |
0352e50e3c7cb2dee85c709754ca8f59923a0281 | MIT | MIT | MIT | [
"MIT"
] |
Software Heritage licence blobs — prevalence and tail corpora
The labels here are ScanCode's, not ground truth. This is a distillation of one scanner's output at score ≥ 95, useful as training data and as a self-comparison regression benchmark. It cannot be used to show that anything beats ScanCode, and a result quoted from it without that caveat is misleading. The one exception is the
tailconfig, where a human annotator reviewed and did not dispute the label — which also makes that split an easy subset for ScanCode.
Derived from the Software Heritage License Dataset (2022 edition).
Built for Atarashi, FOSSology's licence
identifier. Companion to rycerzes/atarashi-dep5,
which carries independent labels from Debian maintainers.
Why it exists
Licence granularity. Debian maintainers write bare MIT on every MIT variant, and
only 18 licences carry SPDX tags in the-stack, so no other corpus could teach a ranker
MIT-advertising against MIT, or CC-BY-SA-3.0 against CC-BY-3.0. ScanCode labels
every blob at full granularity, and this corpus took a model's trained licence set from
37 to 152.
Prevalence. The Software Heritage 20k sample is a random draw from 6.9M real licence blobs, so its label distribution is the real one. Most licence benchmarks take one file per licence and are macro by construction — the right instrument for "which licences can we identify at all", the wrong one for "how often are we right on real files". The two differ by a factor of two on the same engine.
Configs
| config | rows | text | what it is |
|---|---|---|---|
prevalence |
15,317 label rows over 12,881 blobs | pointer | prevalence-weighted benchmark |
training |
1,997 | pointer | licence-granularity training corpus |
tail |
81 | inline | one human-confirmed blob per licence |
baseline |
12,881 | — | reference predictions from a scanner run |
python rehydrate.py --split prevalence attaches text to the pointer configs from the
SH annex (27 MB download) and verifies every blob against its sha1. tail ships text
because it was fetched one blob at a time through an API allowing 120 anonymous
requests an hour.
Two traps, both of which cost real time
A blob can carry several label rows. The source CSV records one row per detected
licence, so 15,317 rows cover 12,881 blobs. Group by sha1 and compare sets.
Scoring rows independently grades a multi-licence file as several single-licence
failures — doing that reported R@1 0.7962 for an engine whose true score was 0.9752.
Do not filter out the large blobs. Rare licences hide in multi-megabyte NOTICE
and THIRD-PARTY-NOTICES aggregates; they are 22.5% of training and for licences
like Unicode-TOU, FTL and NAIST-2003 they are every example. Dropping them
looks obviously right and is a measured regression — capping at 50 KB moved R@1
0.9752 → 0.9600 at identical precision, because it drops 452 licences to 297.
Reference results
Measured on Atarashi's cascade, prevalence config, n=11,680 single-licence nameable
blobs across 52 licences:
| R@1 | 0.9752 ±0.0028 |
| precision | 0.9844 |
| exact-set | 0.9742 |
| macro over 52 licences | 0.7387 |
Scoring this pool whole found a defect four other benchmarks missed: 286 of 639
verbatim Apache-2.0 files reported as ImageMagick, whose licence is Apache-2.0 plus
extra text and so wins a longest-run comparison while covering less of its own
reference.
Licence and citation
CC-BY-4.0, inherited from the source dataset. The blob texts are licence files, each under its own terms. Please cite:
@article{shlicensedataset2023,
title = {The Software Heritage License Dataset (2022 Edition)},
author = {Gonzalez-Barahona, Jesus M. and Montes-Leon, Sergio and
Robles, Gregorio and Zacchiroli, Stefano},
journal = {Empirical Software Engineering},
year = {2023}, publisher = {Springer}
}
@inproceedings{zacchiroli2022licensevariants,
title = {A Large-scale Dataset of (Open Source) License Text Variants},
author = {Zacchiroli, Stefano},
booktitle = {MSR}, year = {2022}
}
The selection, grouping, manifests and measured results are part of the Atarashi dataset pipeline.
- Downloads last month
- 51