| # Rebuild the code tier end-to-end (download -> stage -> build -> publish). Raw files are deleted after staging. | |
| set -euo pipefail | |
| cd /workspace/security-dataset | |
| PY=.venv/bin/python | |
| scripts/code/dl_batch1.sh # Juliet, CrossVul, CVEfixes (Zenodo, aria2c, md5-checked) | |
| scripts/code/dl_drive.sh # PrimeVul, DiverseVul, Big-Vul, ReposVul (gdown) | |
| scripts/code/dl_hf.sh && $PY scripts/code/record_hf.py # Draper, CleanVul, Devign (pinned HF revisions) | |
| scripts/code/dl_morefixes.sh # MoreFixes dump | |
| # MegaVul: OneDrive folder https://1drv.ms/f/s!AtzrzuojQf5sgeISZ9zN_4owVnUn9g needs a browser download (not scripted) into raw/megavul/2024-04/{c_cpp,java}/ | |
| $PY scripts/code/ingest_juliet.py | |
| $PY scripts/code/ingest_draper.py | |
| $PY scripts/code/ingest_crossvul.py | |
| $PY scripts/code/ingest_primevul.py | |
| $PY scripts/code/ingest_bigvul.py | |
| $PY scripts/code/ingest_diversevul.py # restricted: hashes/labels only | |
| $PY scripts/code/ingest_restricted.py devign cleanvul reposvul # restricted: hashes/labels only | |
| # CVEfixes: metadata tables from the SQL dump, then stream method_change (no full DB on disk) | |
| $PY scripts/code/load_cvefixes_meta.py raw/code/cvefixes/v1.0.8/CVEfixes_v1.0.8.zip CVEfixes_v1.0.8/Data/CVEfixes_v1.0.8.sql.gz work/cvefixes/cvefixes_meta.db | |
| scripts/code/run_cvefixes.sh | |
| scripts/code/run_morefixes.sh | |
| $PY scripts/code/build_code_tier.py | |
| $PY scripts/code/ingest_megavul.py # GPL-3.0: staged separately (work/megavul/stage) | |
| $PY scripts/code/build_megavul_gpl.py # -> data/code/gpl/megavul (dedup vs the public tier) | |
| $PY scripts/code/make_code_manifest.py | |
| $PY scripts/publish/export_kb.py | |
| $PY scripts/publish/make_card.py | |
| scripts/publish/sync.sh | |
Xet Storage Details
- Size:
- 1.8 kB
- Xet hash:
- 4d3b399f2c38575d706bd468e8c3aae8ba99e7c0b5b2f2c8e431f4dc18f1a7f2
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.