[Paper Review] Large-Scale Manual Validation of Bug Fixing Commits: A Fine-grained Analysis of Tangling.
This study uses crowd-sourced manual labeling of 4,000+ lines in bug-fixing commits to reveal that 17–32% of code changes directly fix bugs, rising to 66–87% in production code. The research finds high tangling prevalence—up to 47% of data may be noisy—highlighting the need for manual validation in empirical SE studies to avoid misleading results.
Context: Tangled commits are changes to software that address multiple concerns at once. For researchers interested in bugs, tangled commits mean that they actually study not only bugs, but also other concerns irrelevant for the study of bugs. Objective: We want to improve our understanding of the prevalence of tangling and the types of changes that are tangled within bug fixing commits. Methods: We use a crowd sourcing approach for manual labeling to validate which changes contribute to bug fixes for each line in bug fixing commits. Each line is labeled by four participants. If at least three participants agree on the same label, we have consensus. Results: We estimate that between 17\% and 32\% of all changes in bug fixing commits modify the source code to fix the underlying problem. However, when we only consider changes to the production code files this ratio increases to 66\% to 87\%. We find that about 11\% of lines are hard to label leading to active disagreements between participants. Due to confirmed tangling and the uncertainty in our data, we estimate that 3\% to 47\% of data is noisy without manual untangling, depending on the use case. Conclusion: Tangled commits have a high prevalence in bug fixes and can lead to a large amount of noise in the data. Prior research indicates that this noise may alter results. As researchers, we should be skeptics and assume that unvalidated data is likely very noisy, until proven otherwise.
Motivation & Objective
- To understand the true prevalence of tangling in bug-fixing commits, where multiple concerns are addressed in a single commit.
- To assess how much of the code changes in bug-fixing commits are actually related to fixing the reported bug, rather than addressing unrelated concerns.
- To quantify the uncertainty and disagreement in labeling changes as bug-fixing, identifying lines that are hard to classify.
- To estimate the potential noise introduced by tangling in existing empirical software engineering studies that rely on automated commit analysis.
- To advocate for manual validation as a necessary step to reduce noise and improve reliability in empirical software engineering research.
Proposed method
- Employed a crowd-sourcing approach with four independent participants labeling each line in bug-fixing commits as either 'fixes bug', 'not related', or 'ambiguous'.
- Used consensus labeling: a line was considered reliably labeled only if at least three out of four participants agreed on the same label.
- Focused on lines in production code files to assess the proportion of changes directly contributing to bug fixes.
- Classified lines with active disagreement (disagreement among participants) as 'hard to label' to assess labeling uncertainty.
- Calculated noise estimates by measuring the proportion of data that could be misclassified due to tangling, depending on use case.
- Analyzed 4,000+ lines across multiple open-source projects to ensure statistical robustness of findings.
Experimental results
Research questions
- RQ1What proportion of changes in bug-fixing commits actually fix the reported bug, as determined by manual labeling?
- RQ2How prevalent is tangling in bug-fixing commits, particularly in production code files?
- RQ3What percentage of lines in bug-fixing commits are difficult to label due to ambiguity or disagreement among raters?
- RQ4To what extent does tangling introduce noise into empirical software engineering datasets, and how does this vary by use case?
- RQ5How does manual consensus labeling compare to automated commit analysis in terms of reliability for identifying actual bug fixes?
Key findings
- Between 17% and 32% of all code changes in bug-fixing commits are directly responsible for fixing the underlying bug.
- When restricted to production code files, the proportion of changes that fix bugs increases significantly to between 66% and 87%.
- Approximately 11% of lines in bug-fixing commits are hard to label, indicating active disagreement among raters and high ambiguity.
- Due to confirmed tangling and labeling uncertainty, up to 47% of the data may be noisy in some use cases, with a conservative lower bound of 3% noise.
- The study confirms that unvalidated commit data is highly likely to contain significant noise due to tangling, challenging the validity of prior automated studies.
- The results underscore the necessity of manual validation in empirical software engineering research to avoid misleading conclusions from untangled, unverified data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.