arrow
返回

Mining Task-Specific Lines of Code Counters

delete2023-01-01
delete0
delete
OA
AI
M
Mirosław Ochodek *
K
Krzysztof Durczak
J
Jerzy Nawrocki
M
Miroslaw Staron
DOI:10.1109/ACCESS.2023.3314572delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Context: Lines of code (LOC) is a fundamental software code measure that is widely used as a proxy for software development effort or as a normalization factor in many other software-related measures (e.g., defect density). Unfortunately, the problem is that it is not clear which lines of code should be counted: all of them or some specific ones depending on the project context and task in mind? Objective: To design a generator of task-specific LOC measures and their counters mined directly from data that optimize the correlation between the LOC measures and variables they proxy for (e.g., code-review duration). Method: We use Design Science Research as our research methodology to build and validate a generator of task-specific LOC measures and their counters. The generated LOC counters have a form of binary decision trees inferred from historical data using Genetic Programming. The proposed tool was validated based on three tasks, i.e., mining LOC measures to proxy for code readability, number of assertions in unit tests, and code-review duration. Results: Task-specific LOC measures showed a strong to very strong negative correlation with code-readability score (Kendall's $\tau $ ranging from -0.83 to -0.76) compared to weak to strong negative correlation for the best among the standard LOC measures ( $\tau $ ranging from -0.36 to -0.13). For the problem of proxying for the number of assertions in unit tests, correlation coefficients were also higher for task-specific LOC measures by ca. 11% to 21% ( $\tau $ ranged from 0.31 to 0.34). Finally, task-specific LOC measures showed a stronger correlation with code-review duration than the best among the standard LOC measures ( $\tau $ = 0.31, 0.36, and 0.37 compared to 0.11, 0.08, 0.16, respectively). Conclusions: Our study shows that it is possible to mine task-specific LOC counters from historical datasets using Genetic Programming. Task-specific LOC measures obtained that way show stronger correlations with the variables they proxy for than the standard LOC measures.
Keyword:
Software measurement
software size
lines of code
LOC

期刊

IEEE Access 封面图
IEEE Access
IF:
3.6
论文数:
9.8W
被引数:
29.4W

机构

P
Poznan University of Technology
学者数:
4.4K
论文数: 4.1K
被引数: 3
引用论文

引用论文

Theoretical study on the photodoping effects in La1–xSrx MnO3/SrNby Ti1–yO3 p–n heterojunction
err2009-07-03
err0
PREAI
errLeng Liao; Kui‐juan Jin; Hui‐bin Lu; Jie Qiu; Peng Han; Li‐li Zhang
err分享
err收藏
Lignocellulose‐degrading marine fungi
err2009-01-10
err0
PREAI
errS B Pointing; K D Hyde
err分享
err收藏
Ionic Liquids with Solvatochromatic and Charge-Transfer Functionalities Incorporating the Viologen Moiety
err2013-01-01
err0
PREAI
errH. Q. Nimal Gunaratne; Peter Nockemann; Sonia Olejarz; Stephanie M. Reid; Kenneth R. Seddon; Geetha Srinivasan
err分享
err收藏
err分享
err收藏
err分享
err收藏
Short and Long Term Variation in Ultraviolet Radiation and Multiple Sclerosis
err2012-02-24
err0
errOAAI
errCristina Menni; Walter E. Lowell; Joan Bentzen; Roberto Bergamaschi; Filippo Martinelli Boneschi; Vittorio Martinelli; Luisa Bernardinelli; Egon Stenager; George E. Davis; Luisa Foco
err分享
err收藏
Anterior Urethral Valve: A Rare Cause of Bilateral Hydronephrosis
err1962-04-01
err0
PREAI
errKeith Waterhouse; Louis J. Scordamaglia
err分享
err收藏
学者 查看更多内容