Datasets:
|
Download README.md from Lego-X/LegoReview-Task: direct link, hf CLI and curl.
- Browser
- Download file 6.13 kB
-
https://huggingface.co/datasets/Lego-X/LegoReview-Task/resolve/main/README.md
- Command line
-
hf download hf://datasets/Lego-X/LegoReview-Task/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Lego-X/LegoReview-Task/resolve/main/README.md
6.13 kB
metadata
license: apache-2.0
task_categories:
- text-generation
language:
- en
tags:
- rl-environment
- code-review
- software-engineering
- pull-requests
- benchmark
pretty_name: LegoReview-Task
size_categories:
- 100K<n<1M
configs:
- config_name: default
data_files:
- split: defect
path: data/defect/*.parquet
- split: clean
path: data/clean/*.parquet
dataset_info:
features:
- name: instance_id
dtype: string
- name: repo
dtype: string
- name: pr_number
dtype: int64
- name: task_type
dtype: string
- name: base_commit
dtype: string
- name: review_commit
dtype: string
- name: title
dtype: string
- name: body
dtype: string
- name: patch
dtype: string
- name: n_defects
dtype: int64
- name: n_supported
dtype: int64
- name: n_major
dtype: int64
- name: defects
dtype: string
- name: certifier_count
dtype: int64
LegoReview-Task contains 167,960 review tasks from 12,891 repositories across eight programming languages. Each task pairs PR context and code snapshots with history-supported reference findings for generating and verifying teacher reviews.
| Split | Tasks | Review snapshot |
|---|---|---|
defect |
140,859 | First reviewed snapshot, with PR-history-supported reference findings |
clean |
27,101 | Approved final head, with no unresolved review findings |
Load
from datasets import load_dataset
repo = "Lego-X/LegoReview-Task"
defect = load_dataset(repo, split="defect")
clean = load_dataset(repo, split="clean")
Format
| Fields | Contents |
|---|---|
instance_id, repo, pr_number, task_type |
Task identity; instance_id joins to LegoReview-Traj |
base_commit, review_commit, patch |
Merge base, reviewed snapshot, and change diff |
title, body |
PR context |
defects |
JSON-encoded findings, with claim, priority (P0–P3), verdict, and snapshot scope |
n_defects, n_supported, n_major |
Defect classification and counts |
certifier_count |
Non-author reviewers endorsing the final head of a clean task |
Finding verdicts (supported, opposed, uncertain) record developer and reviewer responses in the PR history. Check out base_commit and apply patch to review a task.
License
Dataset annotations and project-owned files: Apache-2.0. Upstream code and PR text retain their respective licenses.
Acknowledgements
Built with SWE-Review, OpenHands, Harbor, LegoFlow, and Martian Code Review Benchmark.
Citation
If you use our code, data, or model, please cite the two papers below.
@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}
}