There is a newer version of the record available.

Published March 7, 2022 | Version v1
Dataset Open

ManyTypes4TypeScript: A Comprehensive TypeScript Dataset for Sequence-Based Type Inference

  • 1. University of California, Davis

Description

In this paper, we present ManyTypes4TypeScript, a very large corpus for training and evaluating machine-learning models for sequence-based type inference in TypeScript. The dataset includes over 9 million type annotations, across 13,953 projects and 539,571 files. The dataset is approximately 10x larger than analogous type inference datasets for Python, and is the largest available for TypeScript. We also provide API access to the dataset, which can be integrated into any tokenizer and used with any state-of-the-art sequence-based model. Finally, we provide analysis and performance results for state-of-the-art code-specific models, for baselining. ManyTypes4TypeScript is available on Huggingface and Zenodo.

This dataset was collected on January 22, 2022 and deduplicated with Allamanis code deduplication tool.

Files

Files (2.2 GB)

Name Size Download all
md5:45a2687d34cc4c1365167f82ca5790e7
2.2 GB Download

Additional details

Funding

SHF: Large: Collaborative Research: Exploiting the Naturalness of Software 1414172
National Science Foundation