...
首页> 外文期刊>Information and software technology >An empirical study on clone consistency prediction based on machine learning
【24h】

An empirical study on clone consistency prediction based on machine learning

机译:基于机器学习的克隆一致性预测的实证研究

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

获取外文期刊封面封底 >>

       

摘要

Context: Code Clones have been accepted as a common phenomenon in software, thanks to the increasing demand for rapid production of software. The existence of code clones is recognized by developers in the form of clone group, which includes several pieces of clone fragments that are similar to one another. A change in one of these clone fragments may indicate necessary & ldquo;consistent changes & rdquo;are required for the rest of the clones within the same group, which can increase extra maintenance costs. A failure in making such consistent change when it is necessary is commonly known as a & ldquo;clone consistency-defect & rdquo;, which can adversely impact software maintainability. Objective: Predicting the need for & ldquo;clone consistent changes & rdquo;after successful clone-creating or clone-changing operations can help developers maintain clone changes effectively, avoid consistency-defects and reduce maintenance cost.Method: In this work, we use several sets of attributes in two scenarios of clone operations (clone-creating and clone-changing), and conduct an empirical study on five different machine-learning methods to assess each of their clone consistency predictability & mdash; whether any one of the clone operations will require or be free of clone consistency maintenance in future.Results: We perform our experiments on eight open-source projects. Our study shows that such predictions can be reasonably effective both for clone-creating and changing operating instances. We also investigate the use of five different machine-learning methods for predictions and show that our selected features are effective in predicting the needs of consistency-maintenance across all selected machine-learning methods.Conclusion: The empirical study conducted here demonstrates that the models developed by different machine-learning methods with the specified sets of attributes have the ability to perform clone-consistency prediction.
机译:背景信息:由于对快速生产软件的需求不断增加,代码克隆被接受为软件中的常见现象。代码克隆的存在是由克隆组形式的显影剂识别,其包括彼此类似的几片克隆片段。这些克隆片段之一的变化可以表明必要和LDQUO;一致的变化和rdquo;是同一组内的其余克隆所必需的,这可以提高额外的维护成本。在必要时进行如此一致的变化的故障通常被称为A“克隆一致性缺陷”,这可能会对软件可维护性产生不利影响。目标:预测&ldquo的需求;克隆一致的变化和rdquo;经过成功的克隆创造或克隆改变的操作可以帮助开发人员有效地保持克隆,避免一致缺陷并减少维护成本。在这项工作中,我们使用几组克隆操作场景中的属性(克隆创建和克隆变化),并对五种不同的机器学习方法进行实证研究,以评估其克隆一致性可预测性和MDASH的每个不同的机器学习方法;未来是否需要任何一个克隆操作或没有克隆一致性维护。结果:我们在八个开源项目上执行我们的实验。我们的研究表明,这种预测可以合理有效,用于克隆创建和改变的操作实例。我们还调查使用五种不同的机器学习方法进行预测,并表明我们所选功能有效地预测所有选定的机器学习方法的一致性维护需求。结论:这里进行的实证研究表明模型开发的模型通过不同的机器学习方法,具有指定的属性集具有执行克隆一致性预测的能力。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号