当前位置: X-MOL 学术Int. J. Softw. Eng. Knowl. Eng. › 论文详情
Our official English website, www.x-mol.net, welcomes your feedback! (Note: you will need to create a separate account there.)
Supporting Requirements to Code Traceability Creation by Code Comments
International Journal of Software Engineering and Knowledge Engineering ( IF 0.9 ) Pub Date : 2021-09-14 , DOI: 10.1142/s0218194021500340
Guohua Shen 1 , Haijuan Wang 2 , Zhiqiu Huang 1 , YaoShen Yu 2 , Kai Chen 2
Affiliation  

Requirements-to-code tracing is an important and costly task that creates trace links from requirements to source code. These trace links help engineers reduce the time and complexity of software maintenance. Code comments play an important role in software maintenance tasks. However, few studies have focused intensively on the impact of code comments on requirements-to-code trace links creation. Different types of comments have different purposes, so how different types of code comments provide different improvements for requirements-to-code trace links creation? We focus on learning whether code comments and different types of comments can improve the quality of trace links creation. This paper presents a study to evaluate the contribution of code comments and different types of code comments to the creation of trace links. More specifically, this paper first experimentally evaluates the impact of code comments on requirements-to-code trace links creation, and then divides code comments into six categories to evaluate its impact on trace links creation. The results show that the precision increases by an average of 15% (based on the same recall) after adding code comments (even for different trace links creation techniques), and the type of Purpose comments contributes more to the tracing task than the other five. This empirical study provides evidence that code comments are effective in tracing links creation, and different types of code comments contribute differently. Purpose comments can be used to improve the accuracy of requirements-to-code trace links creation.

中文翻译:

支持通过代码注释创建代码可追溯性的要求

需求到代码跟踪是一项重要且成本高昂的任务,它创建了从需求到源代码的跟踪链接。这些跟踪链接帮助工程师减少软件维护的时间和复杂性。代码注释在软件维护任务中起着重要作用。然而,很少有研究集中关注代码注释对需求到代码跟踪链接创建的影响。不同类型的注释有不同的用途,那么不同类型的代码注释如何为需求到代码跟踪链接的创建提供不同的改进呢?我们专注于学习代码注释和不同类型的注释是否可以提高跟踪链接创建的质量。本文提出了一项研究,以评估代码注释和不同类型的代码注释对创建跟踪链接的贡献。进一步来说,本文首先通过实验评估代码注释对需求到代码跟踪链接创建的影响,然后将代码注释分为六类来评估其对跟踪链接创建的影响。结果表明,在添加代码注释后(即使对于不同的跟踪链接创建技术),精度平均提高了 15%(基于相同的召回率),并且目的注释的类型对跟踪任务的贡献比其他五个更大. 这项实证研究提供了代码注释在跟踪链接创建方面是有效的证据,并且不同类型的代码注释贡献不同。目的注释可用于提高需求到代码跟踪链接创建的准确性。然后将代码注释分为六类来评估其对跟踪链接创建的影响。结果表明,在添加代码注释后(即使对于不同的跟踪链接创建技术),精度平均提高了 15%(基于相同的召回率),并且目的注释的类型对跟踪任务的贡献比其他五个更大. 这项实证研究提供了代码注释在跟踪链接创建方面是有效的证据,并且不同类型的代码注释贡献不同。目的注释可用于提高需求到代码跟踪链接创建的准确性。然后将代码注释分为六类来评估其对跟踪链接创建的影响。结果表明,在添加代码注释后(即使对于不同的跟踪链接创建技术),精度平均提高了 15%(基于相同的召回率),并且目的注释的类型对跟踪任务的贡献比其他五个更大. 这项实证研究提供了代码注释在跟踪链接创建方面是有效的证据,并且不同类型的代码注释贡献不同。目的注释可用于提高需求到代码跟踪链接创建的准确性。结果表明,在添加代码注释后(即使对于不同的跟踪链接创建技术),精度平均提高了 15%(基于相同的召回率),并且目的注释的类型对跟踪任务的贡献比其他五个更大. 这项实证研究提供了代码注释在跟踪链接创建方面是有效的证据,并且不同类型的代码注释贡献不同。目的注释可用于提高需求到代码跟踪链接创建的准确性。结果表明,在添加代码注释后(即使对于不同的跟踪链接创建技术),精度平均提高了 15%(基于相同的召回率),并且目的注释的类型对跟踪任务的贡献比其他五个更大. 这项实证研究提供了代码注释在跟踪链接创建方面是有效的证据,并且不同类型的代码注释贡献不同。目的注释可用于提高需求到代码跟踪链接创建的准确性。
更新日期:2021-09-14
down
wechat
bug