EUVIMEDEUVIMED entdecken
Crossref

A Survey of Source Code Search: A 3-Dimensional Perspective

Weisong Sun, Chunrong Fang, Yifei Ge, Yuling Hu, Yuchen Chen, Quanjun Zhang, Xiuting Ge, Yang Liu, Zhenyu Chen

ACM Transactions on Software Engineering and Methodology · 31.07.2024 · 33 (6) · 1-51

DOI: 10.1145/3656341 ↗

Kurz gefasst

Fachartikel in der Zeitschrift ACM Transactions on Software Engineering and Methodology, online erschienen am 28.06.2024. Verfasst von Weisong Sun und 8 weiteren Autor:innen. Die Arbeit wurde bisher 15-mal zitiert (Crossref) und nennt 133 Literaturangaben. Gefördert von: National Natural Science Foundation of China, Science, Technology, and Innovation Commission of Shenzhen Municipality, Program B for Outstanding PhD Candidate of Nanjing University.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

(Source) code search is widely concerned by software engineering researchers because it can improve the productivity and quality of software development. Given a functionality requirement usually described in a natural language sentence, a code search system can retrieve code snippets that satisfy the requirement from a large-scale code corpus, e.g., GitHub. To realize effective and efficient code search, many techniques have been proposed successively. These techniques improve code search performance mainly by optimizing three core components, including query understanding component, code understanding component, and query-code matching component. In this article, we provide a 3-dimensional perspective survey for code search. Specifically, we categorize existing code search studies into query-end optimization techniques, code-end optimization techniques, and match-end optimization techniques according to the specific components they optimize. These optimization techniques are proposed to enhance the performance of specific components, and thus the overall performance of code search. Considering that each end can be optimized independently and contributes to the code search performance, we treat each end as a dimension. Therefore, this survey is 3-dimensional in nature, and it provides a comprehensive summary of each dimension in detail. To understand the research trends of the three dimensions in existing code search studies, we systematically review 68 relevant literatures. Different from existing code search surveys that only focus on the query end or code end or introduce various aspects shallowly (including codebase, evaluation metrics, modeling technique, etc.), our survey provides a more nuanced analysis and review of the evolution and development of the underlying techniques used in the three ends. Based on a systematic review and summary of existing work, we outline several open challenges and opportunities at the three ends that remain to be addressed in future work.

Förderung

  • National Natural Science Foundation of China
  • Science, Technology, and Innovation Commission of Shenzhen Municipality
  • Program B for Outstanding PhD Candidate of Nanjing University
  • National Research Foundation, Singapore
  • Cyber Security Agency under its National Cybersecurity R&D Programme

Zitieren

APA

Sun, W., Fang, C., Ge, Y., Hu, Y., Chen, Y., Zhang, Q., Ge, X., Liu, Y., & Chen, Z. (2024). A Survey of Source Code Search: A 3-Dimensional Perspective. ACM Transactions on Software Engineering and Methodology, 33(6), 1-51. https://doi.org/10.1145/3656341

Vancouver

Sun W, Fang C, Ge Y, Hu Y, Chen Y, Zhang Q, et al. A Survey of Source Code Search: A 3-Dimensional Perspective. ACM Transactions on Software Engineering and Methodology. 2024;33(6):1-51. doi:10.1145/3656341

BibTeX
@article{Sun2024,
  author = {Sun, Weisong and Fang, Chunrong and Ge, Yifei and Hu, Yuling and Chen, Yuchen and Zhang, Quanjun and Ge, Xiuting and Liu, Yang and Chen, Zhenyu},
  title = {A Survey of Source Code Search: A 3-Dimensional Perspective},
  journal = {ACM Transactions on Software Engineering and Methodology},
  year = {2024},
  volume = {33},
  number = {6},
  pages = {1--51},
  doi = {10.1145/3656341}
}
Kostenlos starten →