Fusing Code Searchers

被引:0
|
作者
Wang, Shangwen [1 ]
Geng, Mingyang [1 ]
Lin, Bo [1 ]
Sun, Zhensu [2 ]
Wen, Ming [3 ]
Liu, Yepang [4 ]
Li, Li [5 ]
Bissyande, Tegawende F. [6 ]
Mao, Xiaoguang [1 ]
机构
[1] Natl Univ Def Technol, Changsha 410073, Peoples R China
[2] ShanghaiTech Univ, Shanghai 201210, Peoples R China
[3] Huazhong Univ Sci & Technol, Wuhan 430074, Peoples R China
[4] Southern Univ Sci & Technol, Shenzhen 518055, Peoples R China
[5] Monash Univ, Clayton, Vic 3800, Australia
[6] Univ Luxembourg, L-1359 Luxembourg, Luxembourg
关键词
Codes; Information retrieval; data fusion;
D O I
10.1109/TSE.2024.3403042
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Code search, which consists in retrieving relevant code snippets from a codebase based on a given query, provides developers with useful references during software development. Over the years, techniques alternatively adopting different mechanisms to compute the relevance score between a query and a code snippet have been proposed to advance the state of the art in this domain, including those relying on information retrieval, supervised learning, and pre-training. Despite that, the usefulness of existing techniques is still compromised since they cannot effectively handle all the diversified queries and code in practice. To tackle this challenge, we present Dancer, a data fusion based code searcher. Our intuition (also the basic hypothesis of this study) is that existing techniques may complement each other because of the intrinsic differences in their working mechanisms. We have validated this hypothesis via an exploratory study. Based on that, we propose to fuse the results generated by different code search techniques so that the advantage of each standalone technique can be fully leveraged. Specifically, we treat each technique as a retrieval system and leverage well-known data fusion approaches to aggregate the results from different systems. We evaluate six existing code search techniques on two large-scale datasets, and exploit eight classic data fusion approaches to incorporate their results. Our experiments show that the best fusion approach is able to outperform the standalone techniques by 35% - 550% and 65% - 825% in terms of MRR (mean reciprocal rank) on the two datasets, respectively.
引用
收藏
页码:1852 / 1866
页数:15
相关论文
共 50 条
  • [31] Searching for searchers
    Mallows, Colin L.
    Meloche, Jean
    JOURNAL OF APPLIED PROBABILITY, 2006, 43 (03) : 899 - 904
  • [32] Learning and Fusing Multi-View Code Representations for Function Vulnerability Detection
    Tian, Zhenzhou
    Tian, Binhui
    Lv, Jiajun
    Chen, Lingwei
    ELECTRONICS, 2023, 12 (11)
  • [33] Fusing Deep Quick Response Code Representations Improves Malware Text Classification
    Ravikiran, Manikandan
    Madgula, Krishna
    PROCEEDINGS OF THE ACM WORKSHOP ON CROSSMODAL LEARNING AND APPLICATION (WCRML'19), 2019, : 11 - 18
  • [34] Orkeny 'Key searchers'
    Koltai, T
    HUNGARIAN QUARTERLY, 1998, 39 (149): : 151 - 152
  • [35] SOFTWARE FOR THE SEARCHERS WORKBENCH
    PREECE, SE
    WILLIAMS, ME
    PROCEEDINGS OF THE AMERICAN SOCIETY FOR INFORMATION SCIENCE, 1980, 17 : 403 - 405
  • [36] SECRETS OF THE SURFING SEARCHERS
    KRUMENAKER, L
    INTERNET WORLD, 1995, 6 (01): : 50 - &
  • [37] AN ONLINE SEARCHERS PERSPECTIVE
    REINKE, SP
    BULLETIN OF THE AMERICAN SOCIETY FOR INFORMATION SCIENCE, 1987, 14 (01): : 21 - 21
  • [38] Newsletter for law searchers
    不详
    ONLINE, 1996, 20 (03): : 12 - 12
  • [39] The 'Searchers' - Ford,J
    Masson, A
    POSITIF, 1996, (427): : 76 - 78
  • [40] Putting Searchers into Search
    Dumais, Susan T.
    SIGIR'14: PROCEEDINGS OF THE 37TH INTERNATIONAL ACM SIGIR CONFERENCE ON RESEARCH AND DEVELOPMENT IN INFORMATION RETRIEVAL, 2014, : 1 - 1