Git Blame Who?: Stylistic Authorship Attribution of Small, Incomplete Source Code Fragments
Not on the map. Why?
Abstract (arXiv)
Program authorship attribution has implications for the privacy of programmers who wish to contribute code anonymously. While previous work has shown that complete files that are individually authored can be attributed, we show here for the first time that accounts belonging to open source contributors containing short, incomplete, and typically uncompilable fragments can also be effectively attributed. We propose a technique for authorship attribution of contributor accounts containing small source code samples, such as those that can be obtained from version control systems or other direct comparison of sequential versions. We show that while application of previous methods to individual small source code samples yields an accuracy of about 73% for 106 programmers as a baseline, by ensembling and averaging the classification probabilities of a sufficiently large set of samples belonging to the same author we achieve 99% accuracy for assigning the set of samples to the correct author. Through these results, we demonstrate that attribution is an important threat to privacy for programmers even in real-world collaborative environments such as GitHub. Additionally, we propose the use of calibration curves to identify samples by unknown and previously unencountered authors in the open world setting. We show that we can also use these calibration curves in the case that we do not have linking information and thus are forced to classify individual samples directly. This is because the calibration curves allow us to identify which samples are more likely to have been correctly attributed. Using such a curve can help an analyst choose a cut-off point which will prevent most misclassifications, at the cost of causing the rejection of some of the more dubious correct attributions.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). First posted on arXiv 20 Jan 2017.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 2; 2023: 1; 2024: 1; 2025: 0; 2026: 3.
7 papers.
- 2022RoPGen: Towards Robust Code Authorship Attribution via Automatic Coding Style Transformationcited by 15
- 2023COMEX: A Tool for Generating Customized Source Code Representationscited by 3
- 2024HALvest-Contrastive: Retrieval-Like Authorship Attribution with Patch-Level Late Interactioncited by 1
- 2022I still know it's you! On Challenges in Anonymizing Source Codecited by 0
- 2026VulStyle: A Multi-Modal Pre-Training for Code Stylometry-Augmented Vulnerability Detectioncited by 0
- 2026Where Does Authorship Signal Emerge in Encoder-Based Language Models?cited by 0
- 2026Stylometric Defenses Against Author Impersonation in Software Repositoriescited by 0
- 2026Stylometric Defenses Against Author Impersonation in Software Repositories3 Aug 2026
- 2026Where Does Authorship Signal Emerge in Encoder-Based Language Models?19 May 2026
- 2026VulStyle: A Multi-Modal Pre-Training for Code Stylometry-Augmented Vulnerability Detection29 Apr 2026
- 2024HALvest-Contrastive: Retrieval-Like Authorship Attribution with Patch-Level Late Interaction30 Jul 2024
- 2023COMEX: A Tool for Generating Customized Source Code Representations10 Jul 2023
- 2022I still know it's you! On Challenges in Anonymizing Source Code26 Aug 2022
- 2022RoPGen: Towards Robust Code Authorship Attribution via Automatic Coding Style Transformation12 Feb 2022