barty commited on
Commit
4cff429
·
verified ·
1 Parent(s): 37f2613

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +46 -3
README.md CHANGED
@@ -1,3 +1,46 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ ---
4
+
5
+ ## Dataset Description
6
+
7
+ - **Repository:** [MORepair](https://github.com/barty/morepair)
8
+ - **Paper:** [MORepair: Teaching LLMs to Repair Code via Multi-Objective Fine-tuning](https://arxiv.org/abs/2404.12636)
9
+ - **Point of Contact:** [Boyang Yang](mailto:[email protected])
10
+
11
+ ### Dataset Summary
12
+
13
+ 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.
14
+
15
+ ### Supported Tasks
16
+
17
+ - Program Repair: Fixing bugs in Java functions
18
+ - Code Generation: Generating correct implementations from buggy code
19
+
20
+ ### Dataset Structure
21
+
22
+ Each row contains:
23
+ - `task_id`: Unique identifier for the task (in format: project_name-bug_id)
24
+ - `buggy_code`: The buggy implementation
25
+ - `fixed_code`: The correct implementation
26
+ - `unit_test`: Unit tests for verifying the correctness of the implementation
27
+ - `prompt`: Prefix information for generating fixed code
28
+
29
+ ### Source Data
30
+
31
+ 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.
32
+
33
+ ### Citation
34
+
35
+ ```bibtex
36
+ @article{morepair,
37
+ 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},
38
+ title = {MORepair: Teaching LLMs to Repair Code via Multi-Objective Fine-Tuning},
39
+ year = {2025},
40
+ publisher = {Association for Computing Machinery},
41
+ issn = {1049-331X},
42
+ url = {https://doi.org/10.1145/3735129},
43
+ doi = {10.1145/3735129},
44
+ journal = {ACM Trans. Softw. Eng. Methodol.},
45
+ }
46
+ ```