Title :
Inter-Project Functional Clone Detection Toward Building Libraries - An Empirical Study on 13,000 Projects
Author :
Ishihara, Tomoya ; Hotta, Keisuke ; Higo, Yoshiki ; Igaki, Hiroshi ; Kusumoto, Shinji
Author_Institution :
Grad. Sch. of Inf. Sci. & Technol., Osaka Univ., Suita, Japan
Abstract :
Libraries created from commonly used functionalities offer a variety of benefits to developers. To locate such widely used functionalities, clone detection on a large corpus of source code could be useful. However, existing clone detection techniques did not address the creation of libraries. Therefore, existing clone detectors are sometimes unbefitting to detect candidates to be included in libraries. This paper proposes a method-based clone detection technique focusing on building libraries. This method-level granularity is appropriate for building libraries because a method composes a functionally coherent unit, and so it can be easily pulled up into libraries. Also, such a granularity realizes a scalable detection on huge data sets. Our experimental results on a huge data set (360 million lines of code, 13,000 projects) showed that the proposed technique could detect functional clones which might be beneficial on the creation of libraries within a short time frame.
Keywords :
program diagnostics; programming languages; software libraries; software maintenance; inter-project functional clone detection; library building; library creation; method-based clone detection technique; method-level granularity; software library; source code corpus; Buildings; Cloning; Java; Libraries; Measurement; Software systems; Clone detection; Huge data set; Library building;
Conference_Titel :
Reverse Engineering (WCRE), 2012 19th Working Conference on
Conference_Location :
Kingston, ON
Print_ISBN :
978-1-4673-4536-1
DOI :
10.1109/WCRE.2012.48