arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2103.11563cs.SE
收藏

RefactorHub:一个用于重构的提交注释器

RefactorHub: A Commit Annotator for Refactoring

Ryo Kuramoto, Motoshi Saeki, Shinpei Hayashi

摘要:

在对重构进行实证研究的同时,有必要收集真实的重构实例。然而,现有的重构检测方法在其准确性和覆盖率方面是不够的。减少管理重构数据的手动工作在准确获得各种重构数据方面具有挑战性。本文提出了一个名为RefactorHub的工具,该工具支持用户手动注释从现有重构检测方法中获得的潜在重构相关提交,以使其重构信息更加准确和完整,并具有丰富的细节。在所提出的方法中,每个重构操作的参数被定义为重构之前或之后的版本中的一组有意义的代码元素。RefactorHub提供接口和支持特性来注释每个参数,例如自动填充依赖参数,从而避免错误或不确定的选择。一项初步的用户研究表明,RefactorHub减少了注释工作,提高了用户之间的一致性。源代码和演示视频可在https://github.com/salab/RefactorHub上获得

英文摘要:

It is necessary to gather real refactoring instances while conducting empirical studies on refactoring. However, existing refactoring detection approaches are insufficient in terms of their accuracy and coverage. Reducing the manual effort of curating refactoring data is challenging in terms of obtaining various refactoring data accurately. This paper proposes a tool named RefactorHub, which supports users to manually annotate potential refactoring-related commits obtained from existing refactoring detection approaches to make their refactoring information more accurate and complete with rich details. In the proposed approach, the parameters of each refactoring operation are defined as a meaningful set of code elements in the versions before or after refactoring. RefactorHub provides interfaces and supporting features to annotate each parameter, such as the automated filling of dependent parameters, thereby avoiding wrong or uncertain selections. A preliminary user study showed that RefactorHub reduced annotation effort and improved the degree of agreement among users. Source code and demo video are available at https://github.com/salab/RefactorHub

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

↑