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

利用代码气味相关信息改进变化预测模型

Improving Change Prediction Models with Code Smell-Related Information

Gemma Catolino, Fabio Palomba, Francesca Arcelli Fontana, Andrea De Lucia, Andy Zaidman, Filomena Ferrucci

摘要:

代码气味代表了开发人员在开发软件系统时应用的次优实现选择。代码气味的负面影响在过去已经得到了广泛的研究:除了开发人员的生产力和理解源代码的能力之外,研究人员还根据经验表明,代码气味的存在严重影响了受影响类的更改倾向。基于这些研究结果,在本文中,我们推测,代码气味相关的信息可以有效地利用,以提高性能的变化预测模型,即模型的目标是,向开发人员指出哪些类更有可能在未来发生变化,使他们可以采取预防性维护行动。具体来说,我们利用所谓的强度指数-一个先前定义的度量,捕捉代码气味的严重程度-并评估其贡献时,添加作为额外的功能的上下文中的三个国家的最先进的变化预测模型的基础上的产品,过程和开发人员为基础的功能。我们还比较了所提出的模型实现的性能与一个替代技术,考虑到以前定义的反模式度量,即一组指标计算考虑历史的文件中的代码气味。我们的研究结果报告说,(i)强度包括模型的预测性能在统计上优于基线,(ii)强度是一个更强大的度量相对于替代气味相关的。

英文摘要:

Code smells represent sub-optimal implementation choices applied by developers when evolving software systems. The negative impact of code smells has been widely investigated in the past: besides developers' productivity and ability to comprehend source code, researchers empirically showed that the presence of code smells heavily impacts the change-proneness of the affected classes. On the basis of these findings, in this paper we conjecture that code smell-related information can be effectively exploited to improve the performance of change prediction models, ie models having as goal that of indicating to developers which classes are more likely to change in the future, so that they may apply preventive maintenance actions. Specifically, we exploit the so-called intensity index - a previously defined metric that captures the severity of a code smell - and evaluate its contribution when added as additional feature in the context of three state of the art change prediction models based on product, process, and developer-based features. We also compare the performance achieved by the proposed model with the one of an alternative technique that considers the previously defined antipattern metrics, namely a set of indicators computed considering the history of code smells in files. Our results report that (i) the prediction performance of the intensity-including models is statistically better than that of the baselines and (ii) the intensity is a more powerful metric with respect to the alternative smell-related ones.

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

↑