mvd001/cyberset / code /STATS.md
mvd001's picture
|
download
raw
8.48 kB

Code tier statistics

Generated 2026-10-03 14:05 IST by scripts/publish/make_card.py from work/build/stats.json.

Public table (code/code_sample)

rows vulnerable non-vulnerable
2,212,564 299,716 1,912,848

By language

language rows vulnerable
c_cpp 1,934,451 207,583
php 63,410 15,355
javascript 63,348 29,803
java 44,983 13,411
python 41,426 11,400
go 27,788 9,066
ruby 16,127 5,716
typescript 6,382 2,489
rust 4,401 1,644
csharp 3,980 1,157
other 2,155 922
objc 1,318 304
scala 987 306
swift 639 149
kotlin 559 251
shell 217 24
lua 216 47
perl 138 69
erlang 14 7
groovy 13 7
elixir 12 6

By label_source

label_source rows vulnerable mean confidence
static_analyzer 1,266,524 81,845 0.304
nvd_patch_commit 484,674 126,813 0.498
synthetic 236,260 83,894 0.97
prime_vul 225,106 7,164 0.75

By primary source

primary_source rows vulnerable
draper_vdisc 1,266,524 81,845
juliet_c 236,260 83,894
primevul 225,106 7,164
morefixes 149,115 62,700
crossvul 142,748 7,906
cvefixes 112,267 50,758
bigvul 80,544 5,449

Splits

split_strategy split rows vulnerable
draper_official test 126,644 8,195
draper_official train 1,013,164 65,449
draper_official val 126,716 8,201
primevul_official test 25,851 719
primevul_official train 173,916 5,795
primevul_official val 25,396 707
project_time test 48,102 17,227
project_time train 387,123 91,979
project_time val 48,636 17,305
testcase_random test 23,630 8,400
testcase_random train 190,299 67,561
testcase_random val 22,331 7,933
time test 359 106
time train 387 136
time val 10 3

Granularity

granularity rows
function 2,207,006
file 5,558

Linking

rows with CVE CVE via hub fix-commit rows with CWE CWE via hub
683,457 147,307 952,876 198,341

Staged source records (before dedup)

source records unique sample_ids vulnerable records
bigvul 199,516 195,207 10,900
cleanvul 72,356 71,486 36,176
crossvul 310,681 212,501 14,790
cvefixes 171,183 119,249 71,679
devign 27,306 27,222 12,453
diversevul 330,386 327,377 18,918
draper_vdisc 1,274,366 1,274,366 82,411
juliet_c 347,138 236,260 105,271
morefixes 225,545 200,230 91,716
primevul 235,751 225,163 6,968
reposvul 122,896 90,996 1,712

Total records 3,317,124, unique normalised samples 2,439,384, exact-duplicate records removed 877,740.

Cross-dataset exact duplicates (shared sample_ids)

dataset A dataset B shared samples
diversevul primevul 174,368
bigvul primevul 93,665
crossvul diversevul 81,784
bigvul diversevul 81,716
bigvul crossvul 62,259
crossvul primevul 59,608
cvefixes morefixes 46,672
crossvul reposvul 41,911
diversevul reposvul 36,763
primevul reposvul 26,329
bigvul reposvul 25,401
diversevul morefixes 18,241
cvefixes diversevul 12,985
crossvul cvefixes 11,963
crossvul morefixes 11,509
diversevul draper_vdisc 9,946
morefixes primevul 9,226
cleanvul morefixes 7,978
cleanvul cvefixes 7,068
cvefixes primevul 6,666
bigvul morefixes 6,534
bigvul cvefixes 6,434
draper_vdisc primevul 6,053
cleanvul crossvul 5,315
morefixes reposvul 4,244
cleanvul diversevul 4,012
cvefixes reposvul 3,985
bigvul draper_vdisc 3,934
bigvul cleanvul 2,485
cleanvul reposvul 2,478
cleanvul primevul 2,269
devign diversevul 689
draper_vdisc morefixes 498
devign primevul 479
bigvul devign 401
devign morefixes 301
cvefixes draper_vdisc 215
crossvul devign 154
devign reposvul 54
cvefixes devign 44
cleanvul devign 18
devign draper_vdisc 4
crossvul draper_vdisc 2

Near-duplicates (public table)

rows clusters rows in non-singleton clusters cluster representatives (per split) train rows near-dup of test
2,212,564 1,919,546 469,522 1,953,844 85,822

Label conflicts

Samples with conflicting labels across sources: 21,379 (resolved vulnerable: 18,181); in the public table: 21,058.

vulnerable in non-vulnerable in samples
cvefixes cvefixes 7,000
morefixes morefixes 6,204
crossvul crossvul 2,456
morefixes cvefixes 1,973
bigvul bigvul 1,845
cvefixes morefixes 1,807
diversevul bigvul 1,781
morefixes crossvul 1,730
cvefixes crossvul 1,530
diversevul crossvul 1,493
diversevul reposvul 1,489
morefixes reposvul 1,470
cvefixes reposvul 1,309
crossvul reposvul 1,291
morefixes diversevul 1,153
morefixes bigvul 1,122
diversevul primevul 1,049
morefixes primevul 1,045
bigvul reposvul 951
diversevul morefixes 905
bigvul crossvul 864
cvefixes bigvul 843
diversevul cvefixes 798
diversevul diversevul 753
crossvul bigvul 705

Restricted (ID-only) index

source records of which code is in the public table
cleanvul 72,356 11,484
devign 27,306 781
diversevul 330,386 226,232
reposvul 122,896 72,581

MegaVul GPL-3.0 folder (code/gpl/megavul/)

Generated 2026-10-03 14:51 IST by scripts/publish/megavul_card.py from work/megavul/stats.json. Not included in the tables above.

Ingested (MegaVul 2024-04)

language functions vulnerable non-vulnerable CVEs commits
c_cpp 353,873 17,975 335,898 8,476 9,288
java 41,949 2,433 39,516 775 902

Staged rows

language pair_role is_vulnerable rows unique sample_ids
c_cpp fix False 17,975 17,577
c_cpp unrelated_in_commit False 335,894 321,871
c_cpp vuln True 17,975 17,568
java fix False 2,433 2,330
java unrelated_in_commit False 39,516 38,271
java vuln True 2,433 2,329

Exact duplicates within MegaVul: 18,542 rows.

Overlap with the existing tier

language MegaVul rows already in code/code_sample distinct sample_ids of which vulnerable new sample_ids
c_cpp 170,288 159,209 9,489 195,772
java 6,604 6,202 994 36,501
existing primary_source shared sample_ids
primevul 93,776
crossvul 52,424
bigvul 7,866
cvefixes 6,040
morefixes 5,305

Restricted index (ID-only sources) sharing a sample_id with MegaVul: cleanvul 6,901, devign 775, diversevul 121,716, reposvul 48,730; of these, not in code/code_sample (so published here with MegaVul's code): cleanvul 1,660, devign 333, diversevul 17,788, reposvul 11,385.

Published rows

language rows vulnerable non-vulnerable
c_cpp 195,772 8,305 187,467
java 36,501 1,335 35,166
language split_strategy split rows vulnerable
c_cpp project_time test 9,131 281
c_cpp project_time train 158,511 6,681
c_cpp project_time val 28,130 1,343
java project_time test 1,455 114
java project_time train 13,736 626
java project_time val 21,310 595
rows clusters rows in a cluster with code/code_sample rows cluster representatives train rows near-dup of test rows in non-singleton clusters
232,273 214,409 42,349 186,472 5,076 69,241

Label conflicts among published rows: 1,314; mean label_confidence 0.503.

Xet Storage Details

Size:
8.48 kB
·
Xet hash:
fe5ff87c88653944abcb558981f15dc55060e6feb09c88ebd56a9eb341d3ca65

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.