kevinjesse
commited on
Commit
·
97a0e66
1
Parent(s):
274820e
Update README.md
Browse files
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 |
-
- **
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
"
|
80 |
-
"
|
81 |
-
"
|
82 |
-
"
|
83 |
-
"
|
84 |
-
}
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
|
97 |
-
|
|
98 |
-
|
|
99 |
-
|
|
100 |
-
|
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
|
108 |
-
|
|
109 |
-
|
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
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 |
```
|