Code Clone Detection using Coarse and Fine-grained Hybrid Approaches

被引:0
|
作者
Sheneamer, Abdullah [1 ]
Kalita, Jugal [1 ]
机构
[1] Univ Colorado, Dept Comp Sci, Colorado Springs, CO 80907 USA
来源
2015 IEEE SEVENTH INTERNATIONAL CONFERENCE ON INTELLIGENT COMPUTING AND INFORMATION SYSTEMS (ICICIS) | 2015年
关键词
Software Clone; Clone Detection; Software maintenance; Software evaluation;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
If two fragments of source code are identical to each other, they are called code clones. Code clones introduce difficulties in software maintenance and cause bug propagation. Coarse-grained clone detectors have higher precision than fine-grained, but fine-grained detectors have higher recall than coarse-grained. In this paper, we present a hybrid clone detection technique that first uses a coarse-grained technique to analyze clones effectively to improve precision. Subsequently, we use a fine-grained detector to obtain additional information about the clones and to improve recall. Our method detects Type-I and Type-2 clones using hash values for blocks, and gapped code clones (Type-3) using block detection and subsequent comparison between them using Levenshtein distance and Cosine measures with varying thresholds.
引用
收藏
页码:472 / 480
页数:9
相关论文
共 50 条
  • [1] Hybrid Approaches to Fine-Grained Emotion Detection in Social Media Data
    Schoene, Annika Marie
    THIRTY-FOURTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, THE THIRTY-SECOND INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE CONFERENCE AND THE TENTH AAAI SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2020, 34 : 13732 - 13733
  • [2] Fine-Grained Code Clone Detection with Block-Based Splitting of Abstract Syntax Tree
    Hu, Tiancheng
    Xu, Zijing
    Fang, Yilin
    Wu, Yueming
    Yuan, Bin
    Zou, Deqing
    Jin, Hai
    PROCEEDINGS OF THE 32ND ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2023, 2023, : 89 - 100
  • [3] A fine-grained distinction of coarse graining
    Morita, Kohei
    EUROPEAN JOURNAL FOR PHILOSOPHY OF SCIENCE, 2023, 13 (01)
  • [4] A fine-grained distinction of coarse graining
    Kohei Morita
    European Journal for Philosophy of Science, 2023, 13
  • [5] Using Coarse Label Constraint for Fine-Grained Visual Classification
    Lu, Chaohao
    Zou, Yuexian
    MULTIMEDIA MODELING, MMM 2019, PT II, 2019, 11296 : 266 - 277
  • [6] Transport Mode Detection When Fine-grained and Coarse-grained Data Meet
    Asgari, Fereshteh
    Clemencon, Stephan
    2018 3RD IEEE INTERNATIONAL CONFERENCE ON INTELLIGENT TRANSPORTATION ENGINEERING (ICITE), 2018, : 301 - 307
  • [7] Droidlens: Robust and Fine-Grained Detection for Android Code Smells
    Mao, Chenguang
    Wang, Hao
    Han, Gaojie
    Zhang, Xiaofang
    2020 INTERNATIONAL SYMPOSIUM ON THEORETICAL ASPECTS OF SOFTWARE ENGINEERING (TASE 2020), 2020, : 161 - 168
  • [8] A deceptive review detection framework: Combination of coarse and fine-grained features
    Cao, Ning
    Ji, Shujuan
    Chiu, Dickson K. W.
    He, Mingxiang
    Sun, Xiaohong
    EXPERT SYSTEMS WITH APPLICATIONS, 2020, 156
  • [9] A fine-grained model for code mobility
    Mascolo, C
    Picco, GP
    Roman, GC
    SOFTWARE ENGINEERING - ESEC/FSE '99, PROCEEDINGS, 1999, 1687 : 39 - 56
  • [10] Untangling Fine-Grained Code Changes
    Dias, Martin
    Bacchelli, Alberto
    Gousios, Georgios
    Cassou, Damien
    Ducasse, Stephane
    2015 22ND INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), 2015, : 341 - 350