Retrieval on source code: a neural code search

By Saksham Sachdev, Hongyu Li, Sifei Luan, Seohyun Kim, Koushik Sen, Satish Chandra. 2018

200 citations recorded by the source corpus.

Searching over large code corpora can be a powerful productivity tool for both beginner and experienced developers because it helps them quickly find examples of code related to their intent. Code search becomes even more attractive if developers could express their intent in natural language, similar to the interaction that Stack Overflow supports. In this paper, we investigate the use of natural language processing and information retrieval techniques to carry out natural language search directly over source code, i.e. without having a curated Q&A forum such as Stack Overflow at hand. Our experiments using a benchmark suite derived from Stack Overflow and GitHub repositories show promising results. We find that while a basic word–embedding based search procedure works acceptably, better results can be obtained by adding a layer of supervision, as well as by a customized ranking strategy.

Subfields: Artificial Intelligence, Information Systems, Information Retrieval & Search, Code Generation & Program Synthesis, Program Analysis & Verification

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Nan Duan
  2. Eran Yahav
  3. Vijayaraghavan Murali
  4. Uri Alon
  5. Michael Pradel
  6. Ming Zhou
  7. Seohyun Kim
  8. Satish Chandra

In Information Systems

  1. Georgios Gousios
  2. Michael Pradel
  3. Uri Alon
  4. Eran Yahav
  5. Satish Chandra
  6. Jibesh Patra
  7. Seohyun Kim
  8. Noam Yefet

In Information Retrieval & Search

  1. Armando Solar-Lezama
  2. Koushik Sen
  3. Michael Pradel
  4. Linjun Shou
  5. James Koppel
  6. Duyu Tang
  7. Songlin Hu
  8. Nan Duan

In Code Generation & Program Synthesis

  1. Georgios Gousios
  2. Uri Alon
  3. Eran Yahav
  4. Hongyu Li
  5. Michael Pradel
  6. Vijayaraghavan Murali
  7. Jibesh Patra
  8. Seohyun Kim

In Program Analysis & Verification

  1. Georgios Gousios
  2. Satish Chandra
  3. Jason Liu
  4. Jibesh Patra
  5. Rabee Sohail Malik
  6. Michael Pradel
  7. Armando Solar-Lezama
  8. Koushik Sen

Citations in the corpus