Impact of Change Granularity in Refactoring Detection

Impact of Change Granularity in Refactoring Detection
复制标题

重构检测中变更粒度的影响

DOI:
10.1145/3524610.3528386
复制
发表时间:
2022
期刊:
Proceedings of the 30th IEEE/ACM International Conference on Program Comprehension
影响因子:
--
通讯作者:
Shinpei Hayashi
Shinpei Hayashi
中科院分区:
--
文献类型:
--
作者:
Chen Lei;Shinpei Hayashi

文献摘要

参考文献

相似文献

检测提交历史中的重构对于提高代码评审中代码更改的理解以及为软件演化的实证研究提供有价值的信息至关重要。已经提出了几种技术来在单个提交的粒度级别上准确地检测重构。然而,由于代码复杂性或其他真实的开发问题,重构可能在多个提交上执行,这就是为什么尝试以单次提交粒度检测重构是不够的。我们观察到,一些重构只能在较粗的粒度上被检测到,也就是说,更改分布在多个提交中。在这里,这种类型的重构被称为粗粒度重构(CGR)。我们比较了在19个开源仓库中不同粒度的提交中检测到的重构。结果表明,CGR是常见的,其频率随着粒度变粗而增加。此外,我们发现与Move相关的重构往往是最常见的CGR。分析了CGR产生的原因,并指出CGR在重构研究中的应用价值。
Detecting refactorings in commit history is essential to improve the comprehension of code changes in code reviews and to provide valuable information for empirical studies on software evolution. Several techniques have been proposed to detect refactorings accurately at the granularity level of a single commit. However, refactorings may be performed over multiple commits because of code complexity or other real development problems, which is why attempting to detect refactorings at single-commit granularity is insufficient. We observe that some refactorings can be detected only at coarser granularity, that is, changes spread across multiple commits. Herein, this type of refactoring is referred to ascoarse-grained refactoring(CGR). We compared the refactorings detected on different granularities of commits from 19 open-source repositories. The results show that CGRs are common, and their frequency increases as the granularity becomes coarser. In addition, we found thatMove-related refactorings tended to be the most frequent CGRs. We also analyzed the causes of CGR and suggested that CGRs will be valuable in refactoring research.
通过自动重构验证进行手动重构更改
DOI: --
发表时间: 2014
期刊: International Conference on Software Engineering
影响因子: --
作者:
Xi Ge;E. Murphy
通讯作者: E. Murphy
重构如何影响内部质量属性?:多项目研究
DOI: --
发表时间: 2017
期刊: Brazilian Symposium on Software Engineering
影响因子: --
作者:
Alexander Chávez;Isabella Ferreira;Eduardo Fernandes;Diego Cedrim;Alessandro F. Garcia
通讯作者: Alessandro F. Garcia