On the Level of Code Suggestion for Reuse

被引:0
|
作者
Ohtani, Akio [1 ]
Higo, Yoshiki [1 ]
Ishihara, Tomoya [1 ]
Kusumoto, Shinji [1 ]
机构
[1] Osaka Univ, Grad Sch Informat Sci & Technol, 1-5 Yamadaoka, Suita, Osaka 5650871, Japan
关键词
Code search; Code reuse; Code clone;
D O I
暂无
中图分类号
TM [电工技术]; TN [电子技术、通信技术];
学科分类号
0808 ; 0809 ;
摘要
Code search techniques are well-known as one of the techniques that helps code reuse. If developers input queries that represent functionality that they want, the techniques suggest code fragments that are related to the query. Generally, code search techniques suggest code at the component level of programming language such as class or file. Due to this, developers occasionally need to search necessary code in the suggested area. As a countermeasure, there is a code search technique where code is suggested based on the past reuse. The technique ignores structural code blocks, so that developers need to add some code to the pasted code or remove some code from it. That is, the advantages and disadvantages of the former technique are disadvantages and advantages of the latter one, respectively. In this research, we have conducted a comparative study to reveal which level of code suggestion is more useful for code reuse. In the study, we also compared a hybrid technique of the two techniques with them. As a result, we revealed that component-level suggestions were able to provide reusable code more precisely. On the other hand, reuse-level suggestions were more helpful to reuse larger code.
引用
收藏
页码:26 / 32
页数:7
相关论文
共 50 条
  • [1] HUMAN INTERFACE CONTROLLER WITH HIGH-LEVEL CODE REUSE
    Moiseev, A. N.
    [J]. TOMSK STATE UNIVERSITY JOURNAL, 2006, (293): : 156 - +
  • [2] Sifting out the mud: Low level C++ code reuse
    De Sutter, B
    De Bus, B
    De Bosschere, K
    [J]. ACM SIGPLAN NOTICES, 2002, 37 (11) : 275 - 291
  • [3] AN INTERNATIONAL ECONOMIC CODE - A SUGGESTION
    PIERSON, JHG
    [J]. KYKLOS, 1960, 13 (02) : 163 - 171
  • [4] A SUGGESTION ON ORIGIN OF GENETIC CODE
    RALPH, RK
    [J]. BIOCHEMICAL AND BIOPHYSICAL RESEARCH COMMUNICATIONS, 1968, 33 (02) : 213 - &
  • [5] Inheritance: From code reuse to reasoning reuse
    Soundarajan, N
    Fridella, S
    [J]. FIFTH INTERNATIONAL CONFERENCE ON SOFTWARE REUSE - PROCEEDINGS, 1998, : 206 - 215
  • [6] Patulous Code Reuse Attack: A Novel Code Reuse Attack on ARM Architecture
    Aminmansour, Farzane
    Shahriari, Hamid Reza
    [J]. 2015 12TH INTERNATIONAL IRANIAN SOCIETY OF CRYPTOLOGY CONFERENCE ON INFORMATION SECURITY AND CRYPTOLOGY (ISCISC), 2015, : 104 - 109
  • [7] A Tough call: Mitigating Advanced Code-Reuse Attacks At The Binary Level
    van der Veen, Victor
    Goktas, Enes
    Contag, Moritz
    Pawlowski, Andre
    Chen, Xi
    Rawat, Sanjay
    Bos, Herbert
    Holz, Thorsten
    Athanasopoulos, Elias
    Giuffrida, Cristiano
    [J]. 2016 IEEE SYMPOSIUM ON SECURITY AND PRIVACY (SP), 2016, : 934 - 953
  • [8] Seamless Code Reuse with Source Code Corpus
    Yamamoto, Tetsuo
    Yoshida, Norihiro
    Higo, Yoshiki
    [J]. 2013 20TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2013), VOL 2, 2013, : 31 - 36
  • [9] Hierarchical classification for account code suggestion
    Munoz, Justin
    Jalili, Mahdi
    Tafakori, Laleh
    [J]. KNOWLEDGE-BASED SYSTEMS, 2022, 251
  • [10] CODE REUSE CONSIDERED HARMFUL
    MAGNUSSON, B
    [J]. JOURNAL OF OBJECT-ORIENTED PROGRAMMING, 1991, 4 (07): : 8 - 8