Commit
·
80e2010
1
Parent(s):
90c2ff6
Update parquet files
Browse files
README.md
DELETED
|
@@ -1,68 +0,0 @@
|
|
| 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-text/python in Semeru
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
# CodeXGLUE -- Code-To-Text
|
| 12 |
-
|
| 13 |
-
## Task Definition
|
| 14 |
-
|
| 15 |
-
The task is to generate natural language comments for a code, and evaluted by [smoothed bleu-4](https://www.aclweb.org/anthology/C04-1072.pdf) score.
|
| 16 |
-
|
| 17 |
-
## Dataset
|
| 18 |
-
|
| 19 |
-
The dataset we use comes from [CodeSearchNet](https://arxiv.org/pdf/1909.09436.pdf) and we filter the dataset as the following:
|
| 20 |
-
|
| 21 |
-
- Remove examples that codes cannot be parsed into an abstract syntax tree.
|
| 22 |
-
- Remove examples that #tokens of documents is < 3 or >256
|
| 23 |
-
- Remove examples that documents contain special tokens (e.g. <img ...> or https:...)
|
| 24 |
-
- Remove examples that documents are not English.
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
### Data Format
|
| 28 |
-
|
| 29 |
-
After preprocessing dataset, you can obtain three .jsonl files, i.e. train.jsonl, valid.jsonl, test.jsonl
|
| 30 |
-
|
| 31 |
-
For each file, each line in the uncompressed file represents one function. One row is illustrated below.
|
| 32 |
-
|
| 33 |
-
- **repo:** the owner/repo
|
| 34 |
-
|
| 35 |
-
- **path:** the full path to the original file
|
| 36 |
-
|
| 37 |
-
- **func_name:** the function or method name
|
| 38 |
-
|
| 39 |
-
- **original_string:** the raw string before tokenization or parsing
|
| 40 |
-
|
| 41 |
-
- **language:** the programming language
|
| 42 |
-
|
| 43 |
-
- **code/function:** the part of the `original_string` that is code
|
| 44 |
-
|
| 45 |
-
- **code_tokens/function_tokens:** tokenized version of `code`
|
| 46 |
-
|
| 47 |
-
- **docstring:** the top-level comment or docstring, if it exists in the original string
|
| 48 |
-
|
| 49 |
-
- **docstring_tokens:** tokenized version of `docstring`
|
| 50 |
-
|
| 51 |
-
### Data Statistic
|
| 52 |
-
|
| 53 |
-
| Programming Language | Training | Dev | Test |
|
| 54 |
-
| :------------------- | :------: | :----: | :----: |
|
| 55 |
-
| Python | 251,820 | 13,914 | 14,918 |
|
| 56 |
-
| PHP | 241,241 | 12,982 | 14,014 |
|
| 57 |
-
| Go | 167,288 | 7,325 | 8,122 |
|
| 58 |
-
| Java | 164,923 | 5,183 | 10,955 |
|
| 59 |
-
| JavaScript | 58,025 | 3,885 | 3,291 |
|
| 60 |
-
| Ruby | 24,927 | 1,400 | 1,261 |
|
| 61 |
-
|
| 62 |
-
## Reference
|
| 63 |
-
<pre><code>@article{husain2019codesearchnet,
|
| 64 |
-
title={Codesearchnet challenge: Evaluating the state of semantic code search},
|
| 65 |
-
author={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},
|
| 66 |
-
journal={arXiv preprint arXiv:1909.09436},
|
| 67 |
-
year={2019}
|
| 68 |
-
}</code></pre>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test.jsonl → semeru--code-text-python/json-test.parquet
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:30c225992355de03b6283ec2331e2a9ee44190b79a6c8b05c6fcd9d267ac5008
|
| 3 |
+
size 17930955
|
train.jsonl → semeru--code-text-python/json-train-00000-of-00002.parquet
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd3ea21bcd31ef9b6a4dc91b7dfcfc9ff4746cb83d2b7c1d31f7dc26f98ff27f
|
| 3 |
+
size 180148436
|
semeru--code-text-python/json-train-00001-of-00002.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f45196147c93440d31f26a621c42b20245fcac8e6c9693f823004a6e39d6ae9
|
| 3 |
+
size 110285154
|
valid.jsonl → semeru--code-text-python/json-validation.parquet
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9b6210eed06352a3eb6d2be8c8d93102a02b92b24c7c0556e17af359f9dd3113
|
| 3 |
+
size 16629380
|