Git2KG: Mining socio-technical relationships in GitHub repositories as temporal knowledge graphs
Lennart Hessenauer, Lisi Qarkaxhija, Ingo Scholtes
Abstract
The widespread use of Git and GitHub in open source software (OSS) projects has produced large volumes of data on collaborative software development. Existing approaches to mine those data often use graph models to (i) capture communication between developers in the issue tracker, or (ii) represent developer-developer co-authorship or developer-file code ownership networks from the editing history of code artifacts. Integrating these data in a single knowledge graph (KG) is complicated by the need to disambiguate authors and match entities from multiple sources. Moreover, most works using network analysis have taken a time-aggregated perspective that neglects temporal dynamics of collaborations. To address these issues, we present Git2KG, an extensible Python library that mines temporal knowledge graphs (TKGs) from GitHub repositories. Git2KG extracts fine-grained co-editing relations and code ownership from the Git log. It further disambiguates developer identities to align the resulting graphs with management and communication networks extracted from GitHub issue trackers. Git2KG supports temporal analysis by slicing development events into fixed-size, non-overlapping time windows, yielding a series of knowledge graph snapshots per repository. It further supports computing node features and labels for downstream machine learning tasks. Snapshots can then be exported to PyTorch Geometric, PathPyG, and NetworkX for temporal network analysis, visualization, and graph learning.
Create a lesson
Related papers
Mining Unity VR Repositories for Refactoring Patterns and Technical Debt
Shared title terminology · Faraz Gurramkonda, Neeraj RandhirSingh Saini, Michael Gharbieh et al.
Robo-SWE: An Executable Issue-Resolution Dataset Mined from Robot Software Repositories
Shared title terminology · Vahid Haratian, Vahid Ansari, Mohammadhossein Malmir et al.
OpenRE-Bench: A Benchmark Harness for Multi-Agent Requirements Engineering with Mined GitHub Issues
Shared title terminology · Haowei Cheng, Milhan Kim, Bowen Jiang et al.
SWE-Time: Benchmarking Temporal Repository Understanding
Shared title terminology · Shijun Xiao, Xinrong Chen, Hao Liu et al.
Agents on the Patch Path: Mining AI-Associated Security Remediation in GitHub Security Advisories
Shared title terminology · Claudio Segal, Paulo Segal, Hudson Silva Borges et al.
Characterizing GitHub Security Actions Alerts For Web Application Tutorials
Shared title terminology · Bhagya Chembakottu, Martin P. Robillard