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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
# Dataset Card for ManyTypes4TypeScript
|
| 24 |
+
|
| 25 |
+
## Table of Contents
|
| 26 |
+
- [Dataset Description](#dataset-description)
|
| 27 |
+
- [Dataset Summary](#dataset-summary)
|
| 28 |
+
- [Supported Tasks and Leaderboards](#supported-tasks)
|
| 29 |
+
- [Languages](#languages)
|
| 30 |
+
- [Dataset Structure](#dataset-structure)
|
| 31 |
+
- [Data Instances](#data-instances)
|
| 32 |
+
- [Data Fields](#data-fields)
|
| 33 |
+
- [Data Splits](#data-splits-sample-size)
|
| 34 |
+
- [Dataset Creation](#dataset-creation)
|
| 35 |
+
- [Curation Rationale](#curation-rationale)
|
| 36 |
+
- [Source Data](#source-data)
|
| 37 |
+
- [Annotations](#annotations)
|
| 38 |
+
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
| 39 |
+
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
| 40 |
+
- [Social Impact of Dataset](#social-impact-of-dataset)
|
| 41 |
+
- [Discussion of Biases](#discussion-of-biases)
|
| 42 |
+
- [Other Known Limitations](#other-known-limitations)
|
| 43 |
+
- [Additional Information](#additional-information)
|
| 44 |
+
- [Dataset Curators](#dataset-curators)
|
| 45 |
+
- [Licensing Information](#licensing-information)
|
| 46 |
+
- [Citation Information](#citation-information)
|
| 47 |
+
- [Contributions](#contributions)
|
| 48 |
+
|
| 49 |
+
## Dataset Description
|
| 50 |
+
|
| 51 |
+
- **Homepage:** https://github.com/kevinjesse/ManyTypes4TypeScript
|
| 52 |
+
|
| 53 |
+
### Dataset Summary
|
| 54 |
+
|
| 55 |
+
ManyTypes4TypeScript type inference dataset, available at https://github.com/kevinjesse/ManyTypes4TypeScript
|
| 56 |
+
|
| 57 |
+
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.
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
### Supported Tasks and Leaderboards
|
| 61 |
+
|
| 62 |
+
- `multi-class-classification`: The dataset can be used to train a model for predicting types across a sequence.
|
| 63 |
+
|
| 64 |
+
### Languages
|
| 65 |
+
|
| 66 |
+
- TypeScript
|
| 67 |
+
|
| 68 |
+
## Dataset Structure
|
| 69 |
+
|
| 70 |
+
### Data Instances
|
| 71 |
+
|
| 72 |
+
An example of 'validation' looks as follows.
|
| 73 |
+
```
|
| 74 |
+
{
|
| 75 |
+
"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", ")", ";", "}", "}"],
|
| 76 |
+
"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],
|
| 77 |
+
"url": "https://github.com/ionic-team/ionic-conference-app",
|
| 78 |
+
"path": "ionic-conference-app/src/app/pages/tutorial/tutorial.ts",
|
| 79 |
+
"commit_hash": "34d97d29369377a2f0173a2958de1ee0dadb8a6e",
|
| 80 |
+
"file": "tutorial.ts"}
|
| 81 |
+
}
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
### Data Fields
|
| 85 |
+
|
| 86 |
+
The data fields are the same among all splits.
|
| 87 |
+
|
| 88 |
+
#### default
|
| 89 |
+
|
| 90 |
+
|field name. | type | description |
|
| 91 |
+
|------------|-------------|--------------------------------------------|
|
| 92 |
+
|tokens |list[string] | Sequence of tokens (word tokenization) |
|
| 93 |
+
|labels |list[string] | A list of corresponding types |
|
| 94 |
+
|url |string | Repository URL |
|
| 95 |
+
|path |string | Original file path that contains this code |
|
| 96 |
+
|commit_hash |string | Commit identifier in the original project |
|
| 97 |
+
|file |string | File name |
|
| 98 |
+
|
| 99 |
+
### Data Splits
|
| 100 |
+
|
| 101 |
+
| name | train |validation| test |
|
| 102 |
+
|---------:|---------:|---------:|--------:|
|
| 103 |
+
|projects | 75.00% | 12.5% | 12.5% |
|
| 104 |
+
|files | 90.53% | 4.43% | 5.04% |
|
| 105 |
+
|sequences | 91.95% | 3.71% | 4.34% |
|
| 106 |
+
|types | 95.33% | 2.21% | 2.46% |
|
| 107 |
+
|
| 108 |
+
##Types by the Numbers
|
| 109 |
+
|
| 110 |
+
## Dataset Creation
|
| 111 |
+
|
| 112 |
+
### Curation Rationale
|
| 113 |
+
|
| 114 |
+
[More Information Needed]
|
| 115 |
+
|
| 116 |
+
### Source Data
|
| 117 |
+
|
| 118 |
+
#### Initial Data Collection and Normalization
|
| 119 |
+
|
| 120 |
+
[More Information Needed]
|
| 121 |
+
|
| 122 |
+
#### Who are the source language producers?
|
| 123 |
+
|
| 124 |
+
[More Information Needed]
|
| 125 |
+
|
| 126 |
+
### Annotations
|
| 127 |
+
|
| 128 |
+
Human annotated types in optionally typed languages and the compiler inferred annotations.
|
| 129 |
+
|
| 130 |
+
#### Annotation process
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
#### Who are the annotators?
|
| 135 |
+
|
| 136 |
+
Developers and TypeScript Compiler.
|
| 137 |
+
|
| 138 |
+
### Personal and Sensitive Information
|
| 139 |
+
|
| 140 |
+
[More Information Needed]
|
| 141 |
+
|
| 142 |
+
## Considerations for Using the Data
|
| 143 |
+
|
| 144 |
+
### Social Impact of Dataset
|
| 145 |
+
|
| 146 |
+
[More Information Needed]
|
| 147 |
+
|
| 148 |
+
### Discussion of Biases
|
| 149 |
+
|
| 150 |
+
[More Information Needed]
|
| 151 |
+
|
| 152 |
+
### Other Known Limitations
|
| 153 |
+
|
| 154 |
+
[More Information Needed]
|
| 155 |
+
|
| 156 |
+
## Additional Information
|
| 157 |
+
|
| 158 |
+
### Dataset Curators
|
| 159 |
+
|
| 160 |
+
https://github.com/kevinjesse
|
| 161 |
+
|
| 162 |
+
### Licensing Information
|
| 163 |
+
|
| 164 |
+
Creative Commons 2.0 (CC) license
|
| 165 |
+
|
| 166 |
+
### Citation Information
|
| 167 |
+
|
| 168 |
+
```
|
| 169 |
+
```
|