Machine learning for software engineering

The explosive growth of open-source repositories creates opportunities and challenges for Machine Learning for Software Engineering (ML4SE). Current methods struggle with: (i) code frequently reformatted or minified, obscuring stylistic signals; (ii) the lack of standardised benchmarks for repository recommendation; and (iii) the need to scale to billions of files in archives such as Software Heritage. Objectives. This thesis aims to (1) develop an authorship-attribution technique resilient to common code transformations, (2) conduct the first large-scale systematic mapping of repository-recommendation research, and (3) design a multi-label classifier that operates at archive scale. Methods. A language-agnostic stylometric representation based on Concrete Syntax Tree (CST) path-contexts is introduced, contrasted with Abstract Syntax Trees (ASTs). A systematic mapping study screens over 1 700 papers and distils 43 primary studies, revealing gaps in benchmark standardisation and scalability. To address these, DRAGON is proposed, a sentence-pair BERT model with focal loss and adaptive thresholding, trained on 825 k repositories and 239 GitRanking topics. Results. On untransformed code, CST-based stylometry lifts top-1 author-recognition accuracy from 51 % to 68 %, a 17 % absolute gain over AST baselines. After formatting or minification, recognition falls for both, yet CST still leads, showing the limited privacy such transformations afford. DRAGON raises F1@5 by 11 % over prior work and maintains this performance even when 34 % of projects lack a README. All datasets, model checkpoints, and evaluation scripts are released under permissive licences. Contributions. (i) A transformation-resilient stylometry pipeline; (ii) the largest systematic map of repository-recommendation research; (iii) the first repository classifier evaluated on Software-Heritage-scale data; and (iv) practical guidelines for representation, scale-aware engineering, and responsible deployment. Impact. The findings enable accurate topic tagging, strengthen forensic analysis, and guide ML4SE systems that keep pace with open-source ecosystem growth.

Publication Details

Journal
AMS Dottorato Institutional Doctoral Theses Repository (University of Bologna)
Published
2025-10-23
Primary Topic
Authorship Attribution and Profiling
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Machine learning for software engineering

AMS Dottorato Institutional Doctoral Theses Repository (University of Bologna)
Authorship Attribution and Profiling
article

Machine learning for software engineering

article en

Abstract

The explosive growth of open-source repositories creates opportunities and challenges for Machine Learning for Software Engineering (ML4SE). Current methods struggle with: (i) code frequently reformatted or minified, obscuring stylistic signals; (ii) the lack of standardised benchmarks for repository recommendation; and (iii) the need to scale to billions of files in archives such as Software Heritage. Objectives. This thesis aims to (1) develop an authorship-attribution technique resilient to common code transformations, (2) conduct the first large-scale systematic mapping of repository-recommendation research, and (3) design a multi-label classifier that operates at archive scale. Methods. A language-agnostic stylometric representation based on Concrete Syntax Tree (CST) path-contexts is introduced, contrasted with Abstract Syntax Trees (ASTs). A systematic mapping study screens over 1 700 papers and distils 43 primary studies, revealing gaps in benchmark standardisation and scalability. To address these, DRAGON is proposed, a sentence-pair BERT model with focal loss and adaptive thresholding, trained on 825 k repositories and 239 GitRanking topics. Results. On untransformed code, CST-based stylometry lifts top-1 author-recognition accuracy from 51 % to 68 %, a 17 % absolute gain over AST baselines. After formatting or minification, recognition falls for both, yet CST still leads, showing the limited privacy such transformations afford. DRAGON raises F1@5 by 11 % over prior work and maintains this performance even when 34 % of projects lack a README. All datasets, model checkpoints, and evaluation scripts are released under permissive licences. Contributions. (i) A transformation-resilient stylometry pipeline; (ii) the largest systematic map of repository-recommendation research; (iii) the first repository classifier evaluated on Software-Heritage-scale data; and (iv) practical guidelines for representation, scale-aware engineering, and responsible deployment. Impact. The findings enable accurate topic tagging, strengthen forensic analysis, and guide ML4SE systems that keep pace with open-source ecosystem growth.

AMS Dottorato Institutional Doctoral Theses Repository (University of Bologna)
Openalex Percentile: Top 19%
Authorship Attribution and Profiling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.