Saurabh Chopra measures how much repeated code a Git history contains and how often that code includes answers to evaluation tasks. Exact deduplication only recognizes identical copies. A later edit can change the rest of a file while leaving its benchmark fix intact.
- The median history held 19 times the latest code in a random sample of 306 active repositories. In 25 hand-picked mature projects, it held 89 times as much.
- Grouping near-copies left about twice the latest code. In the random sample, keeping the first version in the study’s hash-sorted input preserved the current file for 52% of paths. Choosing the newest raised that to 94%.
- Across 2,229 measured SWE-bench tasks, the median fix appeared in 18 later main-branch file versions that were distinct from the originally fixed file.
Caveat: The study measured text overlap. It did not train models, measure score inflation or track individual fixes through the deduplicator.
Choosing newer copies and keeping test answers out of training data solve different problems. Use a separate benchmark-overlap check on every retained version.