Cross‐Repository Software Defect Prediction: A Leave‐One‐Repository‐Out Empirical Study Across Five Mature Open‐Source Projects
Vijay Prasad Javvadi
Key points
From the paper's conclusion- We report a leave‐one‐repository‐out (LORO) study of file‐level software defect prediction across five mature open‐source systems—Elasticsearch, Spring Boot, Hadoop, Kafka, and Express—totalling 296,457 file instances.
Abstract
We report a leave‐one‐repository‐out (LORO) study of file‐level software defect prediction across five mature open‐source systems—Elasticsearch, Spring Boot, Hadoop, Kafka, and Express—totalling 296,457 file instances. Classifiers are trained on the union of four repositories and evaluated on the fifth, using seven process metrics computable from any Git history; defect labels come from a six‐keyword commit‐message heuristic. Transfer holds and is not classifier‐specific: across a six‐classifier panel, every model attains cross‐repository AUC > 0.80 on every held‐out target, with Gradient Boosting best (mean AUC 0.8672) and the Random Forest reference configuration at 0.8598 (per‐target 0.8106 on Express to 0.9019 on Spring Boot, with bootstrap 95% confidence intervals). Mean cross‐repository is 0.6362 versus a within‐repository mean of 0.6834, a 0.047 absolute ( 7% relative) degradation—essentially unchanged (−0.046) when both models are scored on identical matched test rows; AUC degrades by only 0.028, evidence that score rankings transfer better than fixed‐threshold decisions. On the smallest target (Express), the cross‐repository model matches its within‐repository baseline ( 0.7005 vs. 0.6846 full‐target; parity on matched rows). The conclusions survive four pre‐registered robustness probes: capping every source repository at 10,000 instances so no repository dominates training (mean AUC −0.005); removing documentation and test files and injecting up to 20% label noise ( AUC loss); adding size and cyclomatic‐complexity code metrics (process 0.868, code‐only 0.645, combined 0.871 on a matched subset); and a strict past‐to‐future temporal protocol on re‐mined histories (mean Gradient‐Boosting AUC 0.848 0.790, all targets 0.71–0.84). We implement no domain‐adaptation algorithms; the contribution is a large, fully reproducible LORO baseline—with archived per‐instance predictions—on which subsequent adaptation work can be evaluated.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- An audit of machine learning experiments on software defect predictionEmpirical Software Engineering · 2026
- KG-Commit: A Dynamic Knowledge Graph for Online Just-in-Time Software Defect PredictionarXiv · 2026
- Domain Adaptation for Cross-Project Defect Prediction via Transfer-Contrastive Learning with Large Language ModelsAlgorithms · 2026
- KG-AST for Cheaper CI/CD: Budgeted Test Selection and AI Bug ReviewarXiv · 2026
- Anticipating Future Build Results with BuildPredictorarXiv · 2026
- A structured overview and empirical evaluation of fine-tuning pre-trained transformer models for software defect predictionInternational Journal of Data Science and Analytics · 2026