Remove superseded validation exports

This commit is contained in:
Joren committed 2026-11-12 19:56:01 +01:00
1 parent 6984b5dd4c
commit 7fece442e1
19 files changed
+41 -28514

No files matched your search

+37 -31
View File
@@ -157,33 +157,41 @@ its nine target categories:
Paired McNemar on the 157 in-scope samples: **p = 0.125**. This pilot is kept for
comparison but is superseded by the v2 all-category runs.
Raw per-sample outputs are in `results/deepseek-v2-*.csv` and the older
`deepseek/*.csv` pilot files. The SPSS exports use the v2 runs by default.
Raw per-sample outputs are in `results/deepseek-v2-*.csv`; git-tracked copies
are in `spss_all/raw/`. The SPSS exports use the v2 runs by default.
## SPSS exports
`export_spss.py` reads the two DeepSeek runs from `results/sast_runs.sqlite3`
and writes importable files to `validation/spss/`:
`export_spss_all.py` combines the traditional SAST tools (Bandit and Semgrep)
and the three LLM tiers (Qwen3.6 35B A3B, DeepSeek V4.1 Flash, Gemini 4 Argon)
into one SPSS-ready dataset covering both conditions. It reads the tool exports
from `sast_tools/tools_long.csv` and the LLM runs from the SQLite databases in
`results/`, then writes to `validation/spss_all/`:
- `sast_long.csv` — 400 rows (200 samples × 2 conditions)
- `sast_wide.csv` — 200 paired rows
- `sast_summary.csv` — aggregate metrics
- `sast_paired.csv` — McNemar counts and exact p-value
- `sast_all_long.csv` / `.sav` — 2,000 rows (5 detectors × 2 conditions × 200 samples)
- `sast_all_wide.csv` / `.sav` — 200 paired rows
- `sast_all_summary.csv` / `.sav` — aggregate metrics
- `sast_all_category.csv` / `.sav` — per-category metrics
- `sast_all_paired.csv` — within-detector McNemar tests
- `sast_all_between.csv` — between-detector McNemar tests
- `codebook.csv` / `codebook.md`
- `sast_import.sps` / `sast_wide.sps` / `sast_summary.sps`
- `.sps` import syntax for the CSV files
```bash
python3 validation/export_spss.py
python3 validation/export_spss_all.py
uv run --python 3.13 --with pandas --with pyreadstat python validation/export_sav.py
```
See `spss/README.md` for import instructions and suggested analyses.
See `spss_all/codebook.md` for variable codes and import instructions.
## Contents
```text
validation/
├── test_pipeline.py # mock-API end-to-end test
├── export_spss.py # generate SPSS-ready LLM CSVs/syntax
├── export_spss.py # shared SPSS helpers (legacy DeepSeek export)
├── export_spss_all.py # combined SAST + LLM SPSS exports
├── export_sav.py # convert SPSS CSVs to native .sav
├── export_sast_tools.py # generate Bandit/Semgrep CSVs/syntax
├── bandit_comparison.txt # human-readable Bandit diff
├── bandit/
@@ -192,14 +200,7 @@ validation/
├── semgrep/
│ ├── samples.json # raw Semgrep JSON, original
│ └── obfuscated_v2.json # raw Semgrep JSON, obfuscated
├── deepseek_comparison.md # original vs obfuscated analysis
├── deepseek/
│ ├── deepseek-v2-original.csv # v2, all 200, original
│ ├── deepseek-v2-obfuscated.csv # v2, all 200, obfuscated
│ ├── summary_v2.csv # v2 comparison metrics
│ ├── deepseek-original.csv # v1 pilot, original
│ ├── deepseek-v4.1-flash.csv # v1 pilot, obfuscated
│ └── summary.csv # v1 comparison metrics
├── deepseek_comparison.md # v1 pilot analysis (historical)
├── sast_tools/
│ ├── findings.csv
│ ├── bandit_findings.csv
@@ -209,15 +210,20 @@ validation/
│ ├── codebook.md
│ ├── sast_tools.sps
│ └── README.md
└── spss/
├── sast_long.csv
├── sast_wide.csv
├── sast_summary.csv
├── sast_paired.csv
├── codebook.csv
├── codebook.md
├── sast_import.sps
├── sast_wide.sps
├── sast_summary.sps
└── README.md
└── spss_all/
├── sast_all_long.csv / .sav
├── sast_all_wide.csv / .sav
├── sast_all_summary.csv / .sav
├── sast_all_category.csv / .sav
├── sast_all_paired.csv
├── sast_all_between.csv
├── codebook.csv / .md
├── sast_all_import.sps
├── sast_all_wide.sps
├── sast_all_summary.sps
├── sast_all_category.sps
└── raw/
├── README.md
├── llm_*.csv
└── sast_*.csv
```