LegoReview-Bench / README.md
JierunChen's picture
Keep benchmark tag and remove rl-environment classification
4d0a797 verified
|
Raw History Blame Contribute Delete
4.77 kB
---
license: apache-2.0
pretty_name: LegoReview-Bench
task_categories:
- text-generation
tags:
- code-review
- benchmark
- pull-request
size_categories:
- n<1K
configs:
- config_name: default
data_files:
- split: test
path: data/test.parquet
---
<p align="center">
<img class="mx-auto dark:hidden" src="https://huggingface.co/datasets/Lego-X/LegoReview-Bench/resolve/main/assets/logo-wordmark-light.svg?sha=da250779995c" width="411" alt="LegoReview-Bench">
<img class="mx-auto hidden dark:block" src="https://huggingface.co/datasets/Lego-X/LegoReview-Bench/resolve/main/assets/logo-wordmark-dark.svg?sha=8840eaa27c63" width="411" alt="LegoReview-Bench">
</p>
<p align="center"><span style="display:inline-block;white-space:nowrap"><a href="https://arxiv.org/abs/2612.00862" style="display:inline-block"><img style="display:inline-block;vertical-align:middle;margin:0" src="https://huggingface.co/datasets/Lego-X/LegoReview-Bench/resolve/main/assets/badges/btn-paper.svg?sha=8ffcc6a9e7c9" height="28" alt="Paper"></a> <a href="https://intellegox.net" style="display:inline-block"><img style="display:inline-block;vertical-align:middle;margin:0" src="https://huggingface.co/datasets/Lego-X/LegoReview-Bench/resolve/main/assets/badges/btn-blog.svg" height="28" alt="Blog"></a> <a href="https://github.com/LegoX/LegoReview" style="display:inline-block"><img style="display:inline-block;vertical-align:middle;margin:0" src="https://huggingface.co/datasets/Lego-X/LegoReview-Bench/resolve/main/assets/badges/btn-code.svg" height="28" alt="Code"></a></span> <span style="display:inline-block;white-space:nowrap"><a href="https://huggingface.co/collections/Lego-X/legoreview-6ae3817be62c45404407dfdb" style="display:inline-block"><img style="display:inline-block;vertical-align:middle;margin:0" src="https://huggingface.co/datasets/Lego-X/LegoReview-Bench/resolve/main/assets/badges/btn-data-models.svg" height="28" alt="Data &amp; Models"></a> <a href="#citation" style="display:inline-block"><img style="display:inline-block;vertical-align:middle;margin:0" src="https://huggingface.co/datasets/Lego-X/LegoReview-Bench/resolve/main/assets/badges/btn-citation.svg" height="28" alt="Citation"></a></span></p>
**LegoReview-Bench** contains **75 expert-reviewed tasks** from **46 repositories**, with **430 reference findings** across eight programming languages. Its **64 defect** and **11 clean** tasks evaluate finding recovery and review decisions on repository-level code changes.
<p align="center">
<img src="https://huggingface.co/datasets/Lego-X/LegoReview-Bench/resolve/main/assets/benchmark-profile.png" width="1000" alt="LegoReview-Bench profile: 75 tasks from 46 repositories with 430 reference findings.">
</p>
## Load
```python
from datasets import load_dataset
bench = load_dataset("Lego-X/LegoReview-Bench", split="test")
```
Each row contains a pull request, its code diff, and the expert findings in `defects`. Clean tasks have an empty findings list. Use `tools/restore_instance.py` to recreate the baseline and reviewed source trees.
## Evaluation
Finding-level precision, recall, and F1 measure reference recovery. Clean Rate is the share of clean-task runs with a valid report and no high-priority finding.
See the [evaluation guide](https://github.com/LegoX/LegoReview/blob/main/docs/evaluation.md), [schema](SCHEMA.md), and [dataset statistics](statistics.json).
## License
Project-owned annotations and tools: [Apache-2.0](LICENSE). Source snapshots: [upstream licenses](LICENSES.md).
## Acknowledgements
Built with [SWE-Review](https://github.com/LegoX/SWE-Review), [OpenHands](https://github.com/OpenHands/OpenHands), [Harbor](https://github.com/LegoX/harbor), [LegoFlow](https://github.com/LegoX/LegoFlow), and [Martian Code Review Benchmark](https://github.com/withmartian/code-review-benchmark).
## Citation
If you use our code, data, or model, please cite the two papers below.
```bibtex
@misc{wang2026legoreviewscalingcodereview,
title={LegoReview: Scaling Code Review Data with Verification from Pull Request Histories},
author={Ruoyu Wang and Jierun Chen and Yuxin Jiang and Chaofan Tao and Shaowei Wang and Sidi Yang and Conghao Xiong and Yiming Du and Tiezheng Yu and Kim-Hui Yap and Lifeng Shang and Xiao-Hui Li and Haoli Bai},
year={2026},
eprint={2612.00862},
archivePrefix={arXiv},
primaryClass={cs.SE},
url={https://arxiv.org/abs/2612.00862},
}
@misc{wang2026swereview,
title = {SWE-Review: Closing the Loop on Issue Resolution with Agentic Code Review},
author = {Ruoyu Wang and Jierun Chen and Shaowei Wang and Chaofan Tao and Sidi Yang and Yuxin Jiang and Kim-Hui Yap and Lifeng Shang and Xiaohui Li and Haoli Bai},
year = {2026},
url = {https://github.com/LegoX/SWE-Review}
}
```