On the feasibility of detecting cross-platform code clones via identifier similarity

More and more mobile applications run on multiple mobile operating systems to attract more users of different platforms. Although versions on different platforms are implemented in different programming languages (e.g., Java and Objective-C), there must be many code snippets that implement the simil...

Full description

Saved in:
Bibliographic Details
Main Authors: CHENG, Xiao, JIANG, Lingxiao, ZHONG, Hao, YU, Haibo, ZHAO, Jianjun
Format: text
Language:English
Published: Institutional Knowledge at Singapore Management University 2016
Subjects:
Online Access:https://ink.library.smu.edu.sg/sis_research/3439
https://ink.library.smu.edu.sg/context/sis_research/article/4440/viewcontent/ase16sm_idsim.pdf
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Singapore Management University
Language: English
id sg-smu-ink.sis_research-4440
record_format dspace
spelling sg-smu-ink.sis_research-44402017-10-30T06:29:27Z On the feasibility of detecting cross-platform code clones via identifier similarity CHENG, Xiao JIANG, Lingxiao ZHONG, Hao YU, Haibo ZHAO, Jianjun More and more mobile applications run on multiple mobile operating systems to attract more users of different platforms. Although versions on different platforms are implemented in different programming languages (e.g., Java and Objective-C), there must be many code snippets that implement the similar business logic on different platforms. Such code snippets are called cross-platform clones. It is challenging but essential to detect such clones for software maintenance. Due to the practice that developers usually use some common identifiers when implementing the same business logic on different platforms, in this paper, we investigate the identifier similarity of the same mobile application on different platforms and provide insights about the feasibility of cross-platform clone detection via identifier similarity. In our experiment, we have analyzed the source code of 18 open-source cross-platform applications which are implemented on Android, iOS and Windows Phone, and find that the smaller KL-Divergence the application has, the more accurate the clones detected by identifiers will be. 2016-09-01T07:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/3439 info:doi/10.1145/2975961.2975967 https://ink.library.smu.edu.sg/context/sis_research/article/4440/viewcontent/ase16sm_idsim.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University Cross-platform application Identifier similarity Code clone Programming Languages and Compilers Software Engineering
institution Singapore Management University
building SMU Libraries
continent Asia
country Singapore
Singapore
content_provider SMU Libraries
collection InK@SMU
language English
topic Cross-platform application
Identifier similarity
Code clone
Programming Languages and Compilers
Software Engineering
spellingShingle Cross-platform application
Identifier similarity
Code clone
Programming Languages and Compilers
Software Engineering
CHENG, Xiao
JIANG, Lingxiao
ZHONG, Hao
YU, Haibo
ZHAO, Jianjun
On the feasibility of detecting cross-platform code clones via identifier similarity
description More and more mobile applications run on multiple mobile operating systems to attract more users of different platforms. Although versions on different platforms are implemented in different programming languages (e.g., Java and Objective-C), there must be many code snippets that implement the similar business logic on different platforms. Such code snippets are called cross-platform clones. It is challenging but essential to detect such clones for software maintenance. Due to the practice that developers usually use some common identifiers when implementing the same business logic on different platforms, in this paper, we investigate the identifier similarity of the same mobile application on different platforms and provide insights about the feasibility of cross-platform clone detection via identifier similarity. In our experiment, we have analyzed the source code of 18 open-source cross-platform applications which are implemented on Android, iOS and Windows Phone, and find that the smaller KL-Divergence the application has, the more accurate the clones detected by identifiers will be.
format text
author CHENG, Xiao
JIANG, Lingxiao
ZHONG, Hao
YU, Haibo
ZHAO, Jianjun
author_facet CHENG, Xiao
JIANG, Lingxiao
ZHONG, Hao
YU, Haibo
ZHAO, Jianjun
author_sort CHENG, Xiao
title On the feasibility of detecting cross-platform code clones via identifier similarity
title_short On the feasibility of detecting cross-platform code clones via identifier similarity
title_full On the feasibility of detecting cross-platform code clones via identifier similarity
title_fullStr On the feasibility of detecting cross-platform code clones via identifier similarity
title_full_unstemmed On the feasibility of detecting cross-platform code clones via identifier similarity
title_sort on the feasibility of detecting cross-platform code clones via identifier similarity
publisher Institutional Knowledge at Singapore Management University
publishDate 2016
url https://ink.library.smu.edu.sg/sis_research/3439
https://ink.library.smu.edu.sg/context/sis_research/article/4440/viewcontent/ase16sm_idsim.pdf
_version_ 1770573203085721600