arrow
返回

Multi-granular software annotation using file-level weak labelling

delete2023-11-30
delete0
PRE
AI
C
Cezar Sas *
A
Andrea Capiluppi
DOI:10.1007/s10664-023-10423-7delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
ContextOne of the most time-consuming tasks for developers is the comprehension of new code bases. An effective approach to aid this process is to label source code files with meaningful annotations, which can help developers understand the content and functionality of a code base quicker. However, most existing solutions for code annotation focus on project-level classification: manually labelling individual files is time-consuming, error-prone and hard to scale.ObjectiveThe work presented in this paper aims to automate the annotation of files by leveraging project-level labels; and using the file-level annotations to annotate items at larger levels of granularity, for example, packages and a whole project.MethodWe propose a novel approach to annotate source code files using a weak labelling approach and a subsequent hierarchical aggregation. We investigate whether this approach is effective in achieving multi-granular annotations of software projects, which can aid developers in understanding the content and functionalities of a code base more quickly.ResultsOur evaluation uses a combination of human assessment and automated metrics to evaluate the annotations' quality. Our approach correctly annotated 50% of files and more than 50% of packages. Moreover, the information captured at the file-level allowed us to identify, on average, three new relevant labels for any given project. We can conclude that the proposed approach is a convenient and promising way to generate noisy (not precise) annotations for files. Furthermore, hierarchical aggregation effectively preserves the information captured at file-level, and it can be propagated to packages and the overall project itself.ConclusionsWe can conclude that the proposed approach is a convenient and promising way to generate noisy (not precise) annotations for files. Furthermore, hierarchical aggregation effectively preserves the information captured at file-level, and it can be propagated to packages and the overall project itself.
Keyword:
File-level labelling
Weak labelling
Software classification
Program comprehension

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
5.3K

机构

U
University of Groningen
学者数:
4.4W
论文数: 4.3W
被引数: 5.9W
引用论文

引用论文

Exceptionally preserved soft parts in fossils from the Lower Ordovician of Morocco clarify stylophoran affinities within basal deuterostomes
err2019-02-01
err0
errOAAI
errBertrand Lefebvre; Thomas E. Guensburg; Emmanuel L.O. Martin; Rich Mooi; Elise Nardin; Martina Nohejlová; Farid Saleh; Khaoula Kouraïss; Khadija El Hariri; Bruno David
err分享
err收藏
err分享
err收藏
3D Modeling of the Lateral Ventricles and Histological Characterization of Periventricular Tissue in Humans and Mouse
err2015-05-19
err0
errOAAI
errRebecca L. Acabchuk; Ye Sun; Richard Wolferz, Jr.; Matthew B. Eastman; Jessica B. Lennington; Brett A. Shook; Qian Wu; Joanne C. Conover
err分享
err收藏
Seasonal Indonesian Throughflow (ITF) across southern Java determines genetic connectivity of Sardinella lemuru (Bleeker, 1835)
err2023-06-01
err0
PREAI
errA. Sartimbul; V.A. Winata; R.D. Kasitowati; F. Iranawati; E. Rohadi; D. Yona; U.G. Anjeli; W.S. Pranowo; F.M. Lauro
err分享
err收藏
Sustainable use of sugarcane bagasse ash in cement-based materials
err2019-06-01
err0
PREAI
errPryscila Vinco Andreão; Ahmed R Suleiman; Guilherme Chagas Cordeiro; Moncef L Nehdi
err分享
err收藏
Measuring Program Comprehension: A Large-Scale Field Study with Professionals
err2018-10-01
err195
errOAAI
errXia, Xin; Bao, Lingfeng; Lo, David; Xing, Zhenchang; Hassan, Ahmed E.; Li, Shanping
err分享
err收藏
学者 查看更多内容