计算机科学 > 软件工程
[提交于 2013年8月16日]
标题:Source Code Retrieval Using Sequence Based Similarity
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Duplicated code has a negative impact on the quality of software systems and should be detected at least. In this paper, we discuss an approach that improves source code retrieval using the structural information about the programs. We developed a lexical parser to extract control statements and method identifiers from Java programs. We propose a similarity measure that is defined by the ratio of the number of sequentially full matching statements to the number of sequentially partial matching ones. The similarity measure is considered to be an extension of a set based similarity index, e.g., Sorensen-Dice index. Our key contribution of this research is the development of a similarity retrieval algorithm that derives meaningful search conditions from a given sequence, and then performs retrieval using all of the derived conditions. Experiments show that our retrieval model outperforms the other retrieval models up to 90.9% in the number of retrieved methods.
提交历史
来自:Yoshihisa Udagawa Dr[v1] 2013年8月16日 星期五 05:07:44 UTC