kevinjesse commited on
Commit
97a0e66
·
1 Parent(s): 274820e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +172 -171
README.md CHANGED
@@ -1,172 +1,173 @@
1
- ---
2
- licenses:
3
- - cc-by-4.0
4
- annotations_creators:
5
- - found
6
- - machine-generated
7
- language_creators:
8
- - found
9
- languages:
10
- - TypeScript
11
- multilinguality:
12
- - monolingual
13
- size_categories:
14
- - 10M<n<100M
15
- source_datasets:
16
- - original
17
- task_categories:
18
- - structure-prediction
19
- task_ids:
20
- - type-inference
21
- pretty_name: ManyTypes4TypeScript
22
- ---
23
- # Models Trained On ManyTypes4TypeScript
24
- - **[CodeBERT]**(https://huggingface.co/kevinjesse/codebert-MT4TS)
25
- - **[GraphCodeBERT]**(https://huggingface.co/kevinjesse/graphcodebert-MT4TS)
26
- - **[CodeBERTa]**(https://huggingface.co/kevinjesse/codeberta-MT4TS)
27
-
28
- ## Table of Contents
29
- - [Dataset Description](#dataset-description)
30
- - [Dataset Summary](#dataset-summary)
31
- - [Supported Tasks and Leaderboards](#supported-tasks)
32
- - [Languages](#languages)
33
- - [Dataset Structure](#dataset-structure)
34
- - [Data Instances](#data-instances)
35
- - [Data Fields](#data-fields)
36
- - [Data Splits](#data-splits-sample-size)
37
- - [Dataset Creation](#dataset-creation)
38
- - [Curation Rationale](#curation-rationale)
39
- - [Source Data](#source-data)
40
- - [Annotations](#annotations)
41
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
42
- - [Considerations for Using the Data](#considerations-for-using-the-data)
43
- - [Social Impact of Dataset](#social-impact-of-dataset)
44
- - [Discussion of Biases](#discussion-of-biases)
45
- - [Other Known Limitations](#other-known-limitations)
46
- - [Additional Information](#additional-information)
47
- - [Dataset Curators](#dataset-curators)
48
- - [Licensing Information](#licensing-information)
49
- - [Citation Information](#citation-information)
50
- - [Contributions](#contributions)
51
-
52
- ## Dataset Description
53
-
54
- - **Homepage:** https://github.com/kevinjesse/ManyTypes4TypeScript
55
-
56
- ### Dataset Summary
57
-
58
- ManyTypes4TypeScript type inference dataset, available at https://github.com/kevinjesse/ManyTypes4TypeScript
59
-
60
- Given a line of source code, the task is to identify types that correspond with the tokens of code. We treat this as a tagging task similar to NER and POS where the model must predict a structural property of code i.e types. This is a classification task where the labels are the top occurring types in the training dataset. The size type vocabulary can be changed with the scripts found on Github.
61
-
62
-
63
- ### Supported Tasks and Leaderboards
64
-
65
- - `multi-class-classification`: The dataset can be used to train a model for predicting types across a sequence.
66
-
67
- ### Languages
68
-
69
- - TypeScript
70
-
71
- ## Dataset Structure
72
-
73
- ### Data Instances
74
-
75
- An example of 'validation' looks as follows.
76
- ```
77
- {
78
- "tokens": ["import", "{", "Component", ",", "ChangeDetectorRef", "}", "from", "'@angular/core'", ";", "import", "{", "Router", "}", "from", "'@angular/router'", ";", "import", "{", "MenuController", "}", "from", "'@ionic/angular'", ";", "import", "{", "Storage", "}", "from", "'@ionic/storage'", ";", "import", "Swiper", "from", "'swiper'", ";", "@", "Component", "(", "{", "selector", ":", "'page-tutorial'", ",", "templateUrl", ":", "'tutorial.html'", ",", "styleUrls", ":", "[", "'./tutorial.scss'", "]", ",", "}", ")", "export", "class", "TutorialPage", "{", "showSkip", "=", "true", ";", "private", "slides", ":", "Swiper", ";", "constructor", "(", "public", "menu", ",", "public", "router", ",", "public", "storage", ",", "private", "cd", ")", "{", "}", "startApp", "(", ")", "{", "this", ".", "router", ".", "navigateByUrl", "(", "'/app/tabs/schedule'", ",", "{", "replaceUrl", ":", "true", "}", ")", ".", "then", "(", "(", ")", "=>", "this", ".", "storage", ".", "set", "(", "'ion_did_tutorial'", ",", "true", ")", ")", ";", "}", "setSwiperInstance", "(", "swiper", ")", "{", "this", ".", "slides", "=", "swiper", ";", "}", "onSlideChangeStart", "(", ")", "{", "this", ".", "showSkip", "=", "!", "this", ".", "slides", ".", "isEnd", ";", "this", ".", "cd", ".", "detectChanges", "(", ")", ";", "}", "ionViewWillEnter", "(", ")", "{", "this", ".", "storage", ".", "get", "(", "'ion_did_tutorial'", ")", ".", "then", "(", "res", "=>", "{", "if", "(", "res", "===", "true", ")", "{", "this", ".", "router", ".", "navigateByUrl", "(", "'/app/tabs/schedule'", ",", "{", "replaceUrl", ":", "true", "}", ")", ";", "}", "}", ")", ";", "this", ".", "menu", ".", "enable", "(", "false", ")", ";", "}", "ionViewDidLeave", "(", ")", "{", "this", ".", "menu", ".", "enable", "(", "true", ")", ";", "}", "}"],
79
- "labels": [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "MenuController", null, null, "Router", null, null, "Storage", null, null, "ChangeDetectorRef", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "Swiper", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
80
- "url": "https://github.com/ionic-team/ionic-conference-app",
81
- "path": "ionic-conference-app/src/app/pages/tutorial/tutorial.ts",
82
- "commit_hash": "34d97d29369377a2f0173a2958de1ee0dadb8a6e",
83
- "file": "tutorial.ts"}
84
- }
85
- ```
86
-
87
- ### Data Fields
88
-
89
- The data fields are the same among all splits.
90
-
91
- #### default
92
-
93
- |field name. | type | description |
94
- |------------|-------------|--------------------------------------------|
95
- |tokens |list[string] | Sequence of tokens (word tokenization) |
96
- |labels |list[string] | A list of corresponding types |
97
- |url |string | Repository URL |
98
- |path |string | Original file path that contains this code |
99
- |commit_hash |string | Commit identifier in the original project |
100
- |file |string | File name |
101
-
102
- ### Data Splits
103
-
104
- | name | train |validation| test |
105
- |---------:|---------:|---------:|--------:|
106
- |projects | 75.00% | 12.5% | 12.5% |
107
- |files | 90.53% | 4.43% | 5.04% |
108
- |sequences | 91.95% | 3.71% | 4.34% |
109
- |types | 95.33% | 2.21% | 2.46% |
110
-
111
- ##Types by the Numbers
112
-
113
- ## Dataset Creation
114
-
115
- ### Curation Rationale
116
-
117
- [More Information Needed]
118
-
119
- ### Source Data
120
-
121
- #### Initial Data Collection and Normalization
122
-
123
- [More Information Needed]
124
-
125
- #### Who are the source language producers?
126
-
127
- [More Information Needed]
128
-
129
- ### Annotations
130
-
131
- Human annotated types in optionally typed languages and the compiler inferred annotations.
132
-
133
- #### Annotation process
134
-
135
-
136
-
137
- #### Who are the annotators?
138
-
139
- Developers and TypeScript Compiler.
140
-
141
- ### Personal and Sensitive Information
142
-
143
- [More Information Needed]
144
-
145
- ## Considerations for Using the Data
146
-
147
- ### Social Impact of Dataset
148
-
149
- [More Information Needed]
150
-
151
- ### Discussion of Biases
152
-
153
- [More Information Needed]
154
-
155
- ### Other Known Limitations
156
-
157
- [More Information Needed]
158
-
159
- ## Additional Information
160
-
161
- ### Dataset Curators
162
-
163
- https://github.com/kevinjesse
164
-
165
- ### Licensing Information
166
-
167
- Creative Commons 4.0 (CC) license
168
-
169
- ### Citation Information
170
-
171
- ```
 
172
  ```
 
1
+ ---
2
+ licenses:
3
+ - cc-by-4.0
4
+ annotations_creators:
5
+ - found
6
+ - machine-generated
7
+ language_creators:
8
+ - found
9
+ languages:
10
+ - TypeScript
11
+ multilinguality:
12
+ - monolingual
13
+ size_categories:
14
+ - 10M<n<100M
15
+ source_datasets:
16
+ - original
17
+ task_categories:
18
+ - structure-prediction
19
+ task_ids:
20
+ - type-inference
21
+ pretty_name: ManyTypes4TypeScript
22
+ ---
23
+ # Models Trained On ManyTypes4TypeScript
24
+ - **[CodeBERT]**(https://huggingface.co/kevinjesse/codebert-MT4TS)
25
+ - **[GraphCodeBERT]**(https://huggingface.co/kevinjesse/graphcodebert-MT4TS)
26
+ - **[CodeBERTa]**(https://huggingface.co/kevinjesse/codeberta-MT4TS)
27
+
28
+ ## Table of Contents
29
+ - [Dataset Description](#dataset-description)
30
+ - [Dataset Summary](#dataset-summary)
31
+ - [Supported Tasks and Leaderboards](#supported-tasks)
32
+ - [Languages](#languages)
33
+ - [Dataset Structure](#dataset-structure)
34
+ - [Data Instances](#data-instances)
35
+ - [Data Fields](#data-fields)
36
+ - [Data Splits](#data-splits-sample-size)
37
+ - [Dataset Creation](#dataset-creation)
38
+ - [Curation Rationale](#curation-rationale)
39
+ - [Source Data](#source-data)
40
+ - [Annotations](#annotations)
41
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
42
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
43
+ - [Social Impact of Dataset](#social-impact-of-dataset)
44
+ - [Discussion of Biases](#discussion-of-biases)
45
+ - [Other Known Limitations](#other-known-limitations)
46
+ - [Additional Information](#additional-information)
47
+ - [Dataset Curators](#dataset-curators)
48
+ - [Licensing Information](#licensing-information)
49
+ - [Citation Information](#citation-information)
50
+ - [Contributions](#contributions)
51
+
52
+ ## Dataset Description
53
+
54
+ - **Dataset:** https://doi.org/10.5281/zenodo.6387001
55
+ - **PapersWithCode:** https://paperswithcode.com/sota/type-prediction-on-manytypes4typescript
56
+
57
+ ### Dataset Summary
58
+
59
+ ManyTypes4TypeScript type inference dataset, available at [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.6387001.svg)](https://doi.org/10.5281/zenodo.6387001)
60
+
61
+ Given a line of source code, the task is to identify types that correspond with the tokens of code. We treat this as a tagging task similar to NER and POS where the model must predict a structural property of code i.e types. This is a classification task where the labels are the top occurring types in the training dataset. The size type vocabulary can be changed with the scripts found on Github.
62
+
63
+
64
+ ### Supported Tasks and Leaderboards
65
+
66
+ - `multi-class-classification`: The dataset can be used to train a model for predicting types across a sequence.
67
+
68
+ ### Languages
69
+
70
+ - TypeScript
71
+
72
+ ## Dataset Structure
73
+
74
+ ### Data Instances
75
+
76
+ An example of 'validation' looks as follows.
77
+ ```
78
+ {
79
+ "tokens": ["import", "{", "Component", ",", "ChangeDetectorRef", "}", "from", "'@angular/core'", ";", "import", "{", "Router", "}", "from", "'@angular/router'", ";", "import", "{", "MenuController", "}", "from", "'@ionic/angular'", ";", "import", "{", "Storage", "}", "from", "'@ionic/storage'", ";", "import", "Swiper", "from", "'swiper'", ";", "@", "Component", "(", "{", "selector", ":", "'page-tutorial'", ",", "templateUrl", ":", "'tutorial.html'", ",", "styleUrls", ":", "[", "'./tutorial.scss'", "]", ",", "}", ")", "export", "class", "TutorialPage", "{", "showSkip", "=", "true", ";", "private", "slides", ":", "Swiper", ";", "constructor", "(", "public", "menu", ",", "public", "router", ",", "public", "storage", ",", "private", "cd", ")", "{", "}", "startApp", "(", ")", "{", "this", ".", "router", ".", "navigateByUrl", "(", "'/app/tabs/schedule'", ",", "{", "replaceUrl", ":", "true", "}", ")", ".", "then", "(", "(", ")", "=>", "this", ".", "storage", ".", "set", "(", "'ion_did_tutorial'", ",", "true", ")", ")", ";", "}", "setSwiperInstance", "(", "swiper", ")", "{", "this", ".", "slides", "=", "swiper", ";", "}", "onSlideChangeStart", "(", ")", "{", "this", ".", "showSkip", "=", "!", "this", ".", "slides", ".", "isEnd", ";", "this", ".", "cd", ".", "detectChanges", "(", ")", ";", "}", "ionViewWillEnter", "(", ")", "{", "this", ".", "storage", ".", "get", "(", "'ion_did_tutorial'", ")", ".", "then", "(", "res", "=>", "{", "if", "(", "res", "===", "true", ")", "{", "this", ".", "router", ".", "navigateByUrl", "(", "'/app/tabs/schedule'", ",", "{", "replaceUrl", ":", "true", "}", ")", ";", "}", "}", ")", ";", "this", ".", "menu", ".", "enable", "(", "false", ")", ";", "}", "ionViewDidLeave", "(", ")", "{", "this", ".", "menu", ".", "enable", "(", "true", ")", ";", "}", "}"],
80
+ "labels": [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "MenuController", null, null, "Router", null, null, "Storage", null, null, "ChangeDetectorRef", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "Swiper", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
81
+ "url": "https://github.com/ionic-team/ionic-conference-app",
82
+ "path": "ionic-conference-app/src/app/pages/tutorial/tutorial.ts",
83
+ "commit_hash": "34d97d29369377a2f0173a2958de1ee0dadb8a6e",
84
+ "file": "tutorial.ts"}
85
+ }
86
+ ```
87
+
88
+ ### Data Fields
89
+
90
+ The data fields are the same among all splits.
91
+
92
+ #### default
93
+
94
+ |field name. | type | description |
95
+ |------------|-------------|--------------------------------------------|
96
+ |tokens |list[string] | Sequence of tokens (word tokenization) |
97
+ |labels |list[string] | A list of corresponding types |
98
+ |url |string | Repository URL |
99
+ |path |string | Original file path that contains this code |
100
+ |commit_hash |string | Commit identifier in the original project |
101
+ |file |string | File name |
102
+
103
+ ### Data Splits
104
+
105
+ | name | train |validation| test |
106
+ |---------:|---------:|---------:|--------:|
107
+ |projects | 75.00% | 12.5% | 12.5% |
108
+ |files | 90.53% | 4.43% | 5.04% |
109
+ |sequences | 91.95% | 3.71% | 4.34% |
110
+ |types | 95.33% | 2.21% | 2.46% |
111
+
112
+ ##Types by the Numbers
113
+
114
+ ## Dataset Creation
115
+
116
+ ### Curation Rationale
117
+
118
+ [More Information Needed]
119
+
120
+ ### Source Data
121
+
122
+ #### Initial Data Collection and Normalization
123
+
124
+ [More Information Needed]
125
+
126
+ #### Who are the source language producers?
127
+
128
+ [More Information Needed]
129
+
130
+ ### Annotations
131
+
132
+ Human annotated types in optionally typed languages and the compiler inferred annotations.
133
+
134
+ #### Annotation process
135
+
136
+
137
+
138
+ #### Who are the annotators?
139
+
140
+ Developers and TypeScript Compiler.
141
+
142
+ ### Personal and Sensitive Information
143
+
144
+ [More Information Needed]
145
+
146
+ ## Considerations for Using the Data
147
+
148
+ ### Social Impact of Dataset
149
+
150
+ [More Information Needed]
151
+
152
+ ### Discussion of Biases
153
+
154
+ [More Information Needed]
155
+
156
+ ### Other Known Limitations
157
+
158
+ [More Information Needed]
159
+
160
+ ## Additional Information
161
+
162
+ ### Dataset Curators
163
+
164
+ https://github.com/kevinjesse
165
+
166
+ ### Licensing Information
167
+
168
+ Creative Commons 4.0 (CC) license
169
+
170
+ ### Citation Information
171
+
172
+ ```
173
  ```