Learning developer style: a stylometric framework for attribution, detection, and profiling
Loading...
Date
Publisher
BRAC University
Citation
Abstract
Code Stylometry applied to source code is the task of revealing the author or source
of a source code file, based on style and structure. Authorship verification has grown
to be of great significance with the emergence of the open-source code and issues of
plagiarism. This paper gives us a composite research on code stylometry consisting
of extensive experimentation on more than 3.2 million Python source code files. To
make upstream features well-suited for style tasks, we build a pipeline which extracts
both low-level (e.g. token-level, syntax) and high-level (e.g. structural, behavioral)
styles. Putting the code snippets in groups according to their author, we will collect
a set of more than 44,000 different author styles. We use and test a number of
machine learning and deep learning models to predict metadata and notice how
stylometry features correlate with metadata. Our pipeline will analyze the coding
style of the author in every code and the outcome proves that authorial fingerprinting
is attainable with immense precision concerning varying pieces of code. In addition,
we evaluated the similarity of coding style among authors by using the stylometric
features which were provided by our pipeline. Our model offers a modular system
on which future tasks, like plagiarism detection, authorship attribution or codegeneration/
mimicking based on a style can be built upon. This contribution provides
a solid methodology, a large stylometric datasets, and high-quality baselines, which
will enable future line of research on in-secure-code forensics and author-independent
intelligent code-generators.
LC Subject Headings
Description
Cataloged from PDF version of thesis.
Includes bibliographical references (pages 41-42).
This thesis is submitted in partial fulfillment of the requirements for the degree of Bachelor of Science in Computer Science and Engineering, 2025.
Includes bibliographical references (pages 41-42).
This thesis is submitted in partial fulfillment of the requirements for the degree of Bachelor of Science in Computer Science and Engineering, 2025.
Publisher Link
Type
Thesis