ManyTypes4Py

A benchmark python dataset for machine learning-based type inference

Conference Paper (2021)
Author(s)

S.A.M. Mir (TU Delft - Software Engineering)

Evaldas Latoskinas (Student TU Delft)

Georgios Gousios (TU Delft - Software Engineering)

Research Group
Software Engineering
Copyright
© 2021 S.A.M. Mir, Evaldas Latoskinas, G. Gousios
DOI related publication
https://doi.org/10.1109/MSR52588.2021.00079
More Info
expand_more
Publication Year
2021
Language
English
Copyright
© 2021 S.A.M. Mir, Evaldas Latoskinas, G. Gousios
Research Group
Software Engineering
Pages (from-to)
585-589
ISBN (print)
978-1-6654-2985-6
ISBN (electronic)
978-1-7281-8710-5
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

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.

Files

Mt4py_paper.pdf
(pdf | 0.703 Mb)
License info not available