arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.16185cs.SE
收藏

提交历史中的重构感知代码块追踪

Refactoring-aware Block Tracking in Commit History

Mohammed Tayeeb Hasan, Nikolaos Tsantalis, Pouria Alikhanifard

AI总结:

提出重构感知工具 CodeTracker 追踪代码块提交历史,通过 1,280 个代码块基准测试,证明其准确率与执行效率均优于 GumTree 3.0 基线。

摘要:

追踪项目提交历史中的语句在许多情况下有助于支持各种软件维护、理解和演化任务。高准确率可以促进开发者和研究人员采用代码追踪工具。为此,我们提出了 CodeTracker,这是一种具有重构感知能力的工具,能够生成代码块的提交变更历史。为了评估其准确率,我们创建了一个基准数据集,包含来自 20 个流行开源项目仓库中 200 个方法内的 1,280 个代码块的变更历史。此外,我们基于当前最先进的抽象语法树(AST)差异工具 GumTree 3.0 创建了一个基线,以便比较准确率和执行时间。我们的实验表明,CodeTracker 具有比基于 GumTree 的基线高得多的精确率/召回率和更快的执行时间,并且能够在平均 3.6 秒内以 99.5% 的精确率和召回率提取代码块的完整变更历史。

英文摘要:

Tracking statements in the commit history of a project is in many cases useful for supporting various software maintenance, comprehension, and evolution tasks. A high level of accuracy can facilitate the adoption of code tracking tools by developers and researchers. To this end, we propose CodeTracker, a refactoring-aware tool that can generate the commit change history for code blocks. To evaluate its accuracy, we created an oracle with the change history of 1,280 code blocks found within 200 methods from 20 popular open-source project repositories. Moreover, we created a baseline based on the current state-of-the-art Abstract Syntax Tree diff tool, namely GumTree 3.0, in order to compare the accuracy and execution time. Our experiments have shown that CodeTracker has a considerably higher precision/recall and faster execution time than the GumTree-based baseline, and can extract the complete change history of a code block with a precision and recall of 99.5% within 3.6 seconds on average.

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

↑