Bibliography

Query:
case sensitive

Sort by: Display: Hide controls:

  1. Stéphane Ducasse, Oscar Nierstrasz, and Matthias Rieger. On the Effectiveness of Clone Detection by String Matching. In Journal of Software Maintenance and Evolution: Research and Practice (JSME) 18(1) p. 37—58, 2006. DOI PDF 
    Abstract

    Although duplicated code is known to pose severe problems for software maintenance, it is difficult to identify in large systems. Many different techniques have been developed to detect software clones, some of which are very sophisticated, but are also expensive to implement and adapt. Lightweight techniques based on simple string matching are easy to implement, but how effective are they? We present a simple stringbased approach which we have successfully applied to a number of different languages such COBOL, Java, C\+\+, Pascal, Python, Smalltalk, C and PDP-11 assembler. In each case the maximum time to adapt the approach to a new language was less than 45 minutes. In this article we investigate a number of simple variants of string-based clone detection that abstract away from common editing operations, and assess the quality of clone detection for very different case studies. Our results confirm that this inexpensive clone detection technique generally achieves high recall and acceptable precision. Over-zealous normalization of the code before comparison, however, can result in unacceptable numbers of false positives.