arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2305.16591cs.SE
收藏

提交信息中的1800万条链接:目的、演化与衰减

18 Million Links in Commit Messages: Purpose, Evolution, and Decay

Tao Xiao, Sebastian Baltes, Hideaki Hata, Christoph Treude, Raula Gaikovina Kula, Takashi Ishio, Kenichi Matsumoto

AI总结:

本文大规模研究了23110个GitHub仓库提交中1820万条链接,发现链接引用普遍但易衰减,70%的不同链接遭受衰减,与代码中链接命运相同。

摘要:

提交信息在软件维护与演化的各个方面包含着多样且有价值的知识,链接便是此类知识的一个例子。此前关于“源代码注释中的960万条链接”的研究表明,链接容易衰减、变得过时,并且缺乏双向可追溯性。我们对来自23,110个GitHub仓库的提交中的18,201,165条链接进行了一项大规模研究,以调查它们是否遭受同样的命运。结果表明,引用外部资源十分普遍,除github.com之外出现最频繁的域是Stack Overflow和Google Code的外部域。同样,链接作为提交信息的源代码上下文,其中不可访问的链接频繁出现。尽管重复引用链接的情况很少见(4%),但在容易发生演化的链接中,有14%会随着时间推移变得不可用;例如,教程或文章以及软件主页会随着时间推移变得不可用。此外,我们发现70%的不同链接遭受衰减;出现最频繁的域与Subversion仓库相关。我们总结认为,提交中的链接与代码中的链接有着相同的命运,这为未来工作开辟了方向。

英文摘要:

Commit messages contain diverse and valuable types of knowledge in all aspects of software maintenance and evolution. Links are an example of such knowledge. Previous work on "9.6 million links in source code comments" showed that links are prone to decay, become outdated, and lack bidirectional traceability. We conducted a large-scale study of 18,201,165 links from commits in 23,110 GitHub repositories to investigate whether they suffer the same fate. Results show that referencing external resources is prevalent and that the most frequent domains other than github.com are the external domains of Stack Overflow and Google Code. Similarly, links serve as source code context to commit messages, with inaccessible links being frequent. Although repeatedly referencing links is rare (4%), 14% of links that are prone to evolve become unavailable over time; e.g., tutorials or articles and software homepages become unavailable over time. Furthermore, we find that 70% of the distinct links suffer from decay; the domains that occur the most frequently are related to Subversion repositories. We summarize that links in commits share the same fate as links in code, opening up avenues for future work.

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

↑