Skip to main navigation Skip to search Skip to main content

Predicting Consistent Clone Change

  • School of Computer Science and Technology, Harbin Institute of Technology
  • National University of Singapore

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Code clones, being an inevitable by-product of rapid software development, can impact software quality. The introduction of code clone groups and clone genealogies enable software developers to be aware of the presence of and changes to clones as a collective group, they also allow developers to understand how clone groups evolve throughout software life cycle. Due to similarity in codes within a clone group, a change in one piece of the code may require developers to make changes to other clones in the group. Failure in making consistent change to a clone group when necessary is commonly known as 'clone consistency-defect', which can adversely impact software reliability. We propose an approach to predict clone consistency-requirement at the time when changes have been made to a clone group. Our predictor is a Bayesian network implemented in WEKA. We build a variant of clone genealogies to collect all consistent/inconsistent changes to clone groups, and extract three sets of attributes from clone groups as input for predicting consistent clone change. These three sets are: code attributes, context attributes and evolution attributes. We conduct experiments on three open source projects. These experiments show that our approach has high precision and recall in predicting clone consistency-requirement. This holistic approach can aid developers in maintaining code clone changes, and avoid potential clone consistency-defect, which can improve the software quality and reliability.

Original languageEnglish
Title of host publicationProceedings - 2016 IEEE 27th International Symposium on Software Reliability Engineering, ISSRE 2016
PublisherIEEE Computer Society
Pages353-364
Number of pages12
ISBN (Electronic)9781467390019
DOIs
StatePublished - 5 Dec 2016
Externally publishedYes
Event27th IEEE International Symposium on Software Reliability Engineering, ISSRE 2016 - Ottawa, Canada
Duration: 23 Oct 201627 Oct 2016

Publication series

NameProceedings - International Symposium on Software Reliability Engineering, ISSRE
Volume0
ISSN (Electronic)2332-6549

Conference

Conference27th IEEE International Symposium on Software Reliability Engineering, ISSRE 2016
Country/TerritoryCanada
CityOttawa
Period23/10/1627/10/16

Keywords

  • Bayesian network
  • Software quality
  • clone attributes
  • clone maintenance
  • code clones
  • consistency-requirement prediction

Fingerprint

Dive into the research topics of 'Predicting Consistent Clone Change'. Together they form a unique fingerprint.

Cite this