arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1902.03222cs.SE
收藏

基于多标记分类的代码错误检测

Code Smell Detection using Multilabel Classification Approach

Thirupathi Guggulothu

摘要:

代码气味是软件的特征,表明代码或设计问题,这些问题可能使软件难以理解,发展和维护。文献中提出的代码气味检测工具产生不同的结果,因为气味是非正式定义的,或者本质上是主观的。为了解决工具主观性的问题,已经提出了机器学习技术,其可以学习和区分有气味和无气味的源代码元素(类或方法)的特征。然而,现有的机器学习技术只能检测代码元素中的单一类型的气味,其不对应于真实世界场景。在本文中,我们已经使用多标签分类方法来检测是否给定的代码元素受到多种气味或没有。我们考虑了两个代码气味数据集,并将它们转换为多标签数据集。在我们的实验中,两种多标签方法在转换后的数据集上执行,在10倍交叉验证中表现出良好的性能,使用10次重复。

英文摘要:

Code smells are characteristics of the software that indicates a code or design problem which can make software hard to understand, evolve, and maintain. The code smell detection tools proposed in the literature produce different results, as smells are informally defined or are subjective in nature. To address the issue of tool subjectivity, machine learning techniques have been proposed which can learn and distinguish the characteristics of smelly and non-smelly source code elements (classes or methods). However, the existing machine learning techniques can only detect a single type of smell in the code element which does not correspond to a real-world scenario. In this paper, we have used multilabel classification methods to detect whether the given code element is affected by multiple smells or not. We have considered two code smell datasets for this work and converted them into a multilabel dataset. In our experimentation, Two multilabel methods performed on the converted dataset which demonstrates good performances in the 10-fold cross-validation, using ten repetitions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑