Article (Scientific journals)
Fusing Code Searchers
Wang, Shangwen; Geng, Mingyang; Lin, Bo et al.
2024In IEEE Transactions on Software Engineering, 50 (7), p. 1852 - 1866
Peer Reviewed verified by ORBi
 

Files


Full Text
TSE-2022-12-0520.R1_Proof_hi.pdf
Author preprint (934.76 kB)
Download

All documents in ORBilu are protected by a user license.

Send to



Details



Keywords :
Code search; data fusion; information retrieval; Basic hypothesis; Code; Different mechanisms; Intrinsic differences; Pre-training; Query provides; Relevance score; Search technique; State of the art; Software; Codes
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.
Research center :
Interdisciplinary Centre for Security, Reliability and Trust (SnT) > TruX - Trustworthy Software Engineering
Disciplines :
Computer science
Author, co-author :
Wang, Shangwen ;  National University of Defense Technology, Changsha, China
Geng, Mingyang ;  National University of Defense Technology, Changsha, China
Lin, Bo ;  National University of Defense Technology, Changsha, China
Sun, Zhensu ;  ShanghaiTech University, Shanghai, China
Wen, Ming ;  Huazhong University of Science and Technology, Wuhan, China
Liu, Yepang ;  Southern University of Science and Technology, Shenzhen, China
Li, Li ;  Monash University, Melbourne, Australia
BISSYANDE, Tegawendé François d Assise  ;  University of Luxembourg > Interdisciplinary Centre for Security, Reliability and Trust (SNT) > TruX
Mao, Xiaoguang ;  National University of Defense Technology, Changsha, China
External co-authors :
yes
Language :
English
Title :
Fusing Code Searchers
Publication date :
2024
Journal title :
IEEE Transactions on Software Engineering
ISSN :
0098-5589
eISSN :
1939-3520
Publisher :
Institute of Electrical and Electronics Engineers Inc.
Volume :
50
Issue :
7
Pages :
1852 - 1866
Peer reviewed :
Peer Reviewed verified by ORBi
European Projects :
H2020 - 949014 - NATURAL - Natural Program Repair
Name of the research project :
R-AGR-3885 - H2020-ERC StG - NATURAL - BISSYANDE Tegawendé
Funders :
ERC - European Research Council
European Union
Funding number :
949014
Available on ORBilu :
since 10 December 2024

Statistics


Number of views
76 (2 by Unilu)
Number of downloads
66 (0 by Unilu)

Scopus citations®
 
4
Scopus citations®
without self-citations
0
OpenCitations
 
0
OpenAlex citations
 
4
WoS citations
 
2

Bibliography


Similar publications



Contact ORBilu