Answers are grounded in this paper and cite their sources.
Machine learning evaluation demonstrates improved code readability assessment across GitHub repositories, indicating the value of modeling developer coding styles.
Automated code readability assessment is essential for software maintenance and evolution. Current approaches mainly rely on structural, syntactic, and semantic features of individual code files to perform assessment, yet they ignore repository‐level relational information. A critical missing dimension is the contribution relationships between developers and the code files they modify within a repository, which reflect individualized coding style consistency across files. To mitigate this research gap, we formally define and model the developer‐code contribution relationships (DCR) for code readability assessment. We first build a heterogeneous graph, where nodes represent developers and code files, and weighted edges quantify developers' contribution ratios. On top of this graph, we adopt a heterogeneous graph attention network (HAN) to learn relational embeddings, which capture cross‐file readability similarities caused by common developers. We then combine the learned relational embeddings with high‐quality features from state‐of‐the‐art pretrained code readability models to complete the readability assessment. Evaluated on a real GitHub repository dataset, our method delivers stable performance improvements over existing baselines. Extensive experiments also verify that the DCR feature maintains strong generalizability across various graph neural network architectures. This study demonstrates that exploiting repository‐level developer‐code relations is a promising direction to further boost the performance of automated code readability assessment.
No takes yet. Share an insight, caveat, or question.
Mi et al. (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: