arrow
返回

ATOM: Commit Message Generation Based on Abstract Syntax Tree and Hybrid Ranking

delete2022-05-01
delete47
delete
OA
AI
S
Shangqing Liu
高
高翠云 (Cuiyun Gao) *
S
Sen Chen
L
Lun Yiu Nie
刘
刘洋 (Yang Liu)
DOI:10.1109/TSE.2020.3038681delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Commit messages record code changes (e.g., feature modifications and bug repairs) in natural language, and are useful for program comprehension. Due to the frequent updates of software and time cost, developers are generally unmotivated to write commit messages for code changes. Therefore, automating the message writing process is necessitated. Previous studies on commit message generation have been benefited from generation models or retrieval models, but the code structure of changed code, i.e., AST, which can be important for capturing code semantics, has not been explicitly involved. Moreover, although generation models have the advantages of synthesizing commit messages for new code changes, they are not easy to bridge the semantic gap between code and natural languages which could be mitigated by retrieval models. In this paper, we propose a novel commit message generation model, named ATOM, which explicitly incorporates the abstract syntax tree for representing code changes and integrates both retrieved and generated messages through hybrid ranking. Specifically, the hybrid ranking module can prioritize the most accurate message from both retrieved and generated messages regarding one code change. We evaluate the proposed model ATOM on our dataset crawled from 56 popular Java repositories. Experimental results demonstrate that ATOM increases the state-of-the-art models by 30.72 percent in terms of BLEU-4 (an accuracy measure that is widely used to evaluate text generation systems). Qualitative analysis also demonstrates the effectiveness of ATOM in generating accurate code commit messages.
Keyword:
Syntactics
Semantics
Atomic measurements
Hybrid power systems
Benchmark testing
Writing
Java
Commit message generation
code changes
abstract syntax tree

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.1W

机构

H
harbin institute of technology
学者数:
8.0W
论文数: 6.6W
被引数: 66
N
Nanyang Technological University
学者数:
4.9W
论文数: 4.8W
被引数: 8.1W
C
Chinese University of Hong Kong
学者数:
3.4W
论文数: 3.2W
被引数: 5.6W
学者 查看更多机构
引用论文

引用论文

SCALING WITH KNOWN UNCERTAINTY: A SYNTHESIS
err2006-01-01
err0
PREAI
errJIANGUO WU; HARBIN LI; K. BRUCE JONES; ORIE L. LOUCKS
err分享
err收藏
Experimental carinal autotransplantation and allotransplantation
err1995-09-01
err0
errOAAI
errToshirou Takachi; Takayuki Shirakusa; Takeshi Shiraishi; Kan Okabayashi; Koji Inutsuka; Katsunobu Kawahara; Ryoichi Nakanishi
err分享
err收藏
Homeobox Gene Involvement in Normal Hematopoiesis and in the Pathogenesis of Childhood Leukemias
err2017-01-01
err0
PREAI
errMaria Adamaki; Maria Goulielmaki; Ioannis Christodoulou; Spiros Vlahopoulos; Vassilis Zoumpourlis
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
Chromatin Accessibility Profiling Reveals Cis-Regulatory Heterogeneity and Novel Transcription Factor Dependencies in Multiple Myeloma
err2018-11-29
err0
errOAAI
errChristopher J. Ott; Raphael Szalat; Matthew Lawlor; Mehmet Kemal Samur; Yan Xu; Charles B Epstein; Charles Y Lin; Rao Prabhala; Nina Farrell; Lauren D Walter; Logan Schwartz; Kenneth Wen; Yu-Tzu Tai; Mariateresa Fulciniti; Jinhua Wang; Nathanael Gray; Kenneth Anderson; Richard A. Young; Nikhil Munshi
err分享
err收藏
Enzymatic analysis of total- and HDL-cholesterol: Comparison with the standardized Liebermann-Burchard method used by the lipid research clinics program
err1988-06-01
err0
errOAAI
errPaul S. Bachorik; Donna G. Virgil; Carol Derby; David Widman; Robert McMahon; Robinson P. Fulwood; Trena Ezzati
err分享
err收藏
Poorer self-rated health in residential areas with limited healthcare supply
err2014-02-12
err0
PREAI
errSigríður Haraldsdóttir; Unnur A Valdimarsdóttir; Sigurður Guðmundsson
err分享
err收藏
学者 查看更多内容