Understanding the Evolution of Code Clones in Software Systems
dc.contributor.advisor | Schneider, Kevin A. | en_US |
dc.contributor.committeeMember | McCalla, Gord | en_US |
dc.contributor.committeeMember | Roy, Chanchal K. | en_US |
dc.contributor.committeeMember | Wahid, Khan A. | en_US |
dc.creator | Saha, Avigit | en_US |
dc.date.accessioned | 2013-09-06T12:00:17Z | |
dc.date.available | 2013-09-06T12:00:17Z | |
dc.date.created | 2013-08 | en_US |
dc.date.issued | 2013-09-05 | en_US |
dc.date.submitted | August 2013 | en_US |
dc.description.abstract | Code cloning is a common practice in software development. However, code cloning has both positive aspects such as accelerating the development process and negative aspects such as causing code bloat. After a decade of active research, it is clear that removing all of the clones from a software system is not desirable. Therefore, it is better to manage clones than to remove them. A software system can have thousands of clones in it, which may serve multiple purposes. However, some of the clones may cause unwanted management difficulties and clones like these should be refactored. Failure to manage clones may cause inconsistencies in the code, which is prone to error. Managing thousands of clones manually would be a difficult task. A clone management system can help manage clones and find patterns of how clones evolve during the evolution of a software system. In this research, we propose a framework for constructing and visualizing clone genealogies with change patterns (e.g., inconsistent changes), bug information, developer information and several other important metrics in a software system. Based on the framework we design and build an interactive prototype for a multi-touch surface (e.g., an iPad). The prototype uses a variety of techniques to support understanding clone genealogies, including: identifying and providing a compact overview of the clone genealogies along with their key characteristics; providing interactive navigation of genealogies, cloned source code and the differences between clone fragments; providing the ability to filter and organize genealogies based on their properties; providing a feature for annotating clone fragments with comments to aid future review; and providing the ability to contact developers from within the system to find out more information about specific clones. To investigate the suitability of the framework and prototype for investigating and managing cloned code, we elicit feedback from practicing researchers and developers, and we conduct two empirical studies: a detailed investigation into the evolution of function clones and a detailed investigation into how clones contribute to bugs. In both empirical studies we are able to use the prototype to quickly investigate the cloned source code to gain insights into clone use. We believe that the clone management system and the findings will play an important role in future studies and in managing code clones in software systems. | en_US |
dc.identifier.uri | http://hdl.handle.net/10388/ETD-2013-08-1173 | en_US |
dc.language.iso | eng | en_US |
dc.subject | software maintenance, code clones, clone evolution, clone management, clone visualization, bug | en_US |
dc.title | Understanding the Evolution of Code Clones in Software Systems | en_US |
dc.type.genre | Thesis | en_US |
dc.type.material | text | en_US |
thesis.degree.department | Computer Science | en_US |
thesis.degree.discipline | Computer Science | en_US |
thesis.degree.grantor | University of Saskatchewan | en_US |
thesis.degree.level | Masters | en_US |
thesis.degree.name | Master of Science (M.Sc.) | en_US |