Identifying collaborators in large codebases

Waren Long, Vadim Markovtsev, Hugo Mougard, Egor Bulychev, Jan HulaarXiv 2019

Abstract

The way developers collaborate inside and particularly across teams often escapes management's attention, despite a formal organization with designated teams being defined. Observability of the actual, organically formed engineering structure provides decision makers invaluable additional tools to manage their talent pool. To identify existing inter and intra-team interactions - and suggest relevant opportunities for suitable collaborations - this paper studies contributors' commit activity, usage of programming languages, and code identifier topics by embedding and clustering them. We evaluate our findings collaborating with the GitLab organization, analyzing 117 of their open source projects. We show that we are able to restore their engineering organization in broad strokes, and also reveal hidden coding collaborations as well as justify in-house technical decisions.

Introduction

In large software organizations, the formal hierarchy—the official reporting structure—rarely captures the full complexity of how work is actually executed. "Horizontal" relationships, where developers from disparate teams collaborate on interdependent features or provide cross-functional support, often remain invisible to management. This lack of visibility complicates strategic planning, hiring, and the understanding of a company's organic engineering structure. This research aims to bridge this gap by analyzing the "digital exhaust" of software development—git commits and source code—to identify true collaborative patterns and technical domain ownership.

Methodology

The study employs a three-pronged analysis to characterize developer behavior and expertise:

  1. Commit Time Series Alignment: Assuming that team members or those working on shared features commit code at correlated times, the researchers used Fast Dynamic Time Warping (DTW) to measure distances between developers' commit frequencies. These were then clustered using DBSCAN and visualized via UMAP.
  2. Programming Language Usage: Contributors were grouped based on the languages they utilize and the nature of their contributions (additions vs. deletions). K-Means clustering was applied to identify groups with similar technical stacks, such as frontend versus backend specializations.
  3. Source Code Identifiers (Topic Modeling): To capture the semantic nature of a developer's work, code identifiers (variable and function names) were treated as a "bag of words." Using TF-IDF and Additive Regularization of Topic Models (ARTM), the authors extracted latent topics to label developers by domain, such as "Database" or "UI/CSS."
Table showing the mapping of official GitLab teams to functional categories and the semantic topic labels derived from code identifiers.

To ensure data integrity, the researchers utilized tools like Hercules and Gitbase to aggregate multiple email identities into single, unified developer profiles.

Experimental Setup

The methodology was evaluated using the GitLab organization’s extensive open-source ecosystem. The dataset spanned 117 repositories and 145 programming languages, comprising over 12 million lines of code. The analysis included 2,956 total contributors, of which 210 were verified GitLab employees across 37 distinct teams. Validation was performed by comparing the resulting clusters against GitLab’s publicly available team.yml file, which served as the ground truth for formal organizational structure.

Results and Discussion

The analysis yielded several key insights into the organic structure of the GitLab engineering organization:

  • Temporal Synchronization: Commit time series alignment effectively distinguished internal employees from external community contributors. Employees' activities were highly synchronized with company cycles, whereas external contributors appeared as outliers or "noise" in temporal clusters.
  • The Cross-Functional "Elite": One specific cluster grouped high-frequency committers from across the entire company, including the CEO. This suggests the existence of a highly active, cross-functional layer of collaboration that transcends official team boundaries.
  • Technical Migrations: The language-based clustering successfully traced GitLab’s strategic transition from Ruby to Go, highlighting which teams were at the forefront of this backend conversion.
  • Team Reconstruction: Topic modeling showed a strong correlation with official teams. Developers sharing a primary topic were found in significantly fewer clusters than expected by random chance, proving the semantic clusters were functionally meaningful.
UMAP visualizations showing (a) cluster indexes, (b) official engineering teams, (c) top programming languages, and (d) the separation of internal employees from external contributors.

Visualization using UMAP provided a literal map of the organization, where internal teams formed distinct "colored islands" surrounded by a cloud of external contributors.

Conclusion

While the study successfully reconstructed functional teams and identified hidden collaborations, challenges remain in algorithmic identity matching across multiple Git signatures. Future work could expand this analysis by including developers' contributions to external open-source projects to provide a more holistic view of their skill sets. Additionally, moving from a static snapshot to a longitudinal study could reveal how engineering structures evolve as a company scales from a startup to a large enterprise.

Summary updated

BibTeX
@misc{long2019identifying,
  author = {Waren Long and Vadim Markovtsev and Hugo Mougard and Egor Bulychev and Jan Hula},
  title = {{Identifying collaborators in large codebases}},
  year = {2019},
  eprint = {1905.06782},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.06782},
}
Figure