Code clone detection using string based tree matching technique

Code cloning have been an issue in these few years as the number of available web application and stand alone software increase nowadays. The major consequences of cloning is that it would risk the maintenance process as there are many duplicated codes in the systems that practically increase the co...

Full description

Saved in:
Bibliographic Details
Main Author: Wahid, Norfaradilla
Format: Thesis
Language:English
Published: 2008
Subjects:
Online Access:http://eprints.utm.my/id/eprint/9508/1/NorfaradillaWahidMFSKSM2008.pdf
http://eprints.utm.my/id/eprint/9508/
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Universiti Teknologi Malaysia
Language: English
id my.utm.9508
record_format eprints
spelling my.utm.95082018-07-19T01:51:05Z http://eprints.utm.my/id/eprint/9508/ Code clone detection using string based tree matching technique Wahid, Norfaradilla QA75 Electronic computers. Computer science Code cloning have been an issue in these few years as the number of available web application and stand alone software increase nowadays. The major consequences of cloning is that it would risk the maintenance process as there are many duplicated codes in the systems that practically increase the complexity of the system. There are many code clone detection techniques that can be found nowadays which generally can be group into string based, token based, tree based and semantic based. The aim of this project is to find out the possibility of using a technique of ontology mapping technique to solve the problem, but we are not using the real ontology for the clone detection. It has been prove that there is the possibility as it manages to detect clone code. In this thesis the clone detection is using two layers of detection; i.e. structural similarity and string based similarity. The structural similarity is by using subgraph miner where it capable to get the similar subtree between different files. And then we extract all elements of that particular subtree and treat the elements as a string. Two strings from different files then applied with similarity metric to know whether it is a clone pair. From the experimental result, we found that the system is language independent but the result is good in precision but not so good recall. It is also capable to detect two main types of clone, i.e identical clones and similar clones. 2008-10 Thesis NonPeerReviewed application/pdf en http://eprints.utm.my/id/eprint/9508/1/NorfaradillaWahidMFSKSM2008.pdf Wahid, Norfaradilla (2008) Code clone detection using string based tree matching technique. Masters thesis, Universiti Teknologi Malaysia, Faculty of Computer Science and Information System.
institution Universiti Teknologi Malaysia
building UTM Library
collection Institutional Repository
continent Asia
country Malaysia
content_provider Universiti Teknologi Malaysia
content_source UTM Institutional Repository
url_provider http://eprints.utm.my/
language English
topic QA75 Electronic computers. Computer science
spellingShingle QA75 Electronic computers. Computer science
Wahid, Norfaradilla
Code clone detection using string based tree matching technique
description Code cloning have been an issue in these few years as the number of available web application and stand alone software increase nowadays. The major consequences of cloning is that it would risk the maintenance process as there are many duplicated codes in the systems that practically increase the complexity of the system. There are many code clone detection techniques that can be found nowadays which generally can be group into string based, token based, tree based and semantic based. The aim of this project is to find out the possibility of using a technique of ontology mapping technique to solve the problem, but we are not using the real ontology for the clone detection. It has been prove that there is the possibility as it manages to detect clone code. In this thesis the clone detection is using two layers of detection; i.e. structural similarity and string based similarity. The structural similarity is by using subgraph miner where it capable to get the similar subtree between different files. And then we extract all elements of that particular subtree and treat the elements as a string. Two strings from different files then applied with similarity metric to know whether it is a clone pair. From the experimental result, we found that the system is language independent but the result is good in precision but not so good recall. It is also capable to detect two main types of clone, i.e identical clones and similar clones.
format Thesis
author Wahid, Norfaradilla
author_facet Wahid, Norfaradilla
author_sort Wahid, Norfaradilla
title Code clone detection using string based tree matching technique
title_short Code clone detection using string based tree matching technique
title_full Code clone detection using string based tree matching technique
title_fullStr Code clone detection using string based tree matching technique
title_full_unstemmed Code clone detection using string based tree matching technique
title_sort code clone detection using string based tree matching technique
publishDate 2008
url http://eprints.utm.my/id/eprint/9508/1/NorfaradillaWahidMFSKSM2008.pdf
http://eprints.utm.my/id/eprint/9508/
_version_ 1643645173455912960