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 条
  • [21] An Approach to Testing Web Applications Based on Probable FSM
    Qian Zhongsheng
    2009 INTERNATIONAL FORUM ON INFORMATION TECHNOLOGY AND APPLICATIONS, VOL 1, PROCEEDINGS, 2009, : 519 - 522
  • [22] A simple approach for testing web service based applications
    Tarhini, Abbas
    Fouchal, Hacene
    Mansour, Nashat
    INNOVATIVE INTERNET COMMUNITY SYSTEMS, 2006, 3908 : 134 - +
  • [23] Information Seeking on the Web: An Integrated Approach Based on Human Collaboration and Web 2.0
    Jiang, Jinlei
    Wu, Yongwei
    Yang, Guangwen
    Zheng, Weimin
    2009 1ST IEEE SYMPOSIUM ON WEB SOCIETY, PROCEEDINGS, 2009, : 108 - 112
  • [24] POLARITYSPAM: PROPAGATING CONTENT-BASED INFORMATION THROUGH A WEB-GRAPH TO DETECT WEB-SPAM
    Javier Ortega, F.
    Troyano, Jose A.
    Cruz, Fermin L.
    Vallejo, Carlos G.
    INTERNATIONAL JOURNAL OF INNOVATIVE COMPUTING INFORMATION AND CONTROL, 2012, 8 (04): : 2915 - 2928
  • [25] A Machine Learning-Based Approach to Detect Web Service Design Defects
    Ouni, Ali
    Daagi, Marwa
    Kessentini, Marouane
    Bouktif, Salah
    Gammoudi, Mohamed Mohsen
    2017 IEEE 24TH INTERNATIONAL CONFERENCE ON WEB SERVICES (ICWS 2017), 2017, : 532 - 539
  • [26] Using clustering techniques to detect usage patterns in a Web-based information system
    Chen, HM
    Cooper, MD
    JOURNAL OF THE AMERICAN SOCIETY FOR INFORMATION SCIENCE AND TECHNOLOGY, 2001, 52 (11): : 888 - 904
  • [27] A Simple Model Based on Web Services to Exchange Context Information between Web Browsers and Web Applications
    Pascual Espada, Jordan
    Sanjuan Martinez, Oscar
    Pelayo G-Bustelo, B. Cristina
    Cueva Lovelle, Juan Manuel
    Ordonez de Pablos, Patricia
    JOURNAL OF UNIVERSAL COMPUTER SCIENCE, 2012, 18 (11) : 1410 - 1431
  • [28] A Model-based Approach to Address the Design of Web 2.0 Applications based on Web Services
    Paterno, Fabio
    Santoro, Carmen
    Spano, Lucio Davide
    INTERACTION DESIGN AND ARCHITECTURES, 2008, (5-6) : 17 - 22
  • [29] JCOMIX: A Search-Based Tool to Detect XML Injection Vulnerabilities in Web Applications
    Stallenberg, Dimitri Michel
    Panichella, Annibale
    ESEC/FSE'2019: PROCEEDINGS OF THE 2019 27TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, 2019, : 1090 - 1094
  • [30] A Systematic Approach to Develop Mobile Applications from Existing Web Information Systems
    Barroca Filho, Itamir de Morais
    de Aquino, Gibeon Soares, Jr.
    COMPUTATIONAL SCIENCE AND ITS APPLICATIONS - ICCSA 2015, PT IV, 2015, 9158 : 371 - 386