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 条
  • [1] An Experimental Approach to Detect Similar Web Pages Based on 3-Levels of Similarity Clues
    Jung, Woosung
    Lee, Eunjo
    Wu, Chisu
    JOURNAL OF INFORMATION SCIENCE AND ENGINEERING, 2011, 27 (06) : 1787 - 1822
  • [2] Web Information Extraction based on similar patterns
    Ye, N
    Wu, XJ
    Zhu, JB
    Chen, WL
    Yao, TS
    ADVANCES IN WEB-AGE INFORMATION MANAGEMENT: PROCEEDINGS, 2004, 3129 : 646 - 651
  • [3] WebCell-script: A web-based script for managing quantitative and qualitative information of cellular networks
    Cho, Ayoun
    Yun, Choamun
    Lee, Seung-Hyun
    Jung, Junwoo
    Lee, Dong-Yup
    Lee, Sang-Yup
    Park, Sunwon
    2006 SICE-ICASE INTERNATIONAL JOINT CONFERENCE, VOLS 1-13, 2006, : 1984 - +
  • [4] DetAC: Approach to Detect Access Control Vulnerability in Web Application Based on Sitemap Model with Global Information Representation
    Ren, Jiadong
    Wu, Mingyou
    Zhang, Bing
    Xu, Ke
    Li, Shangyang
    Wang, Qian
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2023, 33 (09) : 1327 - 1354
  • [5] CLOUD COMPUTING BASED WEB APPLICATIONS. EXAMPLES AND CONSIDERATIONS ON GOOGLE APPS SCRIPT
    Airinei, Dinu
    Homocianu, Daniel
    PROCEEDINGS OF THE 16TH INTERNATIONAL CONFERENCE ON INFORMATICS IN ECONOMY (IE 2017): EDUCATION, RESEARCH & BUSINESS TECHNOLOGIES, 2017, : 64 - 69
  • [6] A web service approach for providing context information to CSCW applications
    Neto, RB
    Jardim, C
    Camacho-Guerrero, J
    Pimentel, MD
    WEBMEDIA & LA-WEB 2004, VOL 1, PROCEEDINGS, 2004, : 46 - 53
  • [7] A Classification Approach for Web and Cloud Based Applications
    Das, M. Swami
    Govardhan, A.
    Lakshmi, D. Vijaya
    2016 INTERNATIONAL CONFERENCE ON ENGINEERING & MIS (ICEMIS), 2016,
  • [8] Comprehending web applications by a clustering based approach
    Di Lucca, GA
    Fasolino, AR
    Pace, F
    Tramontana, P
    De Carlini, U
    10TH INTERNATIONAL WORKSHOP ON PROGRAM COMPREHENSION, PROCEEDINGS, 2002, : 261 - 270
  • [9] Towards generic user interface for web based systems serving similar functions
    Ahmad, Rashid
    Li, Zhang
    Azam, Farooque
    FOURTH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING RESEARCH, MANAGEMENT AND APPLICATIONS, PROCEEDINGS, 2006, : 297 - +
  • [10] Web-Based Information Systems and Applications: A Survey
    XU Bao-wen1
    2. School of Information
    3. Department of Computer Science
    4. College of Computer Science and Technology
    5. School of Computer
    6. School of Electronics and Information Engineering
    WuhanUniversityJournalofNaturalSciences, 2004, (05) : 537 - 541