Abstract
Code clone is that type of engine that helps to find duplicate code patterns find within the whole code. Programmers usually adopt code reusability task from previous few years, so that time consumption can be reduces. Code reusability can be done via replication or by just copy-paste. Code reusability leads to not writing code from scratch, just copy paste the useful part of the code. In finding of duplicated code fragment or text, plagiarism detection also work pretty well but it is not applicable to the large system in finding functional clone and also it is more time consuming even at small scale which make the detection method inappropriate. In this paper, we proposed a pattern similarity conditions on the basis of textual similarity for finding the code or text clones in the large content on the basis of SVM, Neural Network using Java coding, Neural Network and Sim Cad. This approach detects code or text clones from original one. The resultant simulation is taken place in the MATLAB environment, and it has shown that it is providing better results. The proposed algorithm performance is measured using parameters i.e. FRR, FAR and Accuracy.
Highlights
Some programmers do code redundancy because perfect code development is very less probable and it leads to less maintenance cost
Identical code segment comes in type-1 clones; identical code segment with slight renaming comes in type-2 clones; and renamed cloned segment with extra statements added or deleted comes in the category of type-3 clones and all these types of clones comes in the category of textual similar clones [5]
The similarity-based fragments are the majority of binary kinds i.e., i) Binary code part could be verified on the basis of the same code of their execute program data [16] ii) It could be same in their functionalities without being texture verification
Summary
Abstract—Code clone is that type of engine that helps to find duplicate code patterns find within the whole code. Programmers usually adopt code reusability task from previous few years, so that time consumption can be reduced. Code reusability can be done via replication or by just copypaste. Code reusability leads to not writing code from scratch, just copy paste the useful part of the code. In finding of duplicated code fragment or text, plagiarism detection works pretty well but it is not applicable to the large system in finding functional clone and it is more time consuming even at small scale which make the detection method inappropriate.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
More From: European Journal of Engineering Research and Science
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.