Updated readme
Browse files
README.md
CHANGED
@@ -1,3 +1,37 @@
|
|
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-to-code-trans in Semeru
|
9 |
+
|
10 |
+
|
11 |
+
# CodeXGLUE -- Code2Code Translation
|
12 |
+
|
13 |
+
## Task Definition
|
14 |
+
|
15 |
+
Code translation aims to migrate legacy software from one programming language in a platform toanother.
|
16 |
+
In CodeXGLUE, given a piece of Java (C#) code, the task is to translate the code into C# (Java) version.
|
17 |
+
Models are evaluated by BLEU scores, accuracy (exactly match), and [CodeBLEU](https://github.com/microsoft/CodeXGLUE/blob/main/code-to-code-trans/CodeBLEU.MD) scores.
|
18 |
+
|
19 |
+
## Dataset
|
20 |
+
|
21 |
+
The dataset is collected from several public repos, including Lucene(http://lucene.apache.org/), POI(http://poi.apache.org/), JGit(https://github.com/eclipse/jgit/) and Antlr(https://github.com/antlr/).
|
22 |
+
|
23 |
+
We collect both the Java and C# versions of the codes and find the parallel functions. After removing duplicates and functions with the empty body, we split the whole dataset into training, validation and test sets.
|
24 |
+
|
25 |
+
### Data Format
|
26 |
+
|
27 |
+
The dataset is in the "data" folder. Each line of the files is a function, and the suffix of the file indicates the programming language.
|
28 |
+
|
29 |
+
### Data Statistics
|
30 |
+
|
31 |
+
Data statistics of the dataset are shown in the below table:
|
32 |
+
|
33 |
+
| | #Examples |
|
34 |
+
| ------- | :-------: |
|
35 |
+
| Train | 10,300 |
|
36 |
+
| Valid | 500 |
|
37 |
+
| Test | 1,000 |
|