CoNCRA: A Convolutional Neural Network Code Retrieval Approach

Marcelo de Rezende Martins, Marco A. Gerosa
9/3/2020
13 citations
cs.LGcs.CLcs.SE

Official code: mrezende/concra (5 stars, Jupyter Notebook, MIT, last commit 2021-02-12).

Abstract

Software developers routinely search for code using general-purpose search engines. However, these search engines cannot find code semantically unless it has an accompanying description.

Show full abstract

We propose a technique for semantic code search: A Convolutional Neural Network approach to code retrieval (CoNCRA). Our technique aims to find the code snippet that most closely matches the developer's intent, expressed in natural language. We evaluated our approach's efficacy on a dataset composed of questions and code snippets collected from Stack Overflow. Our preliminary results showed that our technique, which prioritizes local interactions (words nearby), improved the state-of-the-art (SOTA) by 5% on average, retrieving the most relevant code snippets in the top 3 (three) positions by almost 80% of the time. Therefore, our technique is promising and can improve the efficacy of semantic code retrieval.

View on arXivView PDF

Code Implementations(1)

mrezende/concraOfficial100%
MIT

This repository contains the implementations of our experiments and our approach presented in the paper: CoNCRA: A Convolutional Neural Network Code Retrieval Approach

53Jupyter Notebook, PythonApr 10, 20205 years agoMIT
code-retrievalcode-searchjoint-embeddingneural-networks

Similar Papers

Cite this paper

@article{martins2020concra,
  title  = {CoNCRA: A Convolutional Neural Network Code Retrieval Approach},
  author = {Marcelo de Rezende Martins and Marco A. Gerosa},
  year   = {2020},
  eprint = {2009.01959},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.01959}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2009.01959.svg)](https://codeofpaper.com/paper/2009.01959)

Discussion