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

GitHub仓库中有什么?对10000个项目内容的实证研究

What's Inside a GitHub Repository? An Empirical Study on the Contents of 10K Projects

DCC, UFMG(联邦米纳斯吉拉斯大学计算机系);REALISE Lab, Concordia University(康科迪亚大学)

Andre Hora, João Eduardo Montandon, Diego Elias Costa

AI总结:

本文通过分析10000个GitHub仓库的文件和目录,揭示了过去十年仓库内容的变化,包括README.md标准化、GitHub Actions兴起、配置格式演变及生成式AI相关内容的增长。

摘要:

GitHub是最大的代码托管平台,拥有数百万个涵盖多种技术的仓库。尽管如此,关于实际仓库内容的了解仍有限。本文进行了初步实证分析,以更好地理解真实GitHub仓库的内容。我们分析了10000个GitHub仓库中的文件、目录和扩展及其十年间的变化。我们的结果表明,过去十年GitHub发生了重大变化:(1)README.md、.gitignore和LICENSE等标准文件的整合;(2)GitHub Actions作为主导的CI/CD平台的兴起;(3)TOML、YAML和JSON等配置格式的增长,以及XML的下降;(4)Dockerfile等新趋势的增长;(5)与LLM和生成式AI相关的新内容(如AGENTS.md)。基于这些发现,我们讨论了影响,包括开源不仅在有机发展,而且越来越受到GitHub标准的引导,技术的兴衰以及软件仓库研究的潜在支持。

英文摘要:

GitHub is the largest code hosting platform, with millions of repositories spanning multiple technologies. Despite this, little is known about the actual contents of GitHub's repositories in the wild. This paper presents an initial empirical analysis to better understand the contents of real-world GitHub repositories. We analyze the files, directories, and extensions present in 10,000 GitHub repositories, as well as their evolution over ten years. Our results show major changes in GitHub over the last decade: (1) the consolidation of README.md, .gitignore, and LICENSE as standard artifacts; (2) the rise of GitHub Actions as the dominant CI/CD platform; (3) the growth of configuration formats such as TOML, YAML, and JSON, alongside a decline in XML; (4) new trends, such as the growth of Dockerfile; and (5) emerging content related to LLMs and generative AI (e.g., AGENTS.md and CLAUDE.md). Based on our findings, we discuss implications, including that open source is not only evolving organically but also increasingly guided by GitHub's standards, the rise and fall of technologies, and the potential support for mining software repository studies.

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

↑