Add source replay audit reports
Browse filesPublish PROMISE, BugsInPy, and Big-Vul source replay audit reports and document their scope, coverage, and reproducibility findings.
Files changed (4)
52 unmodified lines5354555657585960616263646552 unmodified lines| Dataset | Defect-line coverage by parsed functions | Final AST/function audit | Construction-time failures/deletions ||---|---|---|---|| `defactors_python` | 21,171 / 28,799 defect lines covered (73.51%); 7,628 uncovered | 0 empty bags; 0 functions with empty AST/edge lists | The final rebuild processed 1,700 reference bags; the final JSONL does not preserve a separate count of discarded raw rows. || `bugsinpy_python` | Not recoverable from the final JSONL: patch line sets and function spans were not stored | 0 empty bags; 0 functions with empty AST/edge lists | The final JSONL does not preserve per-stage parse-failure/deletion counters. || `bigvul_c` | Not recoverable from the final JSONL: patch line sets and function spans were not stored | 0 empty bags; 0 functions with empty AST/edge lists | The final JSONL does not preserve per-stage parse-failure/deletion counters. || `promise_java` | Not applicable: the source label is a class-level `bug` value, not a retained defect-line annotation | 0 empty bags; 0 functions with empty AST/edge lists | The final JSONL does not preserve per-stage parse-failure/deletion counters. || `devign_c` | Not applicable in this artifact: function-level labels are retained, but no line-span annotation is stored | Function-level records contain non-empty AST/edge lists | The final JSONL does not preserve per-stage parse-failure/deletion counters. |For all five final artifacts, the reported final-audit counts were obtained by scanning the JSONL itself. “Not recoverable” means that the information is not encoded in the published artifact; it is not an assertion that the corresponding builder did not perform line coverage or parsing checks.## Bag construction policy- `promise_java`: one Java class per bag; all parseable methods and constructors are retained in the published JSONL, subject to the minimum-function filter.52 unmodified lines53545556575859606162636465666768697071727374757677787980818283848586878889909152 unmodified lines| Dataset | Defect-line coverage by parsed functions | Final AST/function audit | Construction-time failures/deletions ||---|---|---|---|| `defactors_python` | 21,171 / 28,799 defect lines covered (73.51%); 7,628 uncovered | 0 empty bags; 0 functions with empty AST/edge lists | The final rebuild processed 1,700 reference bags; the final JSONL does not preserve a separate count of discarded raw rows. || `bugsinpy_python` | Final JSONL alone is insufficient; source replay covers 6,692 / 7,919 patch lines (84.51%) | 0 empty bags; 0 functions with empty AST/edge lists | See the source-replay report; the final JSONL does not preserve all historical per-stage deletion counters. || `bigvul_c` | Final JSONL alone is insufficient; source replay covers 5,017 / 5,879 buggy-side patch lines (85.34%) | 0 empty bags; 0 functions with empty AST/edge lists | See the source-replay report; the final JSONL does not preserve all historical per-stage deletion counters. || `promise_java` | Not applicable: the source label is a class-level `bug` value, not a retained defect-line annotation | 0 empty bags; 0 functions with empty AST/edge lists | The final JSONL does not preserve per-stage parse-failure/deletion counters. || `devign_c` | Not applicable in this artifact: function-level labels are retained, but no line-span annotation is stored | Function-level records contain non-empty AST/edge lists | The final JSONL does not preserve per-stage parse-failure/deletion counters. |For all five final artifacts, the reported final-audit counts were obtained by scanning the JSONL itself. “Not recoverable” means that the information is not encoded in the published artifact; it is not an assertion that the corresponding builder did not perform line coverage or parsing checks.## Source replay auditsThe following audit reports replay the published records from the original local sources without rewriting the JSONL files. PROMISE replays all source CSV rows. BugsInPy and Big-Vul replay each published record from its stored project, patch/CVE identifier, file path, and Git snapshot. The reports contain the input JSONL SHA-256, counters, bounded mismatch examples, and patch-line coverage where applicable.| Dataset | Audit scope | Current result | Report ||---|---|---|---|| `promise_java` | All 13,010 CSV rows and all 1,695 published bags | Pass: 1,695 / 1,695 exact source/function/AST matches; 8,612 valid source candidates, of which 6,917 were not selected into the fixed final sample set | [`promise_java_source_replay_audit.json`](audits/promise_java_source_replay_audit.json) || `bugsinpy_python` | 2,416 published bags against BugsInPy metadata, patches, and buggy Git snapshots | Source/commit/bag-label replay succeeds; 37 function-or-label mismatches and 745 AST-schema drifts are retained as historical reproducibility findings | [`bugsinpy_python_source_replay_audit.json`](audits/bugsinpy_python_source_replay_audit.json) || `bigvul_c` | 1,700 published bags against the MSR CSV, patches, and local Git snapshots | One source-content mismatch and 638 AST-schema drifts; all remaining source/function/label replays match | [`bigvul_c_source_replay_audit.json`](audits/bigvul_c_source_replay_audit.json) |`ast_schema_drift` means the function source and label replayed successfully but the AST graph generated by the current normalization implementation differs from the published graph. It is reported separately from source, function, or label mismatches. The reports were generated from the HAM-Net preprocessing repository (which contains the raw-source builders and Git caches) with:```bashpython scripts/replay_source_audits.py promise \--dataset-path datasets/promise_java.jsonl \--output datasets/audits/promise_java_source_replay_audit.jsonpython scripts/replay_source_audits.py bugsinpy \--dataset-path datasets/bugsinpy_python.jsonl \--output datasets/audits/bugsinpy_python_source_replay_audit.jsonpython scripts/replay_source_audits.py bigvul \--dataset-path datasets/bigvul_c.jsonl \--output datasets/audits/bigvul_c_source_replay_audit.json```## Bag construction policy- `promise_java`: one Java class per bag; all parseable methods and constructors are retained in the published JSONL, subject to the minimum-function filter.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178{ "schema_version": 1, "audit_type": "source_replay", "dataset": "bigvul_c", "dataset_sha256": "b6900edcc6fc78ae13eb0dbff0f0117bae15c0aaa93221f76f9b8cb9716d8f93", "scope": "published_records_replayed_against_original_csv_patch_and_local_git_snapshot", "passed": false, "counts": { "ast_schema_drift": 638, "exact_replay_match": 1062, "patch_lines_covered": 5017, "patch_lines_total": 5879, "published_records": 1700, "source_content_mismatch": 1 }, "patch_line_coverage": 0.8533764245620004, "examples": { "ast_schema_drift": [ { "project": "FFmpeg", "bug_id": "CVE-2011-2161", "path": "libavformat/ape.c" }, { "project": "linux", "bug_id": "CVE-2012-5532", "path": "tools/hv/hv_kvp_daemon.c" }, { "project": "linux", "bug_id": "CVE-2012-4508", "path": "fs/ext4/extents.c" }, { "project": "linux", "bug_id": "CVE-2012-3552", "path": "net/ipv4/ip_options.c" }, { "project": "linux", "bug_id": "CVE-2012-3552", "path": "drivers/input/keyboard/omap-keypad.c" }, { "project": "linux", "bug_id": "CVE-2012-3552", "path": "net/ipv4/ip_sockglue.c" }, { "project": "linux", "bug_id": "CVE-2012-2384", "path": "drivers/gpu/drm/i915/i915_gem_execbuffer.c" }, { "project": "linux", "bug_id": "CVE-2012-2383", "path": "drivers/gpu/drm/i915/i915_gem_execbuffer.c" }, { "project": "linux", "bug_id": "CVE-2012-2100", "path": "fs/ext4/super.c" }, { "project": "linux", "bug_id": "CVE-2012-1601", "path": "arch/x86/kvm/x86.c" }, { "project": "linux", "bug_id": "CVE-2012-1179", "path": "drivers/staging/comedi/drivers/addi-data/APCI1710_INCCPT.c" }, { "project": "linux", "bug_id": "CVE-2012-1097", "path": "fs/binfmt_elf.c" }, { "project": "linux", "bug_id": "CVE-2012-0045", "path": "arch/x86/kvm/emulate.c" }, { "project": "linux", "bug_id": "CVE-2012-0028", "path": "kernel/fork.c" }, { "project": "linux", "bug_id": "CVE-2011-4326", "path": "net/ipv6/udp.c" }, { "project": "linux", "bug_id": "CVE-2011-4324", "path": "fs/ncpfs/inode.c" }, { "project": "linux", "bug_id": "CVE-2011-4112", "path": "drivers/isdn/i4l/isdn_net.c" }, { "project": "linux", "bug_id": "CVE-2011-4112", "path": "drivers/net/bonding/bond_main.c" }, { "project": "linux", "bug_id": "CVE-2011-4112", "path": "drivers/net/wireless/airo.c" }, { "project": "linux", "bug_id": "CVE-2011-4112", "path": "drivers/staging/ath6kl/os/linux/ar6000_drv.c" }, { "project": "linux", "bug_id": "CVE-2011-3363", "path": "fs/cifs/connect.c" }, { "project": "linux", "bug_id": "CVE-2011-3359", "path": "drivers/staging/wlags49_h2/wl_profile.c" }, { "project": "linux", "bug_id": "CVE-2011-3209", "path": "drivers/scsi/aic7xxx/aic79xx_core.c" }, { "project": "linux", "bug_id": "CVE-2011-3209", "path": "mm/slub.c" }, { "project": "linux", "bug_id": "CVE-2011-3188", "path": "drivers/mtd/afs.c" }, { "project": "linux", "bug_id": "CVE-2011-2918", "path": "arch/mips/kernel/unaligned.c" }, { "project": "linux", "bug_id": "CVE-2011-2918", "path": "arch/mips/math-emu/cp1emu.c" }, { "project": "linux", "bug_id": "CVE-2011-2918", "path": "arch/sparc/math-emu/math_32.c" }, { "project": "linux", "bug_id": "CVE-2011-2918", "path": "kernel/events/core.c" }, { "project": "linux", "bug_id": "CVE-2011-2918", "path": "drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c" } ], "source_content_mismatch": [ { "project": "linux", "bug_id": "CVE-2011-3359", "path": "drivers/staging/wlags49_h2/wl_profile.c" } ] }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323{ "schema_version": 1, "audit_type": "source_replay", "dataset": "bugsinpy_python", "dataset_sha256": "c8627f43c5710d32f0c0bd78535b1d73e86d4ea07a4f50c034934243d46fadb8", "scope": "published_records_replayed_against_bug_metadata_patch_and_git_snapshot", "passed": false, "counts": { "ast_schema_drift": 745, "exact_replay_match": 1634, "function_or_label_mismatch": 37, "patch_lines_covered": 6692, "patch_lines_total": 7919, "published_records": 2416 }, "patch_line_coverage": 0.8450561939638843, "examples": { "ast_schema_drift": [ { "project": "PySnooper", "bug_id": 1, "path": "pysnooper/tracer.py" }, { "project": "PySnooper", "bug_id": 2, "path": "tests/samples/recursion.py" }, { "project": "ansible", "bug_id": 1, "path": "test/units/galaxy/test_collection.py" }, { "project": "ansible", "bug_id": 3, "path": "lib/ansible/module_utils/facts/hardware/netbsd.py" }, { "project": "ansible", "bug_id": 3, "path": "test/units/plugins/lookup/test_password.py" }, { "project": "ansible", "bug_id": 3, "path": "test/units/cli/test_cli.py" }, { "project": "ansible", "bug_id": 4, "path": "test/units/module_utils/facts/base.py" }, { "project": "ansible", "bug_id": 8, "path": "test/units/modules/network/fortios/test_fortios_system_vdom_netflow.py" }, { "project": "ansible", "bug_id": 9, "path": "test/units/modules/network/fortimanager/test_fmgr_secprof_appctrl.py" }, { "project": "ansible", "bug_id": 10, "path": "test/units/plugins/strategy/test_strategy_base.py" }, { "project": "ansible", "bug_id": 14, "path": "lib/ansible/galaxy/api.py" }, { "project": "ansible", "bug_id": 14, "path": "lib/ansible/plugins/strategy/__init__.py" }, { "project": "ansible", "bug_id": 17, "path": "test/units/module_utils/facts/test_facts.py" }, { "project": "black", "bug_id": 1, "path": "black.py" }, { "project": "black", "bug_id": 2, "path": "black.py" }, { "project": "black", "bug_id": 3, "path": "black.py" }, { "project": "black", "bug_id": 4, "path": "black.py" }, { "project": "black", "bug_id": 4, "path": "tests/data/fmtonoff2.py" }, { "project": "black", "bug_id": 5, "path": "black.py" }, { "project": "black", "bug_id": 6, "path": "black.py" }, { "project": "black", "bug_id": 7, "path": "black.py" }, { "project": "black", "bug_id": 7, "path": "tests/test_black.py" }, { "project": "black", "bug_id": 8, "path": "black.py" }, { "project": "black", "bug_id": 8, "path": "tests/data/function.py" }, { "project": "black", "bug_id": 8, "path": "tests/data/comments4.py" }, { "project": "black", "bug_id": 9, "path": "black.py" }, { "project": "black", "bug_id": 11, "path": "black.py" }, { "project": "black", "bug_id": 12, "path": "black.py" }, { "project": "black", "bug_id": 14, "path": "black.py" }, { "project": "black", "bug_id": 14, "path": "tests/data/comments5.py" } ], "function_or_label_mismatch": [ { "project": "matplotlib", "bug_id": 1, "path": "lib/matplotlib/figure.py" }, { "project": "matplotlib", "bug_id": 2, "path": "lib/matplotlib/axes/_axes.py" }, { "project": "matplotlib", "bug_id": 4, "path": "lib/matplotlib/axes/_axes.py" }, { "project": "matplotlib", "bug_id": 5, "path": "lib/matplotlib/axes/_axes.py" }, { "project": "matplotlib", "bug_id": 6, "path": "lib/matplotlib/axes/_axes.py" }, { "project": "matplotlib", "bug_id": 7, "path": "lib/matplotlib/lines.py" }, { "project": "matplotlib", "bug_id": 11, "path": "lib/matplotlib/text.py" }, { "project": "matplotlib", "bug_id": 12, "path": "lib/matplotlib/axes/_axes.py" }, { "project": "matplotlib", "bug_id": 14, "path": "lib/matplotlib/text.py" }, { "project": "matplotlib", "bug_id": 20, "path": "lib/matplotlib/backend_bases.py" }, { "project": "matplotlib", "bug_id": 21, "path": "lib/matplotlib/axes/_axes.py" }, { "project": "matplotlib", "bug_id": 25, "path": "lib/matplotlib/animation.py" }, { "project": "pandas", "bug_id": 5, "path": "pandas/io/stata.py" }, { "project": "pandas", "bug_id": 13, "path": "pandas/tests/indexing/test_loc.py" }, { "project": "pandas", "bug_id": 22, "path": "pandas/tests/frame/test_repr_info.py" }, { "project": "pandas", "bug_id": 24, "path": "pandas/core/arrays/datetimes.py" }, { "project": "pandas", "bug_id": 25, "path": "pandas/core/arrays/datetimes.py" }, { "project": "pandas", "bug_id": 27, "path": "pandas/core/arrays/datetimes.py" }, { "project": "pandas", "bug_id": 59, "path": "pandas/tests/io/formats/test_printing.py" }, { "project": "pandas", "bug_id": 61, "path": "pandas/tests/io/formats/test_to_latex.py" }, { "project": "pandas", "bug_id": 80, "path": "pandas/core/arrays/datetimes.py" }, { "project": "pandas", "bug_id": 85, "path": "pandas/tests/indexes/period/test_formats.py" }, { "project": "pandas", "bug_id": 120, "path": "pandas/io/stata.py" }, { "project": "pandas", "bug_id": 121, "path": "pandas/tests/indexes/multi/test_format.py" }, { "project": "pandas", "bug_id": 130, "path": "pandas/tests/test_multilevel.py" }, { "project": "pandas", "bug_id": 135, "path": "pandas/tests/test_multilevel.py" }, { "project": "pandas", "bug_id": 144, "path": "pandas/tests/io/formats/test_printing.py" }, { "project": "pandas", "bug_id": 147, "path": "pandas/tests/io/formats/test_printing.py" }, { "project": "pandas", "bug_id": 158, "path": "pandas/io/stata.py" }, { "project": "tornado", "bug_id": 5, "path": "tornado/test/template_test.py" } ] }}1234567891011121314151617181920{ "schema_version": 1, "audit_type": "source_replay", "dataset": "promise_java", "dataset_sha256": "e5618bae92920bac8f63ffd836837c6c904300fb338cad4289b74aa16cef36b5", "scope": "all_source_csv_rows_plus_published_records", "passed": true, "counts": { "exact_replay_match": 1695, "matched_final_key": 1695, "missing_source": 1667, "parse_failed_or_below_min_functions": 2731, "published_records": 1695, "source_rows": 13010, "unmatched_published_records": 0, "valid_not_selected_final": 6917, "valid_source_candidates": 8612 }, "examples": {}}README.md+28-2
audits/bigvul_c_source_replay_audit.jsonAdded+178
audits/bugsinpy_python_source_replay_audit.jsonAdded+323
audits/promise_java_source_replay_audit.jsonAdded+20