Learning Human-Written Commit Messages to Document Code Changes

来源 :计算机科学技术学报(英文版) | 被引量 : 0次 | 上传用户:haoxiaoye
下载到本地 , 更方便阅读
声明 : 本文档内容版权归属内容提供方 , 如果您对本文有版权争议 , 可与客服联系进行内容授权或下架
论文部分内容阅读
Commit messages are important complementary information used in understanding code changes. To address message scarcity, some work is proposed for automatically generating commit messages. However, most of these approaches focus on generating summary of the changed software entities at the superficial level, without considering the intent behind the code changes (e.g., the existing approaches cannot generate such message:“fixing null pointer exception”). Considering developers often describe the intent behind the code change when writing the messages, we propose ChangeDoc, an approach to reuse existing messages in version control systems for automatical commit message generation. Our approach includes syntax, semantic, pre-syntax, and pre-semantic similarities. For a given commit without messages, it is able to discover its most similar past commit from a large commit repository, and recommend its message as the message of the given commit. Our repository contains half a million commits that were collected from SourceForge. We evaluate our approach on the commits from 10 projects. The results show that 21.5% of the recommended messages by ChangeDoc can be directly used without modification, and 62.8% require minor modifications. In order to evaluate the quality of the commit messages recommended by ChangeDoc, we performed two empirical studies involving a total of 40 participants (10 professional developers and 30 students). The results indicate that the recommended messages are very good approximations of the ones written by developers and often include important intent information that is not included in the messages generated by other tools.
其他文献
小波域隐马尔可夫树(HMT)模型可以有效描述小波系数之间的依赖关系,从而基于小波域HMT模型的图像去噪方法可以获得较好的去噪效果。然而二维小波变换只有有限的三个方向,不能有
会议
米非司酮拮抗孕酮作用及安全性、有效性、可行性在医学界早已得到认定,它配伍米索前列醇用于临床终止早孕效果肯定,但对终止较晚期早孕、中期妊娠引产、胎死宫内引产正在临床
提出并实现了一种基于DSP和射频卡的嵌入式指纹识别系统,系统采用高性能、低功耗的TMS320VC5502定点型DSP和Mifare One s70射频卡及北京完美科学技术研究所生产的wm-161读卡器
会议
提出一种基于量化方法和提升小波的音频水印方法。首先,将二维图像水印转换为一维信号,然后生成混沌信号,用其对水印信号进行混沌处理;最后,对音频信号进行提升小波变换,基于量化
会议
在大量的成像系统中,由于受各种因素的影响,其降晰函数(或点扩散函数)通常是空间变化的高斯函数。降晰矩阵分解利用高斯函数的可分解性,将空变降晰矩阵转化为空不变降晰矩阵与稀
会议
主要介绍一种基于DSP的路灯监控视频捕捉器,并利用GPRS网络通信技术实现图像实时采集功能。 核心部分主要包括路灯监控视频捕捉器及其上层通信软件的设计,该系统功能齐全、
现有的基于Hausdorff距离的图像匹配方法大都是通过提取物体的边缘轮廓来实现其图像配准的,当图像尺寸较大。边缘轮廓丰富时,它们的计算量就非常大了。本文提出一种通过Harris
会议
Conditional pushdown systems (CPDSs) extend pushdown systems by associating each transition rule with a regular language over the stack alphabet. The goal is to
综述了基于图像的目标跟踪技术的发展状况、应用领域和多种分类方法,概述了目前典型跟踪算法的基本原理、优缺点和适用情况,介绍了跟踪系统的组成和实现方案,针对不同技术难点讨
音乐是人类生活情感表达的艺术,是民族文化不可缺少的组成部分.在我从事小学音乐教学的这些年,对农村小学音乐教育的教学观念、教学设备,师资配备,等方面有较多了解,音乐教育