AugmentedCode: Examining the Effects of Natural Language Resources in Code Retrieval Models

Mehdi Bahrami, N. C. Shrikanth, Yuji Mizobuchi, Lei Liu, Masahiro Fukuyori +2 more
10/16/2021
cs.SEcs.AI

Official code: fla-sil/PyTorrent (43 stars, last commit 2026-07-13).

Abstract

Code retrieval is allowing software engineers to search codes through a natural language query, which relies on both natural language processing and software engineering techniques. There have been several attempts on code retrieval from searching snippet codes to function codes.

Show full abstract

In this paper, we introduce Augmented Code (AugmentedCode) retrieval which takes advantage of existing information within the code and constructs augmented programming language to improve the code retrieval models' performance. We curated a large corpus of Python and showcased the the framework and the results of augmented programming language which outperforms on CodeSearchNet and CodeBERT with a Mean Reciprocal Rank (MRR) of 0.73 and 0.96, respectively. The outperformed fine-tuned augmented code retrieval model is published in HuggingFace at https://huggingface.co/Fujitsu/AugCode and a demonstration video is available at: https://youtu.be/mnZrUTANjGs .

View on arXivView PDF

Code Implementations(1)

fla-sil/PyTorrentOfficial100%
4315Jan 10, 20214 months ago

Similar Papers

Cite this paper

@article{bahrami2021augmentedcode,
  title  = {AugmentedCode: Examining the Effects of Natural Language Resources in Code Retrieval Models},
  author = {Mehdi Bahrami and N. C. Shrikanth and Yuji Mizobuchi and Lei Liu and Masahiro Fukuyori and Wei-Peng Chen and Kazuki Munakata},
  year   = {2021},
  eprint = {2110.08512},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.08512}
}

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/2110.08512.svg)](https://codeofpaper.com/paper/2110.08512)

Discussion