Abstract
In this paper, we present ManyTypes4Py, a large Python dataset for machine learning (ML)-based type inference. The dataset contains a total of 5, 382 Python projects with more than 869K type annotations. Duplicate source code files were removed to eliminate the negative effect of the duplication bias. To facilitate training and evaluation of ML models, the dataset was split into training, validation and test sets by files. To extract type information from abstract syntax trees (ASTs), a light-weight static analyzer pipeline is developed and accompanied with the dataset. Using this pipeline, the collected Python projects were analyzed and the results of the AST analysis were stored in JSON-formatted files. The ManyTypes4Py dataset is shared on zenodo and its tools are publicly available on GitHub.
Original language | English |
---|---|
Title of host publication | 2021 IEEE/ACM 18th International Conference on Mining Software Repositories, MSR 2021 |
Subtitle of host publication | Proceedings |
Editors | L. O'Conner |
Place of Publication | Piscataway |
Publisher | IEEE |
Pages | 585-589 |
Number of pages | 5 |
ISBN (Electronic) | 978-1-7281-8710-5 |
ISBN (Print) | 978-1-6654-2985-6 |
DOIs | |
Publication status | Published - 2021 |
Event | 2021 IEEE/ACM 18th International Conference on Mining Software Repositories (MSR) - Virtual at Madrid, Spain Duration: 17 May 2021 → 19 May 2021 Conference number: 18th |
Publication series
Name | 2021 IEEE/ACM 18TH INTERNATIONAL CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR 2021) |
---|---|
ISSN (Print) | 2160-1852 |
Conference
Conference | 2021 IEEE/ACM 18th International Conference on Mining Software Repositories (MSR) |
---|---|
Abbreviated title | MSR21 |
Country/Territory | Spain |
City | Virtual at Madrid |
Period | 17/05/21 → 19/05/21 |
Bibliographical note
Accepted author manuscriptKeywords
- Machine Learning
- Python
- Static Analysis
- Type Annotations
- Type Inference