공유 커밋을 기반으로 커뮤니티 탐지 접근법을 통해 식별된 관련 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 에 기반하며, 두 커밋이 독립적으로 생성될 확률은 매우 낮다. 따라서 공유 커밋은 클론된 저장소를 그룹화하고 해당 저장소에 대한 정확한 지도를 얻는 데 매우 효과적인 방법이다. 우리는 약 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.