A Neural Architecture for Generating Natural Language Descriptions from Source Code Changes

Pablo Loyola, Edison Marrese-Taylor, Yutaka Matsuo
4/17/2017
135 citations
cs.CL

Official code: epochx/commitgen (67 stars, Jupyter Notebook, last commit 2017-04-18).

Abstract

We propose a model to automatically describe changes introduced in the source code of a program using natural language. Our method receives as input a set of code commits, which contains both the modifications and message introduced by an user.

Show full abstract

These two modalities are used to train an encoder-decoder architecture. We evaluated our approach on twelve real world open source projects from four different programming languages. Quantitative and qualitative results showed that the proposed approach can generate feasible and semantically sound descriptions not only in standard in-project settings, but also in a cross-project setting.

View on arXivView PDF

Code Implementations(1)

epochx/commitgenOfficial100%

Code and data for the paper "A Neural Architecture for Generating Natural Language Descriptions from Source Code Changes"

6726Jupyter Notebook, PythonApr 18, 20179 years ago

Similar Papers

Cite this paper

@article{loyola2017neural,
  title  = {A Neural Architecture for Generating Natural Language Descriptions from Source Code Changes},
  author = {Pablo Loyola and Edison Marrese-Taylor and Yutaka Matsuo},
  year   = {2017},
  eprint = {1704.04856},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1704.04856}
}

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

Discussion