mvasiliniuc commited on
Commit
07edb8f
·
1 Parent(s): 5e50949

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +144 -0
README.md ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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, swift, native iOS development, curated, training
13
+ size_categories:
14
+ - 10K<n<100K
15
+ source_datasets: []
16
+ pretty_name: iva-swift-codeint-clean
17
+ task_ids:
18
+ - language-modeling
19
+ ---
20
+
21
+ # IVA Swift GitHub Code Dataset
22
+
23
+ ## Dataset Description
24
+
25
+ This is the curated train split of IVA Swift dataset extracted from GitHub.
26
+ It contains curated Swift files gathered with the purpose to train a code generation model.
27
+
28
+ The dataset consists of 320000 Swift code files from GitHub.
29
+ [Here is the unsliced curated dataset](https://huggingface.co/datasets/mvasiliniuc/iva-swift-codeint-clean) and
30
+ [here is the raw dataset](https://huggingface.co/datasets/mvasiliniuc/iva-swift-codeint).
31
+
32
+ ### How to use it
33
+
34
+ To download the full dataset:
35
+
36
+ ```python
37
+ from datasets import load_dataset
38
+ dataset = load_dataset('mvasiliniuc/iva-swift-codeint-clean', split='train')
39
+ ```
40
+
41
+
42
+ ## Data Structure
43
+
44
+ ### Data Fields
45
+
46
+ |Field|Type|Description|
47
+ |---|---|---|
48
+ |repo_name|string|name of the GitHub repository|
49
+ |path|string|path of the file in GitHub repository|
50
+ |copies|string|number of occurrences in dataset|
51
+ |content|string|content of source file|
52
+ |size|string|size of the source file in bytes|
53
+ |license|string|license of GitHub repository|
54
+ |hash|string|Hash of content field.|
55
+ |line_mean|number|Mean line length of the content.
56
+ |line_max|number|Max line length of the content.
57
+ |alpha_frac|number|Fraction between mean and max line length of content.
58
+ |ratio|number|Character/token ratio of the file with tokenizer.
59
+ |autogenerated|boolean|True if the content is autogenerated by looking for keywords in the first few lines of the file.
60
+ |config_or_test|boolean|True if the content is a configuration file or a unit test.
61
+ |has_no_keywords|boolean|True if a file has none of the keywords for Swift Programming Language.
62
+ |has_few_assignments|boolean|True if file uses symbol '=' less than `minimum` times.
63
+
64
+ ### Instance
65
+
66
+ ```json
67
+ {
68
+ "repo_name":"...",
69
+ "path":".../BorderedButton.swift",
70
+ "copies":"2",
71
+ "size":"2649",
72
+ "content":"...",
73
+ "license":"mit",
74
+ "hash":"db1587fd117e9a835f58cf8203d8bf05",
75
+ "line_mean":29.1136363636,
76
+ "line_max":87,
77
+ "alpha_frac":0.6700641752,
78
+ "ratio":5.298,
79
+ "autogenerated":false,
80
+ "config_or_test":false,
81
+ "has_no_keywords":false,
82
+ "has_few_assignments":false
83
+ }
84
+ ```
85
+
86
+ ## Languages
87
+
88
+ The dataset contains only Swift files.
89
+
90
+ ```json
91
+ {
92
+ "Swift": [".swift"]
93
+ }
94
+ ```
95
+
96
+ ## Licenses
97
+
98
+ Each entry in the dataset contains the associated license. The following is a list of licenses involved and their occurrences.
99
+
100
+ ```json
101
+ {
102
+ "agpl-3.0":1415,
103
+ "apache-2.0":71451,
104
+ "artistic-2.0":169,
105
+ "bsd-2-clause":2628,
106
+ "bsd-3-clause":5492,
107
+ "cc0-1.0":1176,
108
+ "epl-1.0":498,
109
+ "gpl-2.0":7846,
110
+ "gpl-3.0":15716,
111
+ "isc":676,
112
+ "lgpl-2.1":932,
113
+ "lgpl-3.0":2553,
114
+ "mit":201134,
115
+ "mpl-2.0":6846,
116
+ "unlicense":1468
117
+ }
118
+ ```
119
+
120
+ ## Dataset Statistics
121
+
122
+ ```json
123
+ {
124
+ "Total size": "~453 MB",
125
+ "Number of files": 320000,
126
+ "Number of files under 500 bytes": 3116,
127
+ "Average file size in bytes": 5940,
128
+ }
129
+ ```
130
+
131
+ ## Curation Process
132
+
133
+ See [the unsliced curated dataset](https://huggingface.co/datasets/mvasiliniuc/iva-swift-codeint-clean) for mode details.
134
+
135
+ ## Data Splits
136
+
137
+ The dataset only contains a train split focused only on training data. For validation and unspliced versions, please check the following links:
138
+ * Clean Version Unsliced: https://huggingface.co/datasets/mvasiliniuc/iva-swift-codeint-clean
139
+ * Clean Version Valid: https://huggingface.co/datasets/mvasiliniuc/iva-swift-codeint-clean-valid
140
+
141
+ # Considerations for Using the Data
142
+
143
+ The dataset consists of source code from a wide range of repositories.
144
+ As such they can potentially include harmful or biased code as well as sensitive information like passwords or usernames.