The search functionality is under construction.
The search functionality is under construction.

NCDSearch: Sliding Window-Based Code Clone Search Using Lempel-Ziv Jaccard Distance

Takashi ISHIO, Naoto MAEDA, Kensuke SHIBUYA, Kenho IWAMOTO, Katsuro INOUE

  • Full Text Views

    0

  • Cite this

Summary :

Software developers may write a number of similar source code fragments including the same mistake in software products. To remove such faulty code fragments, developers inspect code clones if they found a bug in their code. While various code clone detection methods have been proposed to identify clones of either code blocks or functions, those tools do not always fit the code inspection task because a faulty code fragment may be much smaller than code blocks, e.g. a single line of code. To enable developers to search code clones of such a small faulty code fragment in a large-scale software product, we propose a method using Lempel-Ziv Jaccard Distance, which is an approximation of Normalized Compression Distance. We conducted an experiment using an existing research dataset and a user survey in a company. The result shows our method efficiently reports cloned faulty code fragments and the performance is acceptable for software developers.

Publication
IEICE TRANSACTIONS on Information Vol.E105-D No.5 pp.973-981
Publication Date
2022/05/01
Publicized
2022/02/08
Online ISSN
1745-1361
DOI
10.1587/transinf.2021EDP7222
Type of Manuscript
PAPER
Category
Software Engineering

Authors

Takashi ISHIO
  Nara Institute of Science and Technology
Naoto MAEDA
  NEC Corporation
Kensuke SHIBUYA
  NEC Corporation
Kenho IWAMOTO
  NEC Corporation
Katsuro INOUE
  Osaka University

Keyword