一个基于机器学习的成熟提交信息质量检查器
A Full-fledged Commit Message Quality Checker Based on Machine Learning
AI总结:
本文针对缺乏自动评估提交信息质量工具的问题,基于机器学习训练模型检查CM质量规则,开发了开源框架,最差任务F$_1$达82.9%,有效提升软件可维护性。
摘要:
提交信息(CMs)是版本控制的重要组成部分。通过提供关于改了什么以及为什么改的重要上下文,它们有力地支持了软件维护和演化。但编写好的CMs很困难,且常被开发者忽视。迄今尚无适合实践的工具能自动评估CM写得如何,包括其含义和上下文。由于此任务具挑战性,我们提出研究问题:用机器学习方法能在多大程度上测出CM质量(含语义和上下文)?通过考虑最流行CM质量指南的所有规则、为这些规则创建数据集,并训练评估最先进的机器学习模型来检查这些规则,我们能回答该研究问题:足以用于实践,最具挑战性任务的最低F$_1$分为82.9%。我们开发了一个成熟的检查所有这些CM质量规则的开源框架。它对研究有用,例如自动CM生成,但最重要的是帮助软件从业者提升CM质量,从而提高其软件的可维护性和演化速度。
英文摘要:
Commit messages (CMs) are an essential part of version control. By providing important context in regard to what has changed and why, they strongly support software maintenance and evolution. But writing good CMs is difficult and often neglected by developers. So far, there is no tool suitable for practice that automatically assesses how well a CM is written, including its meaning and context. Since this task is challenging, we ask the research question: how well can the CM quality, including semantics and context, be measured with machine learning methods? By considering all rules from the most popular CM quality guideline, creating datasets for those rules, and training and evaluating state-of-the-art machine learning models to check those rules, we can answer the research question with: sufficiently well for practice, with the lowest F$_1$ score of 82.9\%, for the most challenging task. We develop a full-fledged open-source framework that checks all these CM quality rules. It is useful for research, e.g., automatic CM generation, but most importantly for software practitioners to raise the quality of CMs and thus the maintainability and evolution speed of their software.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。