Searching a Database of Source Codes Using Contextualized Code Search
Not on the map. Why?
Abstract (arXiv)
Consider the case where a programmer has written some part of a program, but has left part of the program (such as a method or a function body) incomplete. The goal is to use the context surrounding the missing code to automatically 'figure out' which of the codes in the database would be useful to the programmer in order to help complete the missing code. The search is 'contextualized' in the sense that the search engine should use clues in the partially-completed code to figure out which database code is most useful. The user should not be required to formulate an explicit query. We cast contextualized code search as a learning problem, where the goal is to learn a distribution function computing the likelihood that each database code completes the program, and propose a neural model for predicting which database code is likely to be most useful. Because it will be prohibitively expensive to apply a neural model to each code in a database of millions or billions of codes at search time, one of our key technical concerns is ensuring a speedy search. We address this by learning a 'reverse encoder' that can be used to reduce the problem of evaluating each database code to computing a convolution of two normal distributions.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). First posted on arXiv 10 Jan 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 1; 2023: 1.
3 papers.
- 2021Auto-Pipeline: Synthesizing Complex Data Pipelines By-Target Using Reinforcement Learning and Searchcited by 8
- 2023GenCodeSearchNet: A Benchmark Test Suite for Evaluating Generalization in Programming Language Understandingcited by 6
- 2022Addressing Leakage in Self-Supervised Contextualized Code Retrievalcited by 1
- 2023GenCodeSearchNet: A Benchmark Test Suite for Evaluating Generalization in Programming Language Understanding16 Nov 2023
- 2022Addressing Leakage in Self-Supervised Contextualized Code Retrieval17 Apr 2022
- 2021Auto-Pipeline: Synthesizing Complex Data Pipelines By-Target Using Reinforcement Learning and Search25 Jun 2021