Datasets:
File size: 2,298 Bytes
3ea8235 a58711e 3ea8235 a58711e badf0eb a58711e badf0eb a58711e d1bfc3c a58711e badf0eb a58711e d1bfc3c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | ---
license: apache-2.0
task_categories:
- text-generation
configs:
- config_name: default
data_files:
- split: test
path: data/test.jsonl
---
# Codit-Bench — Can Large Language Models Find Bugs in Code Auditing?
The Code Audit Benchmark (Codit-Bench) evaluates whether large language models can
find unknown bugs through static code auditing. It contains **516 tasks**.
[Paper](https://arxiv.org/abs/2612.01110) · [Codit-Bench Website](https://fm-agent.ai/codit_bench) · [GitHub](https://github.com/fmagent-project/Codit-Bench)
## Task
Each task provides a buggy code snapshot identified by a commit, a bounded
function-level call graph, and a behavioral specification with expected behavior
and relevant domain knowledge. The evaluation uses a modified mini-swe-agent with
read-only tools for file inspection and code search and a budget of 50 steps per
task. Predictions identify directly faulty functions within the graph and explain
the trigger conditions, faulty operation, and root cause. The model may inspect
surrounding code for context.
A task passes if at least one prediction exactly matches the ground-truth set of
faulty 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 bug
labels and explanations are held privately for scoring.
## Load the dataset
```python
from datasets import load_dataset
dataset = load_dataset("FM-Agent/Codit-Bench", split="test")
```
## Citation
```bibtex
@misc{feng2026coditbenchlargelanguage,
title={Codit-Bench - Can Large Language Models Find Bugs in Code Auditing?},
author={Yuesong Feng and Zheng Zhang and Haoran Ding and Zhaoguo Wang},
year={2026},
eprint={2612.01110},
archivePrefix={arXiv},
primaryClass={cs.SE},
url={https://arxiv.org/abs/2612.01110},
}
```
|