Published January 26, 2023 | Version v2
Dataset Open

Defectors: A Large Scale Python Dataset for Defect Prediction

  • 1. Dalhousie University

Description

Defect prediction has been a major research problem in the software engineering domain for the last five decades.
In recent years, large deep-learning models have shifted the performance of software engineering tasks to new limits and are gaining usage in defect prediction.
However, these defect prediction models are often limited by the quality of their datasets, which are not large or diverse enough.
In this paper, we present Defectors, a large dataset for both line-level and just-in-time defect prediction.
Defectors consist of $\approx$ 213K source code files ($\approx$ 93K defective and $\approx$ 120K defect-free files) from 25 popular python projects from various domains and organizations.
These projects come from a diverse set of domains including machine learning, automation, and internet-of-things.
Such a scale and diversity make Defectors a suitable dataset for deep learning models, especially transformer models that require large and diverse datasets to effectively generalize defect-inducing patterns to predict future defects.

Dataset Description
File Name Description
defectors.zip The original Dataset. Find its description in Section II of the paper.
bug_inducing_commits.zip Each yaml file contains a map of bugfix commits to bug-inducing commits.
filtered_bug_inducing_commits.yaml A map in structure {repo_name: {bug_inducing_commits: [list of python files in the commit]}}. This file only contains the bug-inducing commits that match the filtering criteria from Section III.D.
repo_links.yaml Links to the repositories we used to construct the dataset.

 

Files

bug_inducing_commits.zip

Files (2.2 GB)

Name Size Download all
md5:3b4816bf81335f94f6187fd976a2a22c
4.3 MB Preview Download
md5:7d6bab4dd3f12ecd76b8d8a8bc785b13
2.2 GB Preview Download
md5:46fa9d902d40ef03c2abf68fef26704c
3.3 MB Download
md5:b52880d82b80d19ec1f7085e7dbe901c
1.5 kB Download