Datasets:
Tasks:
Text Generation
Formats:
json
Sub-tasks:
language-modeling
Languages:
code
Size:
100K - 1M
License:
Commit
·
b9e99d0
1
Parent(s):
9636417
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,143 @@
|
|
1 |
---
|
|
|
|
|
2 |
license: other
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
annotations_creators:
|
3 |
+
- crowdsourced
|
4 |
license: other
|
5 |
+
language_creators:
|
6 |
+
- crowdsourced
|
7 |
+
language:
|
8 |
+
- code
|
9 |
+
task_categories:
|
10 |
+
- text-generation
|
11 |
+
tags:
|
12 |
+
- code, kotlin, native Android development, curated, training
|
13 |
+
size_categories:
|
14 |
+
- 100K<n<1M
|
15 |
+
source_datasets: []
|
16 |
+
pretty_name: iva-kotlin-codeint-clean
|
17 |
+
task_ids:
|
18 |
+
- language-modeling
|
19 |
---
|
20 |
+
|
21 |
+
# IVA Kotlin GitHub Code Dataset
|
22 |
+
|
23 |
+
## Dataset Description
|
24 |
+
|
25 |
+
This is the curated train split of IVA Kotlin dataset extracted from GitHub.
|
26 |
+
It contains curated Kotlin files gathered with the purpose to train a code generation model.
|
27 |
+
|
28 |
+
The dataset consists of 383380 Kotlin code files from GitHub.
|
29 |
+
[Here is the unsliced curated dataset](https://huggingface.co/datasets/mvasiliniuc/iva-kotlin-codeint-clean) and [here is the raw dataset](https://huggingface.co/datasets/mvasiliniuc/iva-kotlin-codeint).
|
30 |
+
|
31 |
+
### How to use it
|
32 |
+
|
33 |
+
To download the full dataset:
|
34 |
+
|
35 |
+
```python
|
36 |
+
from datasets import load_dataset
|
37 |
+
dataset = load_dataset('mvasiliniuc/iva-kotlin-codeint-clean-train', split='train'))
|
38 |
+
```
|
39 |
+
|
40 |
+
|
41 |
+
## Data Structure
|
42 |
+
|
43 |
+
### Data Fields
|
44 |
+
|
45 |
+
|Field|Type|Description|
|
46 |
+
|---|---|---|
|
47 |
+
|repo_name|string|name of the GitHub repository|
|
48 |
+
|path|string|path of the file in GitHub repository|
|
49 |
+
|copies|string|number of occurrences in dataset|
|
50 |
+
|content|string|content of source file|
|
51 |
+
|size|string|size of the source file in bytes|
|
52 |
+
|license|string|license of GitHub repository|
|
53 |
+
|hash|string|Hash of content field.|
|
54 |
+
|line_mean|number|Mean line length of the content.
|
55 |
+
|line_max|number|Max line length of the content.
|
56 |
+
|alpha_frac|number|Fraction between mean and max line length of content.
|
57 |
+
|ratio|number|Character/token ratio of the file with tokenizer.
|
58 |
+
|autogenerated|boolean|True if the content is autogenerated by looking for keywords in the first few lines of the file.
|
59 |
+
|config_or_test|boolean|True if the content is a configuration file or a unit test.
|
60 |
+
|has_no_keywords|boolean|True if a file has none of the keywords for Kotlin Programming Language.
|
61 |
+
|has_few_assignments|boolean|True if file uses symbol '=' less than `minimum` times.
|
62 |
+
|
63 |
+
### Instance
|
64 |
+
|
65 |
+
```json
|
66 |
+
{
|
67 |
+
"repo_name":"oboenikui/UnivCoopFeliCaReader",
|
68 |
+
"path":"app/src/main/java/com/oboenikui/campusfelica/ScannerActivity.kt",
|
69 |
+
"copies":"1",
|
70 |
+
"size":"5635",
|
71 |
+
"content":"....",
|
72 |
+
"license":"apache-2.0",
|
73 |
+
"hash":"e88cfd99346cbef640fc540aac3bf20b",
|
74 |
+
"line_mean":37.8620689655,
|
75 |
+
"line_max":199,
|
76 |
+
"alpha_frac":0.5724933452,
|
77 |
+
"ratio":5.0222816399,
|
78 |
+
"autogenerated":false,
|
79 |
+
"config_or_test":false,
|
80 |
+
"has_no_keywords":false,
|
81 |
+
"has_few_assignments":false
|
82 |
+
}
|
83 |
+
```
|
84 |
+
|
85 |
+
## Languages
|
86 |
+
|
87 |
+
The dataset contains only Kotlin files.
|
88 |
+
|
89 |
+
```json
|
90 |
+
{
|
91 |
+
"Kotlin": [".kt"]
|
92 |
+
}
|
93 |
+
```
|
94 |
+
|
95 |
+
## Licenses
|
96 |
+
|
97 |
+
Each entry in the dataset contains the associated license. The following is a list of licenses involved and their occurrences.
|
98 |
+
|
99 |
+
```json
|
100 |
+
{
|
101 |
+
"agpl-3.0":3209,
|
102 |
+
"apache-2.0":90782,
|
103 |
+
"artistic-2.0":130,
|
104 |
+
"bsd-2-clause":380,
|
105 |
+
"bsd-3-clause":3584,
|
106 |
+
"cc0-1.0":155,
|
107 |
+
"epl-1.0":792,
|
108 |
+
"gpl-2.0":4432,
|
109 |
+
"gpl-3.0":19816,
|
110 |
+
"isc":345,
|
111 |
+
"lgpl-2.1":118,
|
112 |
+
"lgpl-3.0":2689,
|
113 |
+
"mit":31470,
|
114 |
+
"mpl-2.0":1444,
|
115 |
+
"unlicense":654
|
116 |
+
}
|
117 |
+
```
|
118 |
+
|
119 |
+
## Dataset Statistics
|
120 |
+
|
121 |
+
```json
|
122 |
+
{
|
123 |
+
"Total size": "~207 MB",
|
124 |
+
"Number of files": 160000,
|
125 |
+
"Number of files under 500 bytes": 2957,
|
126 |
+
"Average file size in bytes": 5199,
|
127 |
+
}
|
128 |
+
```
|
129 |
+
|
130 |
+
## Curation Process
|
131 |
+
|
132 |
+
See [the unsliced curated dataset](https://huggingface.co/datasets/mvasiliniuc/iva-kotlin-codeint-clean) for mode details.
|
133 |
+
|
134 |
+
## Data Splits
|
135 |
+
|
136 |
+
The dataset only contains a train split focused only on training data. For validation and unspliced versions, please check the following links:
|
137 |
+
* Clean Version Unsliced: https://huggingface.co/datasets/mvasiliniuc/iva-kotlin-codeint-clean
|
138 |
+
* Clean Version Valid: https://huggingface.co/datasets/mvasiliniuc/iva-kotlin-codeint-clean-valid
|
139 |
+
|
140 |
+
# Considerations for Using the Data
|
141 |
+
|
142 |
+
The dataset consists of source code from a wide range of repositories.
|
143 |
+
As such they can potentially include harmful or biased code as well as sensitive information like passwords or usernames.
|