Software analysis by code clones in open source software

Shinji Uchida, Akito Monden, Naoki Ohsugi, Toshihiro Kamiya, Ken Ichi Matsumoto, Hideo Kudo

Research output: Contribution to journalArticle

16 Citations (Scopus)

Abstract

The code clone (a duplicated code section in the source files of software) is one of the factors that complicate software maintenance. However, few empirical studies have analyzed the status quo of code clones. In this paper we conduct an extensive analysis of code clones using 125 packages of open source software written in C language, and suggest guidelines for the allowable production of code clones. Our results showed 11.3% as the average CRate (clone inclusion rate). For software packages that did not include automatically generated code, the CRate was 9.7%, the in-module CRate 8.2%, and the inter-module CRate 1.3%. These rates can be used as criteria for the allowable amount of code clone production. This paper also presents our findings on factors of code clone production, the influence of code clone production on maintainability, and removal methods.

Original languageEnglish
Pages (from-to)1-11
Number of pages11
JournalJournal of Computer Information Systems
Volume45
Issue number3
Publication statusPublished - Mar 2005
Externally publishedYes

Fingerprint

inclusion
Computer software maintenance
Maintainability
Software packages
Open source software
software

Keywords

  • Software Maintenance
  • Software Measurement
  • Software Metrics

ASJC Scopus subject areas

  • Information Systems

Cite this

Uchida, S., Monden, A., Ohsugi, N., Kamiya, T., Matsumoto, K. I., & Kudo, H. (2005). Software analysis by code clones in open source software. Journal of Computer Information Systems, 45(3), 1-11.

Software analysis by code clones in open source software. / Uchida, Shinji; Monden, Akito; Ohsugi, Naoki; Kamiya, Toshihiro; Matsumoto, Ken Ichi; Kudo, Hideo.

In: Journal of Computer Information Systems, Vol. 45, No. 3, 03.2005, p. 1-11.

Research output: Contribution to journalArticle

Uchida, S, Monden, A, Ohsugi, N, Kamiya, T, Matsumoto, KI & Kudo, H 2005, 'Software analysis by code clones in open source software', Journal of Computer Information Systems, vol. 45, no. 3, pp. 1-11.
Uchida S, Monden A, Ohsugi N, Kamiya T, Matsumoto KI, Kudo H. Software analysis by code clones in open source software. Journal of Computer Information Systems. 2005 Mar;45(3):1-11.
Uchida, Shinji ; Monden, Akito ; Ohsugi, Naoki ; Kamiya, Toshihiro ; Matsumoto, Ken Ichi ; Kudo, Hideo. / Software analysis by code clones in open source software. In: Journal of Computer Information Systems. 2005 ; Vol. 45, No. 3. pp. 1-11.
@article{1045a2a4601e43d4b08b062fd0809cbd,
title = "Software analysis by code clones in open source software",
abstract = "The code clone (a duplicated code section in the source files of software) is one of the factors that complicate software maintenance. However, few empirical studies have analyzed the status quo of code clones. In this paper we conduct an extensive analysis of code clones using 125 packages of open source software written in C language, and suggest guidelines for the allowable production of code clones. Our results showed 11.3{\%} as the average CRate (clone inclusion rate). For software packages that did not include automatically generated code, the CRate was 9.7{\%}, the in-module CRate 8.2{\%}, and the inter-module CRate 1.3{\%}. These rates can be used as criteria for the allowable amount of code clone production. This paper also presents our findings on factors of code clone production, the influence of code clone production on maintainability, and removal methods.",
keywords = "Software Maintenance, Software Measurement, Software Metrics",
author = "Shinji Uchida and Akito Monden and Naoki Ohsugi and Toshihiro Kamiya and Matsumoto, {Ken Ichi} and Hideo Kudo",
year = "2005",
month = "3",
language = "English",
volume = "45",
pages = "1--11",
journal = "Journal of Computer Information Systems",
issn = "0887-4417",
publisher = "International Association for Computer Information Systems",
number = "3",

}

TY - JOUR

T1 - Software analysis by code clones in open source software

AU - Uchida, Shinji

AU - Monden, Akito

AU - Ohsugi, Naoki

AU - Kamiya, Toshihiro

AU - Matsumoto, Ken Ichi

AU - Kudo, Hideo

PY - 2005/3

Y1 - 2005/3

N2 - The code clone (a duplicated code section in the source files of software) is one of the factors that complicate software maintenance. However, few empirical studies have analyzed the status quo of code clones. In this paper we conduct an extensive analysis of code clones using 125 packages of open source software written in C language, and suggest guidelines for the allowable production of code clones. Our results showed 11.3% as the average CRate (clone inclusion rate). For software packages that did not include automatically generated code, the CRate was 9.7%, the in-module CRate 8.2%, and the inter-module CRate 1.3%. These rates can be used as criteria for the allowable amount of code clone production. This paper also presents our findings on factors of code clone production, the influence of code clone production on maintainability, and removal methods.

AB - The code clone (a duplicated code section in the source files of software) is one of the factors that complicate software maintenance. However, few empirical studies have analyzed the status quo of code clones. In this paper we conduct an extensive analysis of code clones using 125 packages of open source software written in C language, and suggest guidelines for the allowable production of code clones. Our results showed 11.3% as the average CRate (clone inclusion rate). For software packages that did not include automatically generated code, the CRate was 9.7%, the in-module CRate 8.2%, and the inter-module CRate 1.3%. These rates can be used as criteria for the allowable amount of code clone production. This paper also presents our findings on factors of code clone production, the influence of code clone production on maintainability, and removal methods.

KW - Software Maintenance

KW - Software Measurement

KW - Software Metrics

UR - http://www.scopus.com/inward/record.url?scp=18744370756&partnerID=8YFLogxK

UR - http://www.scopus.com/inward/citedby.url?scp=18744370756&partnerID=8YFLogxK

M3 - Article

VL - 45

SP - 1

EP - 11

JO - Journal of Computer Information Systems

JF - Journal of Computer Information Systems

SN - 0887-4417

IS - 3

ER -