Git Blame Who?: Authorship Attribution of Writing Style for Short, Incomplete Source Code SnippetsGit Blame Who?: Stylistic Authorship Attribution of Small, Incomplete Source Code Fragments
AI summary
Researchers can effectively attribute short, incomplete and often non-compilable source code snippets to open-source contributor accounts. For 106 programmers, applying the prior-method baseline per sample gives an accuracy of about 73%, and after ensemble-averaging the classification probabilities of many samples from the same author, the accuracy of attributing a sample set to the correct author reaches 99%. The study also proposes using calibration curves to identify samples from unknown authors, choosing a cutoff point when there is no associated information to reduce most misclassifications, at the cost of rejecting some correct attributions.