Impact of Change Granularity in Refactoring Detection
Impact of Change Granularity in Refactoring Detection
复制标题
重构检测中变更粒度的影响
DOI:
10.1145/3524610.3528386
复制
发表时间:
2022
期刊:
影响因子:
--
通讯作者:
Shinpei Hayashi
中科院分区:
文献类型:
--
作者:
Chen Lei;Shinpei Hayashi
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