共有コミットに基づくコミュニティ検出手法を用いた関連する Git リポジトリの完全なセットの特定
A Complete Set of Related Git Repositories Identified via Community Detection Approaches Based on Shared Commits
A Complete Set of Related Git Repositories Identified via Community Detection Approaches Based on Shared Commits
@misc{mockus2020a,
title = {A Complete Set of Related Git Repositories Identified via Community Detection Approaches Based on Shared Commits},
author = {Audris Mockus and Diomidis Spinellis and Zoe Kotti and Gabriel John Dusing},
year = {2020},
eprint = {2002.02707},
archivePrefix = {arXiv},
primaryClass = {cs.SI},
url = {https://arxiv.org/abs/2002.02707}
}
Mockus, A., Spinellis, D., Kotti, Z., & Dusing, G. J. (2020). A Complete Set of Related Git Repositories Identified via Community Detection Approaches Based on Shared Commits [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2002.02707
MOCKUS A, SPINELLIS D, KOTTI Z, et al. A Complete Set of Related Git Repositories Identified via Community Detection Approaches Based on Shared Commits[EB/OL]. (2020-02-07)[2026-11-30]. https://arxiv.org/abs/2002.02707.
要旨
オープンソースソフトウェア全体の状態と進化を理解するためには、個々のソフトウェアプロジェクトのセットを把握する必要があります。現在、多くのオープンソースプロジェクトは、クローン作成が容易であり、親リポジトリからクローンされたものとしてほぼ完全に依存する多数のリポジトリを生成する分散型バージョン管理システム Git を利用しています。Git コミットは Merkle Tree に基づいており、2 つのコミットが独立して生成される可能性は極めて低いです。したがって、共有コミットはクローンされたリポジトリをグループ化し、そのようなリポジトリの正確なマッピングを取得するための優れた方法であると考えられます。私たちは、約 20 億のコミットと 1 億のリポジトリを含む World of Code インフラストラクチャを使用して、このようなマッピングを作成・共有しました。その結果、最も大きなグループには約 1400 万のリポジトリが含まれており、それらは互いに無関係であることが判明しました。実際には、開発者は任意のリポジトリに Git オブジェクトをプッシュしたり、無関係なリポジトリからオブジェクトをプルしたりすることで、無関係なリポジトリをリンクさせることができます。これを解決するために、コミットとプロジェクト間のリンクからなるこの非常に大きなグラフに対して、Louvain コミュニティ検出アルゴリズムを適用しました。このアプローチにより、最も大きなグループの高度に相互接続されたプロジェクトを含むメガクラスターのサイズが 10 万リポジトリ未満に減少しました。我々は、生成された関連プロジェクトのマップ、および非常に大きなグラフを処理するためのツールと手法が、ソフトウェアプロジェクトのマイニングおよび他のアプリケーションの参考セットとして機能すると期待しています。さらに、共有コミットや共有ソースコード、類似のファイル名などによって誘発されるプロジェクト間の異なる種類の関係性を決定するために、さらなる作業が必要です。
In order to understand the state and evolution of the entirety of open source software we need to get a handle on the set of distinct software projects. Most of open source projects presently utilize Git, which is a distributed version control system allowing easy creation of clones and resulting in numerous repositories that are almost entirely based on some parent repository from which they were cloned. Git commits are based on Merkle Tree and two commits are highly unlikely to be produced independently. Shared commits, therefore, appear like an excellent way to group cloned repositories and obtain an accurate map for such repositories. We use World of Code infrastructure containing approximately 2B commits and 100M repositories to create and share such a map. We discover that the largest group contains almost 14M repositories most of which are unrelated to each other. As it turns out, the developers can push git object to an arbitrary repository or pull objects from unrelated repositories, thus linking unrelated repositories. To address this, we apply Louvain community detection algorithm to this very large graph consisting of links between commits and projects. The approach successfully reduces the size of the megacluster with the largest group of highly interconnected projects containing under 100K repositories. We expect the tools that the resulting map of related projects as well as tools and methods to handle the very large graph will serve as a reference set for mining software projects and other applications. Further work is needed to determine different types of relationships among projects induced by shared commits and other relationships, for example, by shared source code or similar filenames.