An Empirical Study of Code Clone Genealogies in Human–AI Collaborative Development
Authors/Creators
Description
This repository contains the replication package for the paper “Code Clone Genealogy in Human–Agent Collaborative Software Projects”, which investigates how code clone genealogy evolves in projects where developers actively collaborate with coding agents powered by Large Language Models (LLMs).
Code clones are two or more identical or similar code snippets. Their presence can harm maintainability because changes often need to be applied consistently across multiple locations, increasing the risk of inconsistent modifications. To understand how clones evolve over time, we rely on code clone genealogy, which captures the evolutionary history of duplicated snippets by linking them across successive versions of a software system, forming clone lineages.
When comparing two consecutive versions within a lineage, we characterize how clones evolve through two complementary perspectives:
-
Change Patterns: modifications to the code snippets inside an existing clone.
-
Evolution Patterns: additions or removals of code snippets that compose a clone across versions.
We analyzed 350 code clone lineages across 6 human–agent collaborative projects. Humans introduced most clones (85.71%) compared to agents (14.29%). Although clone survival rates were similar (humans 80%, agents 76%), maintenance differs: humans predominantly maintain lineages created by agents, based on Change and Evolution Patterns. Overall, humans remain essential for the long-term evolution of agent-assisted code.
This replication package is intended to support reproducibility, enabling other researchers to re-run the analyses, validate the results, and extend the study to additional projects, datasets, or collaboration settings.
Files
README.md
Files
(192.1 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:69a5149903b7d7fddb6e94af6cd11e87
|
13 Bytes | Download |
|
md5:9ca8fbe0a9e4921d574390cd8fa168a0
|
856 Bytes | Download |
|
md5:b7a2e4924d0a782a401dc8acf5ee50d2
|
2.3 kB | Download |
|
md5:386453c210898b667c8f356915330924
|
1.1 kB | Download |
|
md5:ee447753fdee8fa0d596408239502e66
|
179.9 kB | Download |
|
md5:316571cdbbf98d22b966ee009ece1983
|
32 Bytes | Download |
|
md5:c9134b1adc5c02ed665a97ce334accb4
|
648 Bytes | Download |
|
md5:bbed2042ce04fa63688a3e50b64f58d5
|
7.2 kB | Preview Download |
Additional details
Dates
- Created
-
2026-01-26
Software
- Repository URL
- https://github.com/denisousa/Mining-Challenge-MSR-2026
- Programming language
- Python