File size: 1,811 Bytes
4cff429 d3aa151 4cff429 2c32689 4cff429 |
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 |
---
license: mit
---
## Dataset Description
- **Repository:** [MORepair](https://github.com/buaabarty/morepair)
- **Paper:** [MORepair: Teaching LLMs to Repair Code via Multi-Objective Fine-tuning](https://arxiv.org/abs/2404.12636)
- **Point of Contact:** [Boyang Yang](mailto:[email protected])
### Dataset Summary
D4J-Repair is a curated subset of Defects4J, containing 371 single-function Java bugs from real-world projects. Each example includes a buggy implementation, its corresponding fixed version, and unit tests for verification.
### Supported Tasks
- Program Repair: Fixing bugs in Java functions
- Code Generation: Generating correct implementations from buggy code
### Dataset Structure
Each row contains:
- `task_id`: Unique identifier for the task (in format: project_name-bug_id)
- `buggy_code`: The buggy implementation
- `fixed_code`: The correct implementation
- `file_path`: Original file path in the Defects4J repository
- `issue_title`: Title of the bug
- `issue_description`: Description of the bug
- `start_line`: Start line of the buggy function
- `end_line`: End line of the buggy function
### Source Data
This dataset is derived from Defects4J, a collection of reproducible bugs from real-world Java projects. We carefully selected and processed single-function bugs to create this benchmark.
### Citation
```bibtex
@article{morepair,
author = {Yang, Boyang and Tian, Haoye and Ren, Jiadong and Zhang, Hongyu and Klein, Jacques and Bissyande, Tegawende and Le Goues, Claire and Jin, Shunfu},
title = {MORepair: Teaching LLMs to Repair Code via Multi-Objective Fine-Tuning},
year = {2025},
publisher = {Association for Computing Machinery},
issn = {1049-331X},
url = {https://doi.org/10.1145/3735129},
doi = {10.1145/3735129},
journal = {ACM Trans. Softw. Eng. Methodol.},
}
``` |