Natural Language Processing Based Detection of Duplicate Defect Patterns
- 1 July 2010
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 220-225
Abstract
A Defect pattern repository collects different kinds of defect patterns, which are general descriptions of the characteristics of commonly occurring software code defects. Defect patterns can be widely used by programmers, static defect analysis tools, and even runtime verification. Following the idea of web 2.0, defect pattern repositories allow these users to submit defect patterns they found. However, submission of duplicate patterns would lead to a redundancy in the repository. This paper introduces an approach to suggest potential duplicates based on natural language processing. Our approach first computes field similarities based on Vector Space Model, and then employs Information Entropy to determine the field importance, and next combines the field similarities to form the final defect pattern similarity. Two strategies are introduced to make our approach adaptive to special situations. Finally, groups of duplicates are obtained by adopting Hierarchical Clustering. Evaluation indicates that our approach could detect most of the actual duplicates (72% in our experiment) in the repository.Keywords
This publication has 10 references indexed in Scilit:
- Inferring Resource Specifications from Natural Language API Documentation2009
- Code siblings: Technical and legal implications of copying code between applications2009
- Specification Mining with Few False Positives2009
- An approach to detecting duplicate bug reports using natural language and execution information2008
- Ontology Model-Based Static Analysis on Java Programs2008
- Detection of Duplicate Defect Reports Using Natural Language Processing29th International Conference on Software Engineering (ICSE'07), 2007
- Correlation exploitation in error ranking2004
- Finding bugs is easy2004
- Debugging temporal specifications with concept analysis2003
- Bugs as deviant behavior2001