arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1703.09603cs.SE
收藏

自动生成简短的提交摘要

Towards Automatic Generation of Short Summaries of Commits

Siyuan Jiang, Collin McMillan

摘要:

提交到版本控制系统意味着向系统提交软件更改。每个提交都可以有一个消息来描述提交。已经提出了几种方法来自动生成这样的消息的内容。然而,自动生成的信息的质量远远低于人类所写的。在研究自动生成的信息和人类书写的信息之间的差异时,我们发现82%的人类书写的信息只有一句话,而自动生成的信息通常有多行。此外,我们发现提交消息通常以动词开头,后跟直接宾语。这一发现启发我们在本文中使用“动词+对象”格式来生成简短的提交摘要。我们将方法分为两个部分:动词生成和对象生成。作为我们的第一次尝试,我们训练了一个分类器来将diff分类为动词。在我们继续为提交生成直接对象之前,我们正在寻求社区的反馈。

英文摘要:

Committing to a version control system means submitting a software change to the system. Each commit can have a message to describe the submission. Several approaches have been proposed to automatically generate the content of such messages. However, the quality of the automatically generated messages falls far short of what humans write. In studying the differences between auto-generated and human-written messages, we found that 82% of the human-written messages have only one sentence, while the automatically generated messages often have multiple lines. Furthermore, we found that the commit messages often begin with a verb followed by an direct object. This finding inspired us to use a "verb+object" format in this paper to generate short commit summaries. We split the approach into two parts: verb generation and object generation. As our first try, we trained a classifier to classify a diff to a verb. We are seeking feedback from the community before we continue to work on generating direct objects for the commits.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑