dkhati56 commited on
Commit
99480d0
1 Parent(s): c584352

Updated readme.md

Browse files
Files changed (1) hide show
  1. README.md +43 -0
README.md CHANGED
@@ -1,3 +1,46 @@
1
  ---
2
  license: mit
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
  ---
4
+
5
+ ### Dataset is imported from CodeXGLUE and pre-processed using their script.
6
+
7
+ # Where to find in Semeru:
8
+ The dataset can be found at /nfs/semeru/semeru_datasets/code_xglue/code-to-code/code-refinement/data/medium in Semeru
9
+
10
+ ## Task Definition
11
+
12
+ Code refinement aims to automatically fix bugs in the code, which can contribute to reducing the cost of bug-fixes for developers.
13
+ In CodeXGLUE, given a piece of Java code with bugs, the task is to remove the bugs to output the refined code.
14
+ Models are evaluated by BLEU scores, accuracy (exactly match) and [CodeBLEU](https://github.com/microsoft/CodeXGLUE/blob/main/code-to-code-trans/CodeBLEU.MD).
15
+
16
+ ## Dataset
17
+
18
+ We use the dataset released by this paper(https://arxiv.org/pdf/1812.08693.pdf). The source side is a Java function with bugs and the target side is the refined one.
19
+ All the function and variable names are normalized. Their dataset contains two subsets ( i.e.small and medium) based on the function length. This dataset is medium.
20
+
21
+
22
+
23
+ ### Data Statistics
24
+
25
+ Data statistics of this dataset are shown in the below table:
26
+
27
+ | | #Examples |
28
+ | ------- | :-------: |
29
+ | | Medium |
30
+ | Train | 52,364 |
31
+ | Valid | 6,545 |
32
+ | Test | 6,545 |
33
+
34
+ # Reference
35
+ <pre><code>@article{tufano2019empirical,
36
+ title={An empirical study on learning bug-fixing patches in the wild via neural machine translation},
37
+ author={Tufano, Michele and Watson, Cody and Bavota, Gabriele and Penta, Massimiliano Di and White, Martin and Poshyvanyk, Denys},
38
+ journal={ACM Transactions on Software Engineering and Methodology (TOSEM)},
39
+ volume={28},
40
+ number={4},
41
+ pages={1--29},
42
+ year={2019},
43
+ publisher={ACM New York, NY, USA}
44
+ }</code></pre>
45
+
46
+