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.
71 lines
2.0 KiB
Scheme
71 lines
2.0 KiB
Scheme
* Import combined aggregate summary.
|
|
* Set the SPSS working directory to validation/spss_all before running.
|
|
GET DATA
|
|
/TYPE=TXT
|
|
/FILE='sast_all_summary.csv'
|
|
/ENCODING='UTF8'
|
|
/DELIMITERS=","
|
|
/QUALIFIER='"'
|
|
/ARRANGEMENT=DELIMITED
|
|
/FIRSTCASE=2
|
|
/VARIABLES=
|
|
tier F1.0
|
|
model F1.0
|
|
condition F1.0
|
|
n_all F5.0
|
|
n_in_scope F5.0
|
|
tp F5.0
|
|
fp F5.0
|
|
tn F5.0
|
|
fn F5.0
|
|
accuracy F8.6
|
|
strict_accuracy F8.6
|
|
precision F8.6
|
|
recall F8.6
|
|
fpr F8.6
|
|
tnr F8.6
|
|
balanced_accuracy F8.6
|
|
f1 F8.6
|
|
mcc F8.6
|
|
category_accuracy_tp F8.6
|
|
cwe_accuracy_tp F8.6
|
|
wrong_category_tp F5.0
|
|
total_tokens_final F12.0
|
|
total_tokens_all_attempts F12.0
|
|
mean_latency_ms_in_scope F12.2
|
|
api_calls_all_attempts F6.0
|
|
token_data_available F1.0
|
|
.
|
|
DATASET NAME sast_all_summary WINDOW=FRONT.
|
|
|
|
VARIABLE LABELS
|
|
tier 'Capability tier'
|
|
model 'Detector'
|
|
condition 'Dataset condition'
|
|
n_all 'Samples in run' n_in_scope 'Samples in target scope'
|
|
tp 'True positives' fp 'False positives' tn 'True negatives' fn 'False negatives'
|
|
accuracy 'Flag accuracy' strict_accuracy 'Strict accuracy (flag + CWE)'
|
|
precision 'Precision' recall 'Recall'
|
|
fpr 'False-positive rate' tnr 'True-negative rate'
|
|
balanced_accuracy 'Balanced accuracy' f1 'F1' mcc 'Matthews correlation'
|
|
category_accuracy_tp 'Category accuracy among TP'
|
|
cwe_accuracy_tp 'CWE accuracy among TP'
|
|
wrong_category_tp 'Wrong-category true positives'
|
|
total_tokens_final 'Final-attempt tokens'
|
|
total_tokens_all_attempts 'Tokens across all attempts'
|
|
mean_latency_ms_in_scope 'Mean latency (ms), in-scope'
|
|
api_calls_all_attempts 'API calls across all attempts'
|
|
token_data_available 'Token/latency data available'
|
|
.
|
|
|
|
VALUE LABELS
|
|
tier 0 'Traditional SAST' 1 'Open-weight' 2 'Frontier'
|
|
model 0 'Bandit' 1 'Semgrep' 2 'DeepSeek V4.1 Flash' 3 'Gemini 4 Argon'
|
|
condition 0 'Original' 1 'Obfuscated v2' 2 'Comments removed'
|
|
token_data_available 0 'No' 1 'Yes'
|
|
.
|
|
EXECUTE.
|
|
|
|
SORT CASES BY model condition.
|
|
LIST ALL.
|