arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.07655cs.SEcs.LG
收藏

从提交信息生成到具备历史感知的提交信息补全

From Commit Message Generation to History-Aware Commit Message Completion

JetBrains Research(JetBrains研究院);JetBrains(JetBrains公司);University of Colorado Boulder(科罗拉多大学博尔德分校)

Aleksandra Eliseeva, Yaroslav Sokolov, Egor Bogomolov, Yaroslav Golubev, Danny Dig, Timofey Bryksin

AI总结:

本文提出历史感知的提交信息补全任务,构建涵盖20种语言、1070万次提交的 CommitChronicle 数据集,并验证历史上下文可提升 CMG 模型与 GPT-3.5-turbo 的表现。

摘要:

提交信息对软件开发至关重要,可帮助开发者追踪变更并开展高效协作。尽管其实用性很强,但由于撰写高质量提交信息既繁琐又耗时,大多数提交信息都缺少重要内容。关于提交信息生成(CMG)的活跃研究尚未在实践中得到广泛采用。我们认为,如果能够将关注点从提交信息生成转向提交信息补全,并将以往的提交历史作为额外上下文,就可以显著提升所得提交信息的质量及其个性化程度。本文提出并评估了这两个新颖想法。由于现有数据集缺少历史数据,我们收集并共享了一个名为 CommitChronicle 的新数据集,其中包含覆盖 20 种编程语言的 1070 万次提交。我们使用该数据集评估补全设置,以及历史上下文对最先进 CMG 模型和 GPT-3.5-turbo 的有用性。结果表明,在某些上下文中,提交信息补全表现出优于生成的结果;尽管 GPT-3.5-turbo 总体表现较差,但它在生成长且详细的信息方面展现出潜力。关于历史信息,结果表明其提升了 CMG 模型在生成任务中的性能,也提升了 GPT-3.5-turbo 在生成和补全两项任务中的性能。

英文摘要:

Commit messages are crucial to software development, allowing developers to track changes and collaborate effectively. Despite their utility, most commit messages lack important information since writing high-quality commit messages is tedious and time-consuming. The active research on commit message generation (CMG) has not yet led to wide adoption in practice. We argue that if we could shift the focus from commit message generation to commit message completion and use previous commit history as additional context, we could significantly improve the quality and the personal nature of the resulting commit messages. In this paper, we propose and evaluate both of these novel ideas. Since the existing datasets lack historical data, we collect and share a novel dataset called CommitChronicle, containing 10.7M commits across 20 programming languages. We use this dataset to evaluate the completion setting and the usefulness of the historical context for state-of-the-art CMG models and GPT-3.5-turbo. Our results show that in some contexts, commit message completion shows better results than generation, and that while in general GPT-3.5-turbo performs worse, it shows potential for long and detailed messages. As for the history, the results show that historical information improves the performance of CMG models in the generation task, and the performance of GPT-3.5-turbo in both generation and completion.

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

↑