arrow
返回

Fusing Code Searchers

delete2024-07-01
delete0
PRE
AI
S
Shangwen Wang
B
Bo Lin
Z
Zhensu Sun
文
文明 (Ming Wen) *
Y
Yepang Liu *
L
Li Li
T
Tegawendé F. Bissyandé
X
Xiaoguang Mao
DOI:10.1109/TSE.2024.3403042delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
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.
Keyword:
Codes
Information retrieval
data fusion
Information retrieval
data fusion

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.1W

机构

M
Monash University
学者数:
5.4W
论文数: 5.4W
被引数: 79
N
national university of defense technology - china
学者数:
1.8W
论文数: 1.4W
被引数: 9
S
ShanghaiTech University
学者数:
9.7K
论文数: 5.9K
被引数: 1.6W
U
university of luxembourg
学者数:
5.2K
论文数: 4.8K
被引数: 4
学者 查看更多机构
引用论文

引用论文

No Perisaccadic Mislocalization with Abruptly Cancelled Saccades
err2014-04-16
err0
errOAAI
errJeroen Atsma; Femke Maij; Brian D. Corneil; W. Pieter Medendorp
err分享
err收藏
High interstadial sea levels over the past 420ka from the Huon Peninsula, Papua New Guinea
err
IF0
err2022-11-02
err0
errOAAI
errGino de Gelder; Laurent Husson; Anne-Morwenn Pastier; David Fernández-Blanco; Tamara Pico; Denovan Chauveau; Christine Authemayou; Kevin Pedoja
err分享
err收藏
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
What do developers search for on the web?
err2017-04-09
err132
PREAI
errXia, Xin; Bao, Lingfeng; Lo, David; Kochhar, Pavneet Singh; Hassan, Ahmed E.; Xing, Zhenchang
err分享
err收藏
Unusual Photoisomerization Pathway in a Near-Infrared Light Absorbing Enzymerhodopsin
err2022-10-06
err0
PREAI
errMasahiro Sugiura; Kazuki Ishikawa; Kota Katayama; Yuji Sumii; Rei Abe-Yoshizumi; Satoshi P. Tsunoda; Yuji Furutani; Norio Shibata; Leonid S. Brown; Hideki Kandori
err分享
err收藏
Laboratory impact experiments versus natural impact events
err2002-01-01
err0
PREAI
errPaul S. DeCarli; Emma Bowden; Adrian P. Jones; G. David Price
err分享
err收藏
学者 查看更多内容