Drop derived indicators (correct_flag, category_correct, cwe_correct,
strict_correct, wrong_category_tp) and the string duplicates of the coded
columns (expected/predicted_category, expected/predicted_cwe); SPSS
computes the indicators from expected_vuln and predicted_vuln, and the
value labels now cover category and CWE codes. The import syntax carries
commented COMPUTE recipes for the derived flags. Long file: 24 -> 15
variables. Data values unchanged.
Drop run_id, prompt_hash, parse_ok, calls, in_scope (constant 1),
token_data_available (derivable from tier), and per-row tp/fp/tn/fn
(derivable from expected_vuln x predicted_vuln; confusion counts are
recomputed from the flags). Long file drops from 34 to 24 variables.
The wide file keeps only sample_id, expected_vuln, expected_category_code
and the per-detector-condition correct/strict-correct pairs (127 -> 27
columns); only those are needed for the McNemar tests. Summary drops
n_in_scope and token_data_available. Data values are unchanged.
tier_label, model_label, condition_label, and model_order duplicated the
numeric codes; SPSS value labels already carry the names. model is now a
numeric code (0=Bandit, 1=Semgrep, 2=DeepSeek V4.1 Flash, 3=Argon) with
value labels in the .sav files and .sps syntax. Long file drops from 38 to
34 variables, summary from 30 to 26.
- Add sast_v2 prompt covering all BenchmarkPython CWEs
- Accept boolean vulnerable plus CWE and derive category from CWE
- Score flag accuracy separately from strict flag+CWE accuracy
- Report wrong-category true positives explicitly
- Run DeepSeek v2 on all 200 original and obfuscated samples
- Extend LLM and SAST exports with strict correctness and CWE fields
- Run Semgrep p/python on original and obfuscated samples
- Add raw Bandit/Semgrep findings and per-sample target-category flags
- Add SPSS-ready tool-by-condition long file and summary
- Document tool mappings, coverage limits, and obfuscation effects
- 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
- Add run_sast_eval.py with SQLite/CSV result storage, retries, JSON repair,
resumability, and expected-label scoring
- Add exact SAST prompt and full benchmark expected-results CSV
- Add mock-API end-to-end tests and uv/bandit dev requirements
- Record Bandit parity and DeepSeek original-vs-obfuscated comparisons
- Rename functions, variables, parameters and imports with scope-aware AST passes
- Generalise Flask route and template paths to unique /route_N and tpl_N names
- Replace descriptive strings with length-preserving, word-consistent msg tokens
- Strip docstrings and comments
- Add verification for parse validity and leaked benchmark identifiers
- Include SAST prompt and expected labels