论文标题

通过考虑设计缺陷,使用单词嵌入和卷积神经网络进行错误进行错误进行三障

Using Word Embedding and Convolution Neural Network for Bug Triaging by Considering Design Flaws

论文作者

Sepahvand, Reza, Akbari, Reza, Jamasb, Behnaz, Hashemi, Sattar, Boushehrian, Omid

论文摘要

在软件的维护阶段解决错误是一项复杂的任务。错误分配是解决错误的主要任务之一。如果没有做出设计决策,就无法正确修复某些错误,并且必须将其分配给设计师而不是程序员,以避免可能导致后续错误报告的新出现的坏气味。因此,重要的是要将一些错误转介给设计人员检查可能的设计缺陷。根据我们的最佳知识,有一些作品考虑将错误转介给设计师。因此,在这项工作中考虑了这个问题。在本文中,创建了一个数据集,并提出了一个基于CNN的模型,以通过了解有效地在代码中产生不良气味的错误报告的特殊性来预测将错误分配给设计人员的需求。每个错误的特征是根据其文本功能(例如摘要和描述)从CNN中提取的。使用PMD工具在修复过程中添加的不良样品数量确定了错误标签。新错误的摘要和描述是对模型进行的,该模型预测了参考设计师的需求。对于具有足够数量的基于深度学习的模型培训的数据集,数据集实现了75%(或更多)的准确性。提出了一个模型来预测对设计师的错误转介。通过在10个项目上测试模型,可以证明该模型在收到错误报告时预测推荐给设计人员的效率。

Resolving bugs in the maintenance phase of software is a complicated task. Bug assignment is one of the main tasks for resolving bugs. Some Bugs cannot be fixed properly without making design decisions and have to be assigned to designers, rather than programmers, to avoid emerging bad smells that may cause subsequent bug reports. Hence, it is important to refer some bugs to the designer to check the possible design flaws. Based on our best knowledge, there are a few works that have considered referring bugs to designers. Hence, this issue is considered in this work. In this paper, a dataset is created, and a CNN-based model is proposed to predict the need for assigning a bug to a designer by learning the peculiarities of bug reports effective in creating bad smells in the code. The features of each bug are extracted from CNN based on its textual features, such as a summary and description. The number of bad samples added to it in the fixing process using the PMD tool determines the bug tag. The summary and description of the new bug are given to the model and the model predicts the need to refer to the designer. The accuracy of 75% (or more) was achieved for datasets with a sufficient number of samples for deep learning-based model training. A model is proposed to predict bug referrals to the designer. The efficiency of the model in predicting referrals to the designer at the time of receiving the bug report was demonstrated by testing the model on 10 projects.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源