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

错误修复变体:可视化跨GitHub分叉的独特Source Code更改

Bug-Fix Variants: Visualizing Unique Source Code Changes across GitHub Forks

Daigo Imamura, Takashi Ishio, Raula Gaikovina Kula, Kenichi Matsumoto

摘要:

分叉是开发人员在现有项目上进行构建时的常见做法。这些分叉创建了变体,这些变体具有共同的代码基础,但随后在不同的方向上发展代码,这是特定于分叉的项目需求的。拥有多个fork的一个有趣的副作用是能够在代码的不同演化方向之间进行选择,这是基于开发人员修复代码库中的bug。然而,关键问题在于,这种分散的信息形式很难分析。在这项研究中,我们提出了一个可视化来分析尚未合并回原始项目的fork存储库中的活动更改。我们的可视化显示了多个fork中的代码提交活动,突出显示了fork历史中的bug修复提交。虽然每个存储库的提交活动的可视化类似于GitHub的代码频率视图,但我们的视图仅显示fork存储库独有的提交。为了说明我们的可视化的有效性,我们将我们的视图应用于两个用例:从不再维护的存储库中识别fork,以及在fork中识别bug修复。在第一种情况下,我们识别了一个名为Obfuscator-LLVM的挂起项目的分支。我们的视图显示了原始存储库及其最活跃的分支,这些分支在顶部继续开发。在第二种情况下,我们在Clipy项目的一个分支中发现了一个bug修复。我们的视图显示,最活跃的分支有自己的bug修复;我们可以很容易地为视图中突出显示的bug识别补丁。作为一个新的想法论文,我们提出了我们的三个研究问题的大纲,以激发现实世界的用例和目标,我们的可视化有可能发现。我们的可视化原型可在\textcolor{blue} { \url{https://naist-se.github.io/vissoft2022/}

英文摘要:

Forking is a common practice for developers when building upon on already existing projects. These forks create variants, which have a common code base but then evolve the code in different directions, which is specific to that forked project requirements. An interesting side-effect of having multiple forks is the ability to select between different evolution directions of the code which is based on developers fixing bugs in the code base. However, the key issue that this decentralized form of information is difficult to analyze. In this study, we propose a visualization to analyze active changes in fork repositories that have not been merged back to the original project. Our visualization shows code commit activities in multiple forks with highlight on bug fix commits in the history of forks. While the commit activity of each repository is visualized similarly to the code frequency view of GitHub, our view shows only commits unique to fork repositories. To illustrate the effectiveness of our visualization, we have applied our view to two use cases: identifying forks from a repository no longer maintained, and identifying a bug fix among forks. In the first case, we identify a fork of a suspended project named Obfuscator-LLVM. Our view shows the original repository and its most active fork that continue the development on the top. In the second case, we identify a bug fix in a fork of Clipy project. Our view shows that the most active fork has its own bug fixes; we could easily identify a patch for the bug highlighted in the view. As a new ideas paper, we then present our outline of three research questions to spark real world use-cases and goals for our visualization has the potential to uncover. A prototype of our visualization is available at \textcolor{blue}{\url{https://naist-se.github.io/vissoft2022/}

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

↑