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

被引:61
作者
Loyola, Pablo [1 ]
Marrese-Taylor, Edison [1 ]
Matsuo, Yutaka [1 ]
机构
[1] Univ Tokyo, Grad Sch Engn, Tokyo, Japan
来源
PROCEEDINGS OF THE 55TH ANNUAL MEETING OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS (ACL 2017), VOL 2 | 2017年
关键词
D O I
10.18653/v1/P17-2045
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
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. 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.
引用
收藏
页码:287 / 292
页数:6
相关论文
共 28 条
[1]  
Allamanis M, 2016, PR MACH LEARN RES, V48
[2]  
[Anonymous], 2007, P 2 WORKSHOP STAT MA
[3]  
[Anonymous], 2013, Short Papers
[4]  
[Anonymous], 2015, P 2015 C EMPIRICAL M, DOI DOI 10.18653/V1/D15-1166
[5]  
Asuncion H.U., 2010, P 32 INT C SOFTW ENG, P95
[6]  
Bahdanau D, 2016, Arxiv, DOI [arXiv:1409.0473, DOI 10.48550/ARXIV.1409.0473]
[7]  
Bertoldi Nicola, 2009, PRAGUE B MATH LINGUI, P1
[8]  
Brandl Georg, 2016, PYGMENTS PYTHON SYNT
[9]   On Automatically Generating Commit Messages via Summarization of Source Code Changes [J].
Fernando Cortes-Coy, Luis ;
Linares-Vasquez, Mario ;
Aponte, Jairo ;
Poshyvanyk, Denys .
2014 14TH IEEE INTERNATIONAL WORKING CONFERENCE ON SOURCE CODE ANALYSIS AND MANIPULATION (SCAM 2014), 2014, :275-284
[10]   An Exploratory Study of the Pull-Based Software Development Model [J].
Gousios, Georgios ;
Pinzger, Martin ;
van Deursen, Arie .
36TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2014), 2014, :345-355