arrow
Return

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
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

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.
Keywords:
Codes
Information retrieval
data fusion
Information retrieval
data fusion

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
2.9K
Citations:
1.1W

Organization

M
Monash University
Scholars:
5.4W
Papers: 5.4W
Citations: 79
N
national university of defense technology - china
Scholars:
1.8W
Papers: 1.4W
Citations: 9
S
ShanghaiTech University
Scholars:
9.7K
Papers: 5.9K
Citations: 1.6W
U
university of luxembourg
Scholars:
5.2K
Papers: 4.8K
Citations: 4
researcher View more organizations
Cited Papers

Cited Papers

No Perisaccadic Mislocalization with Abruptly Cancelled Saccades
err2014-04-16
err0
errOAAI
errJeroen Atsma; Femke Maij; Brian D. Corneil; W. Pieter Medendorp
errShare
errSave
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
errShare
errSave
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
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
errShare
errSave
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
errShare
errSave
Laboratory impact experiments versus natural impact events
err2002-01-01
err0
PREAI
errPaul S. DeCarli; Emma Bowden; Adrian P. Jones; G. David Price
errShare
errSave
researcher View more