An Approach to detect Similar Script Functions in Web Applications based on Calling Information

被引:0
|
作者
Kim, Jung-Ii [1 ]
Lee, Eun-Joo [1 ]
机构
[1] KyungPook Natl Univ, Sch Engn & Comp Sci, Taegu, South Korea
关键词
function clones; refactoring; code duplication; software metric; similarity; web application; CLONES; CODE;
D O I
10.4028/www.scientific.net/AMM.263-266.1593
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Cloned code might exacerbate a system maintenance problem, so it is important to remove duplicate code to improve system performance. In web development, script code can often be duplicated as a unit of a script function. Previous research for detecting similar script functions forecasted candidates of similar script functions based on the name of the function and classified the detected candidates into four similarity levels by comparing factors contained within the script functions. There are two key issues that need to be considered to detect similar script functions when using that method. One was that a pair of similar script functions needs to have the same name to be detected. The other was that some modifications particularly such as adding or removing calling statements were not identified after detecting. Adding or removing calling statements might prevent identification for duplicate script function. In this paper, we propose a novel approach to detect similar script functions that can determine the similarity of a script function by evaluating the structural similarity of function code and the calling structure. The evaluation for detecting the structural similarity of code and the calling structure is performed based on a similarity metric, FSIM, which we have defined. We showed the usefulness of FSIM by applying it to three open source projects.
引用
收藏
页码:1593 / 1599
页数:7
相关论文
共 50 条
  • [31] Mining relevant information on the Web: a clique-based approach
    Caramia, Massimiliano
    Felici, Giovanni
    INTERNATIONAL JOURNAL OF PRODUCTION RESEARCH, 2006, 44 (14) : 2771 - 2787
  • [32] Information Inquiry for Research Institutions: A Semantic Web based Approach
    Li, Yangping
    Wei, Xiaorui
    PROCEEDINGS OF 2013 6TH INTERNATIONAL CONFERENCE ON INFORMATION MANAGEMENT, INNOVATION MANAGEMENT AND INDUSTRIAL ENGINEERING (ICIII 2013) VOL 1, 2013, : 476 - +
  • [33] Flexible Approach for Web Information Extraction Based on HTML']HTMLParser
    Shan, Lin
    Qun, Zhang
    PROCEEDINGS OF 2012 7TH INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE & EDUCATION, VOLS I-VI, 2012, : 683 - 686
  • [34] Chatbotification for Web Information Systems: A Pattern-based Approach
    Liang, Yan-Cih
    Ma, Shang-Pin
    Lin, Chih-Ying
    2024 IEEE 48TH ANNUAL COMPUTERS, SOFTWARE, AND APPLICATIONS CONFERENCE, COMPSAC 2024, 2024, : 2290 - 2295
  • [35] Automatic web filtering approach based on multimodal content information
    Ming, W
    Rossi, L
    Li, Y
    Kuo, CCJ
    INTERNET MULTIMEDIA MANAGEMENT SYSTEMS II, 2001, 4519 : 180 - 190
  • [36] A Systematic Approach for Configuring Web-Based Information Systems
    M. Nikolaidou
    D. Anagnostopoulos
    Distributed and Parallel Databases, 2005, 17 : 267 - 290
  • [37] A systematic approach for configuring Web-based information systems
    Nikolaidou, M
    Anagnostopoulos, D
    DISTRIBUTED AND PARALLEL DATABASES, 2005, 17 (03) : 267 - 290
  • [38] Web-based social network approach to information fusion
    Juszczyszyn, Krzysztof
    Kolaczek, Grzegorz
    COMPUTATIONAL INTELLIGENCE IN DECISION AND CONTROL, 2008, 1 : 901 - 906
  • [39] An ontology based approach to construct behaviors in Web Information Systems
    Tang, LA
    Li, HY
    Pan, ZY
    Yang, DQ
    Li, MM
    Tang, SW
    Ying, Y
    ADVANCES IN WEB-AGE INFORMATION MANAGEMENT, PROCEEDINGS, 2005, 3739 : 194 - 208
  • [40] An approach to the web-based information system of molecular fossils
    Xiong, Yong-Zhu
    Lin, Li
    Zhu, Li-Dong
    Pang, Yan-Chun
    Fu, Xiu-Gen
    Journal of the Chengdu Institute of Technology, 2003, 30 (03): : 249 - 253