@article{Islam-2019-Comparing,
title = "Comparing Bug Replication in Regular and Micro Code Clones",
author = "Islam, Judith F. and
Mondal, Manishankar and
Roy, Chanchal K. and
Schneider, Kevin A.",
journal = "2019 IEEE/ACM 27th International Conference on Program Comprehension (ICPC)",
year = "2019",
publisher = "IEEE",
url = "https://gwf-uwaterloo.github.io/gwf-publications/G19-77001",
doi = "10.1109/icpc.2019.00022",
abstract = "Copying and pasting source code during software development is known as code cloning. Clone fragments with a minimum size of 5 LOC were usually considered in previous studies. In recent studies, clone fragments which are less than 5 LOC are referred as micro-clones. It has been established by the literature that code clones are closely related with software bugs as well as bug replication. None of the previous studies have been conducted on bug-replication of micro-clones. In this paper we investigate and compare bug-replication in between regular and micro-clones. For the purpose of our investigation, we analyze the evolutionary history of our subject systems and identify occurrences of similarity preserving co-changes (SPCOs) in both regular and micro-clones where they experienced bug-fixes. From our experiment on thousands of revisions of six diverse subject systems written in three different programming languages, C, C{\#} and Java we find that the percentage of clone fragments that take part in bug-replication is often higher in micro-clones than in regular code clones. The percentage of bugs that get replicated in micro-clones is almost the same as the percentage in regular clones. Finally, both regular and micro-clones have similar tendencies of replicating severe bugs according to our experiment. Thus, micro-clones in a code-base should not be ignored. We should rather consider these equally important as of the regular clones when making clone management decisions.",
}
<?xml version="1.0" encoding="UTF-8"?>
<modsCollection xmlns="http://www.loc.gov/mods/v3">
<mods ID="Islam-2019-Comparing">
<titleInfo>
<title>Comparing Bug Replication in Regular and Micro Code Clones</title>
</titleInfo>
<name type="personal">
<namePart type="given">Judith</namePart>
<namePart type="given">F</namePart>
<namePart type="family">Islam</namePart>
<role>
<roleTerm authority="marcrelator" type="text">author</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Manishankar</namePart>
<namePart type="family">Mondal</namePart>
<role>
<roleTerm authority="marcrelator" type="text">author</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Chanchal</namePart>
<namePart type="given">K</namePart>
<namePart type="family">Roy</namePart>
<role>
<roleTerm authority="marcrelator" type="text">author</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Kevin</namePart>
<namePart type="given">A</namePart>
<namePart type="family">Schneider</namePart>
<role>
<roleTerm authority="marcrelator" type="text">author</roleTerm>
</role>
</name>
<originInfo>
<dateIssued>2019</dateIssued>
</originInfo>
<typeOfResource>text</typeOfResource>
<genre authority="bibutilsgt">journal article</genre>
<relatedItem type="host">
<titleInfo>
<title>2019 IEEE/ACM 27th International Conference on Program Comprehension (ICPC)</title>
</titleInfo>
<originInfo>
<issuance>continuing</issuance>
<publisher>IEEE</publisher>
</originInfo>
<genre authority="marcgt">periodical</genre>
<genre authority="bibutilsgt">academic journal</genre>
</relatedItem>
<abstract>Copying and pasting source code during software development is known as code cloning. Clone fragments with a minimum size of 5 LOC were usually considered in previous studies. In recent studies, clone fragments which are less than 5 LOC are referred as micro-clones. It has been established by the literature that code clones are closely related with software bugs as well as bug replication. None of the previous studies have been conducted on bug-replication of micro-clones. In this paper we investigate and compare bug-replication in between regular and micro-clones. For the purpose of our investigation, we analyze the evolutionary history of our subject systems and identify occurrences of similarity preserving co-changes (SPCOs) in both regular and micro-clones where they experienced bug-fixes. From our experiment on thousands of revisions of six diverse subject systems written in three different programming languages, C, C# and Java we find that the percentage of clone fragments that take part in bug-replication is often higher in micro-clones than in regular code clones. The percentage of bugs that get replicated in micro-clones is almost the same as the percentage in regular clones. Finally, both regular and micro-clones have similar tendencies of replicating severe bugs according to our experiment. Thus, micro-clones in a code-base should not be ignored. We should rather consider these equally important as of the regular clones when making clone management decisions.</abstract>
<identifier type="citekey">Islam-2019-Comparing</identifier>
<identifier type="doi">10.1109/icpc.2019.00022</identifier>
<location>
<url>https://gwf-uwaterloo.github.io/gwf-publications/G19-77001</url>
</location>
<part>
<date>2019</date>
</part>
</mods>
</modsCollection>
%0 Journal Article
%T Comparing Bug Replication in Regular and Micro Code Clones
%A Islam, Judith F.
%A Mondal, Manishankar
%A Roy, Chanchal K.
%A Schneider, Kevin A.
%J 2019 IEEE/ACM 27th International Conference on Program Comprehension (ICPC)
%D 2019
%I IEEE
%F Islam-2019-Comparing
%X Copying and pasting source code during software development is known as code cloning. Clone fragments with a minimum size of 5 LOC were usually considered in previous studies. In recent studies, clone fragments which are less than 5 LOC are referred as micro-clones. It has been established by the literature that code clones are closely related with software bugs as well as bug replication. None of the previous studies have been conducted on bug-replication of micro-clones. In this paper we investigate and compare bug-replication in between regular and micro-clones. For the purpose of our investigation, we analyze the evolutionary history of our subject systems and identify occurrences of similarity preserving co-changes (SPCOs) in both regular and micro-clones where they experienced bug-fixes. From our experiment on thousands of revisions of six diverse subject systems written in three different programming languages, C, C# and Java we find that the percentage of clone fragments that take part in bug-replication is often higher in micro-clones than in regular code clones. The percentage of bugs that get replicated in micro-clones is almost the same as the percentage in regular clones. Finally, both regular and micro-clones have similar tendencies of replicating severe bugs according to our experiment. Thus, micro-clones in a code-base should not be ignored. We should rather consider these equally important as of the regular clones when making clone management decisions.
%R 10.1109/icpc.2019.00022
%U https://gwf-uwaterloo.github.io/gwf-publications/G19-77001
%U https://doi.org/10.1109/icpc.2019.00022
Markdown (Informal)
[Comparing Bug Replication in Regular and Micro Code Clones](https://gwf-uwaterloo.github.io/gwf-publications/G19-77001) (Islam et al., GWF 2019)
ACL
- Judith F. Islam, Manishankar Mondal, Chanchal K. Roy, and Kevin A. Schneider. 2019. Comparing Bug Replication in Regular and Micro Code Clones. 2019 IEEE/ACM 27th International Conference on Program Comprehension (ICPC).