首页> 外文期刊>Journal of Software Maintenance and Evolution >An empirical study on how project context impacts on code cloning
【24h】

An empirical study on how project context impacts on code cloning

机译:关于项目上下文如何影响代码克隆的实证研究

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

摘要

Code cloning can seriously affect software quality. Code clones are various fragments of syntactically or semantically equivalent code. Some authors argue that code clones have a negative impact on maintainability and understandability, since clones propagate defects and make it mandatory to pay attention to several copies. However, other authors believe clones are not necessarily bad, since self‐admitted clones favor system stability and allow developers to move projects forward. Although some root causes and effects of cloning have been widely studied, there is not much relevant work analyzing how certain projects context factors impact on code cloning. This work presents an empirical validation of six open source projects by considering certain factors from Git repositories measured throughout a total of 70 releases for the 6 systems. The factors analyzed were the number of commits and committers per release, the average size of the commits and the size of the system in each release. The main conclusion obtained from the study is that, while the number of commits and committers and the system size do not significantly affect cloning, larger commits lead to a higher cloning ratio. These insights contribute to predicting and preventing code cloning, thus enabling a software quality improvement.
机译:代码克隆会严重影响软件质量。代码克隆是句法或语义上等效的代码的各种片段。一些作者认为,代码克隆对可维护性和可理解性具有负面影响,因为克隆会传播缺陷,并使其必须注意多个副本。但是,其他作者认为克隆不一定坏,因为自认克隆有利于系统稳定性并允许开发人员将项目向前推进。尽管已经对克隆的一些根本原因和结果进行了广泛研究,但分析某些项目上下文因素如何影响代码克隆的工作却很少。这项工作通过考虑来自Git存储库的某些因素,对六个开源项目进行了实证验证,这些因素在这六个系统的总共70个发行版中进行了测量。分析的因素是每个发行版的提交和提交者数量,每个发行版中提交的平均大小和系统的大小。从研究中得出的主要结论是,尽管提交和提交者的数量以及系统大小不会显着影响克隆,但是较大的提交会导致更高的克隆比率。这些见解有助于预测和防止代码克隆,从而提高软件质量。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号