arrow
返回

Context-aware Retrieval-based Deep Commit Message Generation

delete2021-07-23
delete28
delete
OA
AI
H
Haoye Wang
X
Xin Xia *
David Lo 封面图
David Lo (David Lo)
Q
Qiang He
王
王新宇 (Xinyu Wang)
John Grundy 封面图
John Grundy (John Grundy)
DOI:10.1145/3464689delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Commit messages recorded in version control systems contain valuable information for software development, maintenance, and comprehension. Unfortunately, developers often commit code with empty or poor quality commit messages. To address this issue, several studies have proposed approaches to generate commit messages from commit diffs. Recent studies make use of neural machine translation algorithms to try and translate git diffs into commit messages and have achieved some promising results. However, these learningbasedmethods tend to generate high-frequency words but ignore low-frequency ones. In addition, they suffer from exposure bias issues, which leads to a gap between training phase and testing phase. In this article, we propose COREC to address the above two limitations. Specifically, we first train a contextaware encoder-decoder model that randomly selects the previous output of the decoder or the embedding vector of a ground truth word as context to make the model gradually aware of previous alignment choices. Given a diff for testing, the trained model is reused to retrieve the most similar diff from the training set. Finally, we use the retrieval diff to guide the probability distribution for the final generated vocabulary. Our method combines the advantages of both information retrieval and neural machine translation. We evaluate CoRec on a dataset from Liu et al. and a large-scale dataset crawled from 10K popular Java repositories in Github. Our experimental results show that COREC significantly outperforms the state-of-the-art method NNGen by 19% on average in terms of BLEU.
Keyword:
Commit message generation
neural machine translation
information retrieval
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

Is It Hard to Generate Holistic Commit Message?
err2025-01-18
err0
PREAI
errWang, Guoqing; Sun, Zeyu; Dong, Jinhao; Zhang, Yuxia; Zhu, Mingxuan; Liang, Qingyuan; Hao, Dan
err分享
err收藏
KADEL: Knowledge-Aware Denoising Learning for Commit Message Generation
err2024-06-04
err2
errOAAI
errTao, Wei; Zhou, Yucheng; Wang, Yanlin; Zhang, Hongyu; Wang, Haofen; Zhang, Wenqiang
err分享
err收藏
COMET: Generating commit messages using delta graph context representation
err2025-04-01
err0
errOAAI
errMandli, Abhinav Reddy; Rajput, Saurabhsingh; Sharma, Tushar
err分享
err收藏

期刊

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
论文数:
1.4K
被引数:
4.5K

机构

浙江大学 封面图
浙江大学
学者数:
1.5K
论文数: 463
被引数: 9.6W
新
新加坡管理大学
学者数:
229
论文数: 159
被引数: 2.3K
S
Swinburne University of Technology
学者数:
687
论文数: 354
被引数: 10.0K
M
monash university
学者数:
3.6K
论文数: 1.4K
被引数: 4.5W
学者 查看更多机构
引用论文

引用论文

Safety of Pressurized Intraosseous Blood Infusion Strategies in a Swine Model of Hemorrhagic Shock
err2020-02-01
err0
errOAAI
errJonathan D. Auten; Christian S. McEvoy; Paul J. Roszko; Travis M. Polk; Ryan E. Kachur; Jean D. Kemp; Ramesh Natarajan; Greg J. Zarow
err分享
err收藏
err
IF0
err
err0
errOAAI
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收藏
Establishment and characterization of a new triple-negative canine mammary cancer cell line
err2018-10-01
err0
PREAI
errHong Zhang; Shimin Pei; Bin Zhou; Huanan Wang; Hongchao Du; Di Zhang; Degui Lin
err分享
err收藏
Long-Range Coupled Motions Underlie Ligand Recognition by a Chemokine Receptor
err2020-12-01
err0
errOAAI
errKrishna Mohan Sepuru; Vinay Nair; Priyanka Prakash; Alemayehu A. Gorfe; Krishna Rajarathnam
err分享
err收藏
学者 查看更多内容