A Block-Structured Model for Source Code Retrieval

被引:0
|
作者
Hsu, Sheng-Kuei [1 ]
Lin, Shi-Jen [1 ]
机构
[1] Natl Cent Univ, Jhongli 320, Taiwan
关键词
code search; code retrieval; block structured model; vector space model;
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
The large amounts of software source code projects available on the Internet or within companies are creating new information retrieval challenges. Present-day source code search engines such as Google Code Search tend to treat source code as pure text, as they do with Web pages. However, source code files differ from Web pages or pure text files in that each file must follow a set of rules called syntax, and a source file can be seen as a structured document. Each file contains elements to complete a task. In this paper, we parse each source code file into elements called blocks. They include a non-leaf block and a leaf block for further indexing and ranking. These leaf blocks can be categorized into code-data and meta-data blocks that possess different stemming and stop-word filtering processes used in building the source code index. Finally, to provide a flexible code search scheme, we also propose a block-specified query scheme. Experimental results indicate that our approach provides a more flexible code search mechanism that results in a higher number of relevant items.
引用
收藏
页码:161 / 170
页数:10
相关论文
共 50 条
  • [1] Block-structured languages
    Elo, A
    [J]. DR DOBBS JOURNAL, 2003, 28 (06): : 10 - 10
  • [2] Identification of a Block-Structured Model with Several Sources of Nonlinearity
    Van Mulders, A.
    Vanbeylen, L.
    Usevich, K.
    [J]. 2014 EUROPEAN CONTROL CONFERENCE (ECC), 2014, : 1717 - 1722
  • [3] IDENTIFICATION OF NONLINEAR-SYSTEM IN BLOCK-STRUCTURED MODEL
    SHI, JH
    SUN, HH
    [J]. PROCEEDINGS OF THE 22ND CONFERENCE ON INFORMATION SCIENCES AND SYSTEMS, VOLS 1 & 2, 1988, : 926 - 931
  • [4] MANAGEMENT OF BLOCK-STRUCTURED PROGRAMS
    MARSLAND, TA
    [J]. SOFTWARE-PRACTICE & EXPERIENCE, 1985, 15 (07): : 715 - 723
  • [5] Steganalysis of block-structured stegotext
    Wang, Y
    Moulin, P
    [J]. SECURITY, STEGANOGRAPHY, AND WATERMARKING OF MULTIMEDIA CONTENTS VI, 2004, 5306 : 477 - 488
  • [6] Block-structured supermarket models
    Quan-Lin Li
    John C.S. Lui
    [J]. Discrete Event Dynamic Systems, 2016, 26 : 147 - 182
  • [7] Block-structured supermarket models
    Li, Quan-Lin
    Lui, John C. S.
    [J]. DISCRETE EVENT DYNAMIC SYSTEMS-THEORY AND APPLICATIONS, 2016, 26 (02): : 147 - 182
  • [8] Evolutionary Identification of Block-Structured Systems
    Schoukens, M.
    Worden, K.
    [J]. DYNAMICS OF COUPLED STRUCTURES, VOL 4, 2017, : 359 - 366
  • [9] REFERENCING AND RETENTION IN BLOCK-STRUCTURED COROUTINES
    LINDSTROM, G
    SOFFA, ML
    [J]. ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1981, 3 (03): : 263 - 292
  • [10] BLOCK-STRUCTURED RECURRENT NEURAL NETWORKS
    SANTINI, S
    DELBIMBO, A
    JAIN, R
    [J]. NEURAL NETWORKS, 1995, 8 (01) : 135 - 147