Enhancing generic code clone detection model through protected access modifier rule and weightage
Code clone is a common term used to refer codes that have been repeated multiple times in a program. There are four types of code clone which are type I, type II, type III and type IV. Code clone detection models have been used to detect clones apart from code clone detection approaches by applying...
id |
ump-18086 |
---|---|
recordtype |
eprints |
spelling |
ump-180862017-07-05T04:13:58Z http://umpir.ump.edu.my/id/eprint/18086/ Enhancing generic code clone detection model through protected access modifier rule and weightage Siti An Nasihah, Mohd Napi QA75 Electronic computers. Computer science Code clone is a common term used to refer codes that have been repeated multiple times in a program. There are four types of code clone which are type I, type II, type III and type IV. Code clone detection models have been used to detect clones apart from code clone detection approaches by applying the protected access modifier rule and weightage. The major challenge faced in detecting code clone using models is the lack of generality in detecting all clone types. This is due to the use of different code clone detection approaches in the models that represents different representation of the source codes; hence it affecting the type of code clones detected. Based on this weakness, it is essential to propose a code clone detection model that can support different type of code. To overcome this weakness, Generic Code Clone Detection model that consists of five processes which are Pre-processing, Transformation, Parameterization, Categorization or called as pooling and Match Detection process has been proposed. A prototype has been developed to detect all code clone types in Java. The proposed method was evaluated in two case studies comprised of three Java applications. The result shows the Generic Code Clone Model prototype was able to detect Type I, Type II, Type III and Type IV clone pairs. The results imply that the Generic Code Clone Model was able to detect all code clone types in Java applications and the generated Generic Code Clone Model have better visualization of the code clone detection results. 2016-12 Undergraduates Project Papers NonPeerReviewed application/pdf en http://umpir.ump.edu.my/id/eprint/18086/1/Enhancing%20generic%20code%20clone%20detection%20model%20through%20protected%20access%20modifier%20rule%20and%20weightage-Table%20of%20contents.pdf application/pdf en http://umpir.ump.edu.my/id/eprint/18086/7/Enhancing%20generic%20code%20clone%20detection%20model%20through%20protected%20access%20modifier%20rule%20and%20weightage-Abstract.pdf application/pdf en http://umpir.ump.edu.my/id/eprint/18086/8/Enhancing%20generic%20code%20clone%20detection%20model%20through%20protected%20access%20modifier%20rule%20and%20weightage-Chapter%201.pdf application/pdf en http://umpir.ump.edu.my/id/eprint/18086/17/Enhancing%20generic%20code%20clone%20detection%20model%20through%20protected%20access%20modifier%20rule%20and%20weightage-References.pdf Siti An Nasihah, Mohd Napi (2016) Enhancing generic code clone detection model through protected access modifier rule and weightage. Faculty of Computer Systems and Software Engineering, Universiti Malaysia Pahang. http://iportal.ump.edu.my/lib/item?id=chamo:99152&theme=UMP2 |
repository_type |
Digital Repository |
institution_category |
Local University |
institution |
Universiti Malaysia Pahang |
building |
UMP Institutional Repository |
collection |
Online Access |
language |
English English English English |
topic |
QA75 Electronic computers. Computer science |
spellingShingle |
QA75 Electronic computers. Computer science Siti An Nasihah, Mohd Napi Enhancing generic code clone detection model through protected access modifier rule and weightage |
description |
Code clone is a common term used to refer codes that have been repeated multiple times in a program. There are four types of code clone which are type I, type II, type III and type IV. Code clone detection models have been used to detect clones apart from code clone detection approaches by applying the protected access modifier rule and weightage. The major challenge faced in detecting code clone using models is the lack of generality in detecting all clone types. This is due to the use of different code clone detection approaches in the models that represents different representation of the source codes; hence it affecting the type of code clones detected. Based on this weakness, it is essential to propose a code clone detection model that can support different type of code. To overcome this weakness, Generic Code Clone Detection model that consists of five processes which are Pre-processing, Transformation, Parameterization, Categorization or called as pooling and Match Detection process has been proposed. A prototype has been developed to detect all code clone types in Java. The proposed method was evaluated in two case studies comprised of three Java applications. The result shows the Generic Code Clone Model prototype was able to detect Type I, Type II, Type III and Type IV clone pairs. The results imply that the Generic Code Clone Model was able to detect all code clone types in Java applications and the generated Generic Code Clone Model have better visualization of the code clone detection results. |
format |
Undergraduates Project Papers |
author |
Siti An Nasihah, Mohd Napi |
author_facet |
Siti An Nasihah, Mohd Napi |
author_sort |
Siti An Nasihah, Mohd Napi |
title |
Enhancing generic code clone detection model through protected access modifier rule and weightage |
title_short |
Enhancing generic code clone detection model through protected access modifier rule and weightage |
title_full |
Enhancing generic code clone detection model through protected access modifier rule and weightage |
title_fullStr |
Enhancing generic code clone detection model through protected access modifier rule and weightage |
title_full_unstemmed |
Enhancing generic code clone detection model through protected access modifier rule and weightage |
title_sort |
enhancing generic code clone detection model through protected access modifier rule and weightage |
publishDate |
2016 |
url |
http://umpir.ump.edu.my/id/eprint/18086/ http://umpir.ump.edu.my/id/eprint/18086/ http://umpir.ump.edu.my/id/eprint/18086/1/Enhancing%20generic%20code%20clone%20detection%20model%20through%20protected%20access%20modifier%20rule%20and%20weightage-Table%20of%20contents.pdf http://umpir.ump.edu.my/id/eprint/18086/7/Enhancing%20generic%20code%20clone%20detection%20model%20through%20protected%20access%20modifier%20rule%20and%20weightage-Abstract.pdf http://umpir.ump.edu.my/id/eprint/18086/8/Enhancing%20generic%20code%20clone%20detection%20model%20through%20protected%20access%20modifier%20rule%20and%20weightage-Chapter%201.pdf http://umpir.ump.edu.my/id/eprint/18086/17/Enhancing%20generic%20code%20clone%20detection%20model%20through%20protected%20access%20modifier%20rule%20and%20weightage-References.pdf |
first_indexed |
2023-09-18T22:25:24Z |
last_indexed |
2023-09-18T22:25:24Z |
_version_ |
1777415932723855360 |