...
首页> 外文期刊>Empirical Software Engineering >cregit: Token-level blame information in git version control repositories
【24h】

cregit: Token-level blame information in git version control repositories

机译:Cregit:Git版本控制存储库中的令牌级责备信息

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

The blame feature of version control systems is widely used-both by practitioners and researchers-to determine who has last modified a given line of code, and the commit where this contribution was made. The main disadvantage of blame is that, when a line is modified several times, it only shows the last commit that modified it-occluding previous changes to other areas of the same line. In this paper, we developed a method to increase the granularity of blame in git: instead of tracking lines of code, this method is capable of tracking tokens in source code. We evaluate its effectiveness with an empirical study in which we compare the accuracy of blame in git (per line) with our proposed blame-per-token method. We demonstrate that, in 5 large open source systems, blame-per-token is capable of properly identifying the commit that introduced a token with an accuracy between 94.5% and 99.2%, while blame-per-line can only achieve an accuracy between 75% and 91% (with a margin of error of +/-5% and a confidence interval of 95%). We also classify the reasons why either blame method fails, highlighting each method's weaknesses. The blame-per-token method has been implemented in an open source tool called cregit, which is currently in use by the Linux Foundation to identify the persons who have contributed to the source code of the Linux kernel.
机译:版本控制系统的责任特性是广泛使用的 - 由从业者和研究人员广泛使用 - 确定谁上次修改了给定的代码行,以及提交这笔贡献的提交。责任的主要缺点是,当一条线修改多次时,它只显示了修改它 - 封闭对同一行其他区域的更改的最后一个提交。在本文中,我们开发了一种增加Git中责备粒度的方法:而不是跟踪代码线,这种方法能够跟踪源代码中的令牌。我们评估其具有实证研究的有效性,其中我们将Git(每行)的责任准确性与我们的拟议的责任的方法进行比较。我们证明,在5个大型开源系统中,责备责备能够正确地识别引入令牌的提交,精度在94.5%和99.2%之间,而每行责备只能在75之间实现准确性%和91%(距+/- 5%的误差缘和95%的置信区间)。我们还将责备方法失败的原因分类,突出显示每种方法的弱点。归咎于每个令牌方法在一个名为Crogit的开源工具中实现,该工具当前正在使用Linux基础,以识别为Linux内核的源代码提供了贡献的人。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号