Datasets:
Add CA-Bench dataset card
Browse files12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152---license: apache-2.0task_categories: - text-generationconfigs: - config_name: default data_files: - split: test path: data/test.jsonl---
# CA-Bench — Can Large Language Models Find Bugs in Code Auditing?
The Code Audit Benchmark (CA-Bench) evaluates whether large language models canfind unknown bugs through static code auditing. It contains **516 tasks**.
[CA-Bench Website](https://fm-agent.ai/ca_bench) · [GitHub](https://github.com/fmagent-project/CA-Bench)
## Task
Each task provides a buggy code snapshot identified by a commit, a boundedfunction-level call graph, and a behavioral specification with expected behaviorand relevant domain knowledge. The evaluation uses a modified mini-swe-agent withread-only tools for file inspection and code search and a budget of 50 steps pertask. Predictions identify directly faulty functions within the graph and explainthe trigger conditions, faulty operation, and root cause. The model may inspectsurrounding code for context.
A task passes if at least one prediction exactly matches the ground-truth set offaulty functions and its explanation semantically matches the ground truth.
## Dataset fields
| Field | Description || --- | --- || `repo` | GitHub repository in `owner/repo` format || `buggy_commit` | Commit used to obtain the buggy source snapshot || `bug_issue` | Source issue or report number || `solve_pr` | Fixing pull request number || `call_graph` | Function nodes and caller-to-callee edges with callsites || `graph_spec` | Expected behavior and relevant domain knowledge |
The issue and pull request numbers are provenance metadata. Ground-truth buglabels and explanations are held privately for scoring.
## Load the dataset
```pythonfrom datasets import load_dataset
dataset = load_dataset("FM-Agent/CA-Bench", split="test")```README.md+49