作者
Xinglu Pan, Chenxiao Liu, Yanzhen Zou, Tao Xie, Bing Xie
发表日期
2024/3/26
期刊
arXiv preprint arXiv:2403.17357
简介
Code comments are important for developers in program comprehension. In scenarios of comprehending and reusing a method, developers expect code comments to provide supplementary information beyond the method signature. However, the extent of such supplementary information varies a lot in different code comments. In this paper, we raise the awareness of the supplementary nature of method-level comments and propose a new metric named MESIA (Mean Supplementary Information Amount) to assess the extent of supplementary information that a code comment can provide. With the MESIA metric, we conduct experiments on a popular code-comment dataset and three common types of neural approaches to generate method-level comments. Our experimental results demonstrate the value of our proposed work with a number of findings. (1) Small-MESIA comments occupy around 20% of the dataset …
学术搜索中的文章
X Pan, C Liu, Y Zou, T Xie, B Xie - Proceedings of the 32nd IEEE/ACM International …, 2024