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 条
  • [11] Structured matrix norms for real and complex block-structured uncertainty
    Chellaboina, VS
    Haddad, WM
    [J]. AUTOMATICA, 1997, 33 (05) : 995 - 997
  • [12] Software tools for partitioning block-structured applications
    Rantakokko, J
    [J]. COMPUTING IN OBJECT-ORIENTED PARALLEL ENVIRONMENTS, 1998, 1505 : 83 - 94
  • [13] ENHANCING INSTRUCTION SCHEDULING WITH A BLOCK-STRUCTURED ISA
    MELVIN, S
    PATT, Y
    [J]. INTERNATIONAL JOURNAL OF PARALLEL PROGRAMMING, 1995, 23 (03) : 221 - 243
  • [14] A LES/PDF simulator on block-structured meshes
    Turkeri, Hasret
    Pope, Stephen B.
    Muradoglu, Metin
    [J]. COMBUSTION THEORY AND MODELLING, 2019, 23 (01) : 1 - 41
  • [15] Duality results for block-structured transition matrices
    Zhao, YQQ
    Li, W
    Alfa, AS
    [J]. JOURNAL OF APPLIED PROBABILITY, 1999, 36 (04) : 1045 - 1057
  • [16] Searching program source code with a structured text retrieval system
    Clarke, C
    Cox, A
    Sim, S
    [J]. SIGIR'99: PROCEEDINGS OF 22ND INTERNATIONAL CONFERENCE ON RESEARCH AND DEVELOPMENT IN INFORMATION RETRIEVAL, 1999, : 307 - 308
  • [17] STACK CACHE MEMORY FOR BLOCK-STRUCTURED PROGRAMS
    LOPRIORE, L
    [J]. COMPUTER JOURNAL, 1994, 37 (07): : 610 - 620
  • [18] On solving block-structured indefinite linear systems
    Golub, GH
    Greif, C
    [J]. SIAM JOURNAL ON SCIENTIFIC COMPUTING, 2003, 24 (06): : 2076 - 2092
  • [19] Block-structured grids for Eulerian gyrokinetic simulations
    Jarema, D.
    Bungartz, H. J.
    Goerler, T.
    Jenko, F.
    Neckel, T.
    Told, D.
    [J]. COMPUTER PHYSICS COMMUNICATIONS, 2016, 198 : 105 - 117
  • [20] Infinite block-structured transition matrices and their properties
    Zhao, YQQ
    Li, W
    Braun, WJ
    [J]. ADVANCES IN APPLIED PROBABILITY, 1998, 30 (02) : 365 - 384