Reproduce “Defectors: A Large, Diverse Python Dataset for Defect Prediction” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Parvez Mahbub, Ohiduzzaman Shuvo, Mohammad Masudur Rahman
Researchers at Dalhousie University created "Defectors," a large-scale, diverse, and class-balanced dataset for just-in-time and line-level defect prediction in Python projects. The dataset includes approximately 213,000 files and changes from 24 projects spanning 18 application domains, featuring a nearly 1:1 ratio of defective to defect-free instances in its training splits.
Key insights
- The SZZ algorithm, while effective for identifying bug-inducing commits, necessitates rigorous multi-level noise filtration to produce high-quality labels for defect prediction datasets.
- Careful selection of diverse projects, encompassing various application domains and organizational contexts, is critical for enhancing the generalizability of trained defect prediction models.
- Achieving a balanced class distribution in training datasets, especially a near 1:1 ratio, can significantly mitigate bias and improve the accuracy of models in identifying minority (defective) instances.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.