OCoR: An Overlapping-Aware Code Retriever
Not on the map. Why?
Abstract (arXiv)
Code retrieval helps developers reuse the code snippet in the open-source projects. Given a natural language description, code retrieval aims to search for the most relevant code among a set of code. Existing state-of-the-art approaches apply neural networks to code retrieval. However, these approaches still fail to capture an important feature: overlaps. The overlaps between different names used by different people indicate that two different names may be potentially related (e.g., "message" and "msg"), and the overlaps between identifiers in code and words in natural language descriptions indicate that the code snippet and the description may potentially be related. To address these problems, we propose a novel neural architecture named OCoR, where we introduce two specifically-designed components to capture overlaps: the first embeds identifiers by character to capture the overlaps between identifiers, and the second introduces a novel overlap matrix to represent the degrees of overlaps between each natural language word and each identifier. The evaluation was conducted on two established datasets. The experimental results show that OCoR significantly outperforms the existing state-of-the-art approaches and achieves 13.1% to 22.3% improvements. Moreover, we also conducted several in-depth experiments to help understand the performance of different components in OCoR.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). First posted on arXiv 12 Aug 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 4; 2023: 2.
9 papers.
- 2021A Syntax-Guided Edit Decoder for Neural Program Repaircited by 57
- 2022On the Importance of Building High-quality Training Datasets for Neural Code Searchcited by 30
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2022CoCoSoDa: Effective Contrastive Learning for Code Searchcited by 21
- 2021GraphSearchNet: Enhancing GNNs via Capturing Global Dependencies for Semantic Code Searchcited by 15
- 2022An Extractive-and-Abstractive Framework for Source Code Summarizationcited by 15
- 2022Code Search based on Context-aware Code Translationcited by 11
- 2023Code Search Debiasing:Improve Search Results beyond Overall Ranking Performancecited by 4
- 2021Is a Single Model Enough? MuCoS: A Multi-Model Ensemble Learning for Semantic Code Searchcited by 1
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Code Search Debiasing:Improve Search Results beyond Overall Ranking Performance25 Nov 2023
- 2022An Extractive-and-Abstractive Framework for Source Code Summarization15 Jun 2022
- 2022CoCoSoDa: Effective Contrastive Learning for Code Search7 Apr 2022
- 2022Code Search based on Context-aware Code Translation16 Feb 2022
- 2022On the Importance of Building High-quality Training Datasets for Neural Code Search14 Feb 2022
- 2021GraphSearchNet: Enhancing GNNs via Capturing Global Dependencies for Semantic Code Search4 Nov 2021
- 2021Is a Single Model Enough? MuCoS: A Multi-Model Ensemble Learning for Semantic Code Search10 Jul 2021
- 2021A Syntax-Guided Edit Decoder for Neural Program Repair15 Jun 2021