Datasets:
Tasks:
Text Generation
Modalities:
Text
Sub-tasks:
language-modeling
Languages:
English
Size:
10M - 100M
License:
shibing624
commited on
Commit
•
4732cbe
1
Parent(s):
6e84a83
Update README.md
Browse files
README.md
CHANGED
@@ -1,49 +1,175 @@
|
|
1 |
---
|
2 |
-
|
3 |
-
|
|
|
|
|
4 |
languages:
|
5 |
- en
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
source_datasets:
|
7 |
-
-
|
|
|
|
|
|
|
8 |
task_categories:
|
9 |
-
-
|
10 |
task_ids:
|
11 |
- language-modeling
|
12 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
|
|
|
18 |
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
|
25 |
-
def
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
|
|
|
|
|
|
|
|
36 |
|
37 |
-
|
38 |
```latex
|
39 |
-
@
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
journal = {GitHub repository},
|
45 |
-
url = {https://github.com/shibing624/code-autocomplete},
|
46 |
}
|
47 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
### Contributions
|
49 |
-
Thanks to [shibing624](https://github.com/shibing624)
|
|
|
|
1 |
---
|
2 |
+
annotations_creators:
|
3 |
+
- no-annotation
|
4 |
+
language_creators:
|
5 |
+
- crowdsourced
|
6 |
languages:
|
7 |
- en
|
8 |
+
licenses:
|
9 |
+
- cc-by-4-0
|
10 |
+
- gfdl-1-3-or-later
|
11 |
+
multilinguality:
|
12 |
+
- monolingual
|
13 |
+
size_categories:
|
14 |
+
- 100M<n<200M
|
15 |
source_datasets:
|
16 |
+
- https://github.com/shibing624/code-autocomplete
|
17 |
+
- https://github.com/bharathgs/Awesome-pytorch-list
|
18 |
+
- https://github.com/akullpp/awesome-java
|
19 |
+
- https://github.com/fffaraz/awesome-cpp
|
20 |
task_categories:
|
21 |
+
- sequence-modeling
|
22 |
task_ids:
|
23 |
- language-modeling
|
24 |
---
|
25 |
+
# Dataset Card for "SourceCode"
|
26 |
+
## Table of Contents
|
27 |
+
- [Dataset Description](#dataset-description)
|
28 |
+
- [Dataset Summary](#dataset-summary)
|
29 |
+
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
30 |
+
- [Languages](#languages)
|
31 |
+
- [Dataset Structure](#dataset-structure)
|
32 |
+
- [Data Instances](#data-instances)
|
33 |
+
- [Data Fields](#data-fields)
|
34 |
+
- [Data Splits](#data-splits)
|
35 |
+
- [Dataset Creation](#dataset-creation)
|
36 |
+
- [Curation Rationale](#curation-rationale)
|
37 |
+
- [Source Data](#source-data)
|
38 |
+
- [Annotations](#annotations)
|
39 |
+
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
40 |
+
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
41 |
+
- [Social Impact of Dataset](#social-impact-of-dataset)
|
42 |
+
- [Discussion of Biases](#discussion-of-biases)
|
43 |
+
- [Other Known Limitations](#other-known-limitations)
|
44 |
+
- [Additional Information](#additional-information)
|
45 |
+
- [Dataset Curators](#dataset-curators)
|
46 |
+
- [Licensing Information](#licensing-information)
|
47 |
+
- [Citation Information](#citation-information)
|
48 |
+
- [Contributions](#contributions)
|
49 |
+
## Dataset Description
|
50 |
+
- **Repository:** [code-autocomplete](https://github.com/shibing624/code-autocomplete)
|
51 |
+
- **Leaderboard:** [leaderboard](https://github.com/shibing624/code-autocomplete) (located on the homepage)
|
52 |
+
- **Size of downloaded dataset files:** 105 MB
|
53 |
+
- **Total amount of disk used:** 570 MB
|
54 |
+
### Dataset Summary
|
55 |
+
Source code dataset is a collection of Github awesome repos, it contains Python, Java, C++, and other programming languages.
|
56 |
+
This dataset can be used in different NLP tasks like language modeling and text generation tasks.
|
57 |
+
```python
|
58 |
+
PYTHON_CODE_HOME = "https://github.com/bharathgs/Awesome-pytorch-list"
|
59 |
+
JAVA_CODE_HOME = "https://github.com/akullpp/awesome-java"
|
60 |
+
CPP_CODE_HOME = "https://github.com/fffaraz/awesome-cpp"
|
61 |
+
```
|
62 |
|
63 |
|
64 |
+
### Supported Tasks and Leaderboards
|
65 |
+
- language modeling
|
66 |
+
- code generation tasks:
|
67 |
+
**Leaderboard:** [code-autocomplete](https://github.com/shibing624/code-autocomplete)
|
68 |
|
69 |
+
### Languages
|
70 |
+
|
71 |
+
- programming languages: Python, Java, C++
|
72 |
+
- natural language: English
|
73 |
+
|
74 |
+
## Dataset Structure
|
75 |
+
### Data Instances
|
76 |
+
An example of 'train' looks as follows.
|
77 |
+
```
|
78 |
+
This example was too long and was cropped:
|
79 |
+
|
80 |
+
{
|
81 |
+
"text": """
|
82 |
+
import json
|
83 |
+
import argparse
|
84 |
|
85 |
|
86 |
+
def _parse_args():
|
87 |
+
parser = argparse.ArgumentParser(
|
88 |
+
description=__doc__,
|
89 |
+
formatter_class=argparse.RawTextHelpFormatter,
|
90 |
+
)
|
91 |
+
parser.add_argument(
|
92 |
+
'--model-file',
|
93 |
+
required=True,
|
94 |
+
help=(
|
95 |
+
'A pt file from '
|
96 |
+
'https://github.com/pytorch/fairseq/tree/main/examples/hubert'
|
97 |
+
)
|
98 |
+
)
|
99 |
+
return parser.parse_args()
|
100 |
+
"""
|
101 |
+
}
|
102 |
+
```
|
103 |
+
### Data Fields
|
104 |
+
The data fields are the same among all splits.
|
105 |
+
- `text`: a `string` feature.
|
106 |
+
### Data Splits
|
107 |
+
#### python
|
108 |
+
```shell
|
109 |
+
$ wc -l python/*
|
110 |
+
10000 python/test.txt
|
111 |
+
5215412 python/train.txt
|
112 |
+
10000 python/valid.txt
|
113 |
+
5235412 total
|
114 |
```
|
115 |
+
#### java
|
116 |
+
```shell
|
117 |
+
$ wc -l java/*
|
118 |
+
950083 java/test.txt
|
119 |
+
2802880 java/train.txt
|
120 |
+
940803 java/valid.txt
|
121 |
+
4693766 total
|
122 |
+
```
|
123 |
+
#### cpp
|
124 |
+
```shell
|
125 |
+
$ wc -l cpp/*
|
126 |
+
1060014 cpp/test.txt
|
127 |
+
3119241 cpp/train.txt
|
128 |
+
1099124 cpp/valid.txt
|
129 |
+
5278379 total
|
130 |
+
```
|
131 |
+
## Dataset Creation
|
132 |
+
### Curation Rationale
|
133 |
+
As code generation dataset, I upload it to huggingface datasets.
|
134 |
+
### Source Data
|
135 |
+
#### Initial Data Collection and Normalization
|
136 |
+
#### Who are the source language producers?
|
137 |
+
Citation:
|
138 |
|
139 |
+
APA:
|
140 |
+
```latex
|
141 |
+
Xu, M. code-autocomplete: Code AutoComplete with GPT2 model (Version 0.0.4) [Computer software]. https://github.com/shibing624/code-autocomplete
|
142 |
+
```
|
143 |
|
144 |
+
BibTeX:
|
145 |
```latex
|
146 |
+
@software{Xu_code-autocomplete_Code_AutoComplete,
|
147 |
+
author = {Xu, Ming},
|
148 |
+
title = {code-autocomplete: Code AutoComplete with GPT2 model},
|
149 |
+
url = {https://github.com/shibing624/code-autocomplete},
|
150 |
+
version = {0.0.4}
|
|
|
|
|
151 |
}
|
152 |
```
|
153 |
+
|
154 |
+
### Annotations
|
155 |
+
#### Annotation process
|
156 |
+
#### Who are the annotators?
|
157 |
+
nobody
|
158 |
+
### Personal and Sensitive Information
|
159 |
+
## Considerations for Using the Data
|
160 |
+
### Social Impact of Dataset
|
161 |
+
This dataset was developed as a benchmark for evaluating code generation model.
|
162 |
+
### Discussion of Biases
|
163 |
+
### Other Known Limitations
|
164 |
+
## Additional Information
|
165 |
+
### Dataset Curators
|
166 |
+
|
167 |
+
Github awesome programing code repos.
|
168 |
+
|
169 |
+
### Licensing Information
|
170 |
+
|
171 |
+
For research use only.
|
172 |
+
|
173 |
### Contributions
|
174 |
+
Thanks to [@shibing624](https://github.com/shibing624) add this dataset.
|
175 |
+
|