...
首页> 外文期刊>Empirical Software Engineering >Classifying code comments in Java software systems
【24h】

Classifying code comments in Java software systems

机译:在Java软件系统中对代码注释进行分类

获取原文
获取原文并翻译 | 示例
           

摘要

Code comments are a key software component containing information about the underlying implementation. Several studies have shown that code comments enhance the readability of the code. Nevertheless, not all the comments have the same goal and target audience. In this paper, we investigate how 14 diverse Java open and closed source software projects use code comments, with the aim of understanding their purpose. Through our analysis, we produce a taxonomy of source code comments; subsequently, we investigate how often each category occur by manually classifying more than 40,000 lines of code comments from the aforementioned projects. In addition, we investigate how to automatically classify code comments at line level into our taxonomy using machine learning; initial results are promising and suggest that an accurate classification is within reach, even when training the machine learner on projects different than the target one. Data and Materials [10.5281/zenodo.2628361].
机译:代码注释是关键的软件组件,其中包含有关基础实现的信息。多项研究表明,代码注释增强了代码的可读性。但是,并非所有评论都具有相同的目的和目标受众。在本文中,我们研究了14个不同的Java开放源代码和封闭源代码软件项目如何使用代码注释,以了解其目的。通过我们的分析,我们得出了源代码注释的分类法;随后,我们通过手动分类上述项目中的40,000多行代码注释来调查每种类别的发生频率。此外,我们研究了如何使用机器学习将行级别的代码注释自动分类到我们的分类法中。初步结果令人鼓舞,并表明即使在对机器学习者进行不同于目标项目的培训时,也可以进行准确的分类。数据和材料[10.5281 / zenodo.2628361]。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号