dkhati56 commited on
Commit
bf58e4f
1 Parent(s): e5c430b

Updated readme.md

Browse files
Files changed (1) hide show
  1. README.md +47 -0
README.md CHANGED
@@ -1,3 +1,50 @@
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/Clone-detection-POJ-104 in Semeru
9
+
10
+
11
+ # CodeXGLUE -- Clone Detection (POJ-104)
12
+
13
+
14
+ ## Task Definition
15
+
16
+ Given a code and a collection of candidates as the input, the task is to return Top K codes with the same semantic. Models are evaluated by MAP@R score. MAP@R is defined as the mean of average precision scores, each of which is evaluated for retrieving R most similar samples given a query. For a code (query), R is the number of other codes in the same class, i.e. R=499 in this dataset.
17
+
18
+
19
+ ## Dataset
20
+
21
+ We use [POJ-104](https://arxiv.org/pdf/1409.5718.pdf) dataset on this task.
22
+
23
+
24
+ ### Data Format
25
+
26
+
27
+ For each file, each line in the uncompressed file represents one function. One row is illustrated below.
28
+
29
+ - **code:** the source code
30
+ - **label:** the number of problem that the source code solves
31
+ - **index:** the index of example
32
+
33
+ ### Data Statistics
34
+
35
+ Data statistics of the dataset are shown in the below table:
36
+
37
+ | | #Problems | #Examples |
38
+ | ----- | --------- | :-------: |
39
+ | Train | 64 | 32,000 |
40
+ | Dev | 16 | 8,000 |
41
+ | Test | 24 | 12,000 |
42
+
43
+ ## Reference
44
+ <pre><code>@inproceedings{mou2016convolutional,
45
+ title={Convolutional neural networks over tree structures for programming language processing},
46
+ author={Mou, Lili and Li, Ge and Zhang, Lu and Wang, Tao and Jin, Zhi},
47
+ booktitle={Proceedings of the Thirtieth AAAI Conference on Artificial Intelligence},
48
+ pages={1287--1293},
49
+ year={2016}
50
+ }</code></pre>