首页> 外文期刊>Arabian Journal for Science and Engineering >An Empirical Study on Using Class Stability as an Indicator of Class Similarity
【24h】

An Empirical Study on Using Class Stability as an Indicator of Class Similarity

机译:用类稳定性作为类相似性指标的实证研究

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

摘要

Software maintenance is an important software quality attribute. Many factors affect software maintenance, one of them being code cloning. Code clones are segments of code that are very similar. Software stability tends to measure the unchanged code elements. The objective of this paper is to find whether stability metrics can be used as an indicator of code structural similarity. I perform an empirical study to find the relationship between code similarity and stability at the class level. I also conduct clustering to classify stability and similarity metrics into different related groups. Finally, I perform principal component analysis to determine which class stability metrics have the strongest relationship with class similarity. In addition, I built a prediction model to predict class similarity using class stability metrics. The results show that the four investigated stability metrics have a significant relationship with similarity; however, the class stability metric (CSM) has the strongest correlation with code similarity. The clustering results also reveal that classes with high stability tend to have high similarity. In addition, I found that the CSM and class instability metric (CII) can both reveal 74.023% of class similarity. I conclude that stability metrics can be used as a good indicator of class similarity.
机译:软件维护是重要的软件质量属性。影响软件维护的因素很多,其中之一就是代码克隆。代码克隆是非常相似的代码段。软件稳定性往往会衡量未更改的代码元素。本文的目的是发现稳定性指标是否可以用作代码结构相似性的指标。我进行了一项实证研究,以发现类级别的代码相似性和稳定性之间的关系。我还进行聚类,以将稳定性和相似性指标分为不同的相关组。最后,我执行主成分分析,以确定哪些类稳定性度量与类相似性之间的关系最强。另外,我建立了一个预测模型,以使用类稳定性指标来预测类的相似性。结果表明,所研究的四个稳定性指标与相似性之间存在显着相关性。但是,类稳定性度量(CSM)与代码相似性具有最强的相关性。聚类结果还表明,具有高稳定性的类往往具有很高的相似性。另外,我发现CSM和类不稳定性度量(CII)都可以揭示类相似性的74.023%。我得出结论,稳定性指标可以用作类相似性的良好指标。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号