9.6 Source Code评论中的百万链接:目的、演变和衰退
9.6 Million Links in Source Code Comments: Purpose, Evolution, and Decay
摘要:
链接是万维网的基本特征,源代码库也不例外。然而,尽管有许多无可争议的好处,链接可能会受到衰减,版本控制不足和缺乏双向可追溯性的影响。在本文中,我们调查的作用,包含在源代码注释链接从这些角度来看。我们对大约960万个链接进行了大规模研究,以确定它们的流行程度,我们使用混合方法来确定链接的目标,目的,衰变和进化方面。我们发现,链接在源代码存储库中很普遍,许可证,软件主页和规范是常见的链接目标类型,并且通常包含链接以提供元数据或属性。链接很少更新,但许多链接目标会演变。在源代码注释中包含的链接中,几乎有10%是死的。然后,我们向开源软件仓库提交了一批链接修复拉取请求,导致我们的大多数修复成功合并。我们的研究结果表明,源代码注释中的链接确实是脆弱的,我们的工作为未来解决这些问题开辟了途径。
英文摘要:
Links are an essential feature of the World Wide Web, and source code repositories are no exception. However, despite their many undisputed benefits, links can suffer from decay, insufficient versioning, and lack of bidirectional traceability. In this paper, we investigate the role of links contained in source code comments from these perspectives. We conducted a large-scale study of around 9.6 million links to establish their prevalence, and we used a mixed-methods approach to identify the links' targets, purposes, decay, and evolutionary aspects. We found that links are prevalent in source code repositories, that licenses, software homepages, and specifications are common types of link targets, and that links are often included to provide metadata or attribution. Links are rarely updated, but many link targets evolve. Almost 10% of the links included in source code comments are dead. We then submitted a batch of link-fixing pull requests to open source software repositories, resulting in most of our fixes being merged successfully. Our findings indicate that links in source code comments can indeed be fragile, and our work opens up avenues for future work to address these problems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。