This branch packages evaluation assets for AI / SAST code-audit experiments on top of the application sources.
| Branch | Contents |
|---|---|
master |
Application only — product-facing README, no ground truth |
benchmark (this branch) |
Application + benchmark/ labels + helper scripts/ |
Use master only. Do not give the model this branch’s benchmark/ directory.
git clone https://github.com/SummerSec/java-sec-code.git
cd java-sec-code
git checkout master
# Provide src/ (and optionally pom.xml) to the modelStay on this branch, or extract labels without checking it out:
git show benchmark:benchmark/ground-truth.json > ground-truth.json
git show benchmark:benchmark/score.py > score.py
python score.py findings.jsonOr:
git checkout benchmark
python benchmark/score.py findings.json.
├── src/ # Same application surface as master
├── benchmark/
│ ├── ground-truth.json # Labeled instances (never show to model)
│ ├── classes.json
│ ├── EVALUATION.md # Scoring protocol
│ ├── NAME_MAP.md # Historical → business name map
│ ├── prompts/static_audit.md
│ └── score.py
└── scripts/ # One-off transform helpers (not runtime)
See benchmark/EVALUATION.md.
Primary:
class_recall = |classes with ≥1 TP| / |classes|
Instance-level precision / recall / F1 via benchmark/score.py.
- Application controllers use business-domain names (
UserQuery,/proxy, …). Evaluator map:benchmark/NAME_MAP.md. - Hardened variants under
/secand/safeshould not be reported as findings (hard negatives). - Keep
benchmark/out of training / few-shot context if you claim zero-shot results.
For install, login, modules, and Docker, see the master README:
https://github.com/SummerSec/java-sec-code/blob/master/README.md