As described in GitClear's research into the impact of AI-generated code on code quality, there has been a sharp increase in Copy/Pasted code since 2023. Correspondingly, there has been a dip in Moved code. The combination of these trends does not bode well for the long-term health of repos.


A troubling trend at hand for future code maintainers: less Moved code, more Copy/Pasted


Our research (available free/immediately for logged in users) explains the specific reasons that "Moved code" is often healthy (suggestive of refactoring) and why duplicated code implies future maintenance headaches.


Here's how you can check the percentages of these code lines within your own team, and how you can reference your own progress against top-performing and median-level comparables.


linkViewing Copy/Paste and Move percent

Within the "Issues & Quality" tab, you can scroll down to find a graph labeled "Copy/Paste & Moved Percent." If you click on the title of the graph, it will expand:


By visiting "Issues & Quality," you can click the "Copy/Paste and Moved percent" to get a zoomed in graph like this


In the case of the repos and time range for this graph, the team averaged about 22-25% of their changed lines being "Moves," and around 5% of their changed lines being "Copy/Paste." This compares favorably to the industry averages, which, for the time period examined, are ~10% Copy/Paste and ~13% Moved.