Add SPSS-ready exports for DeepSeek comparison
- Add export_spss.py to generate long, wide, summary, and paired CSVs - Add codebook, SPSS import syntax, and paired-analysis syntax - Include generated SPSS files for the original and obfuscated runs
This commit is contained in:
13 files changed
+1940
-4
No files matched your search
+34
-4
@@ -89,18 +89,48 @@ and the recommended replication.
|
||||
Raw per-sample outputs are in `deepseek/*.csv`; `deepseek/summary.csv` contains
|
||||
the comparison table in machine-readable form.
|
||||
|
||||
## SPSS exports
|
||||
|
||||
`export_spss.py` reads the two DeepSeek runs from `results/sast_runs.sqlite3`
|
||||
and writes importable files to `validation/spss/`:
|
||||
|
||||
- `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
|
||||
- `codebook.csv` / `codebook.md`
|
||||
- `sast_import.sps` / `sast_wide.sps` / `sast_summary.sps`
|
||||
|
||||
```bash
|
||||
python3 validation/export_spss.py
|
||||
```
|
||||
|
||||
See `spss/README.md` for import instructions and suggested analyses.
|
||||
|
||||
## Contents
|
||||
|
||||
```text
|
||||
validation/
|
||||
├── test_pipeline.py # mock-API end-to-end test
|
||||
├── export_spss.py # generate SPSS-ready CSVs/syntax
|
||||
├── bandit_comparison.txt # human-readable Bandit diff
|
||||
├── bandit/
|
||||
│ ├── samples.json # raw Bandit JSON, original
|
||||
│ └── obfuscated_v2.json # raw Bandit JSON, obfuscated
|
||||
├── deepseek_comparison.md # original vs obfuscated analysis
|
||||
└── deepseek/
|
||||
├── deepseek-original.csv # per-sample original results
|
||||
├── deepseek-v4.1-flash.csv # per-sample obfuscated results
|
||||
└── summary.csv # comparison metrics
|
||||
├── deepseek/
|
||||
│ ├── deepseek-original.csv # per-sample original results
|
||||
│ ├── deepseek-v4.1-flash.csv # per-sample obfuscated results
|
||||
│ └── summary.csv # comparison metrics
|
||||
└── 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
|
||||
```
|
||||
Reference in new issue
Block a user