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

揭示Eclipse IIoT软件生态中的代码克隆

Unveiling Code Clones in the Eclipse IIoT Software Ecosystem

Central China Normal University(华中师范大学);Wuhan University(武汉大学);Huazhong University of Science and Technology(华中科技大学)

Zengyang Li, Binbin Huang, Yimeng Li, Ran Mo, Peng Liang, Hui Liu, Yutao Ma

AI总结:

研究揭示Eclipse IIoT开源项目中代码克隆的普遍存在性、演化趋势及共修改情况,发现克隆比例较高,且跨项目克隆现象显著,对软件维护产生负面影响。

摘要:

工业互联网 of Things(IIoT)已成为近期热门话题,随着Eclipse基金会内IIoT开源项目数量增加,代码克隆现象日益凸显,影响软件维护。本文通过收集15个项目90个版本的源代码和变更历史,利用NiCad工具和自定义分析模块,研究了克隆分布、模式、演化趋势、共修改克隆及跨项目克隆。研究发现,IIoT开源项目中16.3%的代码行涉及克隆,克隆比例接近传统开源项目两倍;大部分克隆发生在提交之间,但仍有显著比例的克隆对在同一个提交中;大多数项目在版本迭代中克隆数量稳定;平均0.17%的克隆有共修改,影响维护;跨项目克隆对在Java项目中更常见,共修改比例较低(0.02%)。研究结果强调了克隆对软件维护的潜在负面影响,需采取措施提升软件质量。

英文摘要:

Industrial Internet of Things (IIoT) has become a prominent topic recently, with an increasing number of IIoT OSS projects emerging, also within the Eclipse Foundation. Code cloning is a common practice that can adversely affect software maintenance. In the IIoT OSS domain, developers frequently reuse code and configurations for efficiency, which can lead to code clone proliferation and maintenance challenges. However, the extent and effects of code clones in the IIoT OSS domain remain understudied. This study aims to investigate the prevalence, evolution, and co-modification of code clones within the Eclipse IIoT OSS ecosystem. We collected 90 release versions from 15 projects in the Eclipse IIoT OSS ecosystem, and investigated their code clone situations based on source code and change history using the NiCad tool and our custom analysis module. The investigation covered clone distribution, patterns, evolution trends, co-modified clones, and cross-project clones. 1) Code clones are prevalent in Eclipse IIoT OSS projects, with 16.3% of code lines involved in clones - nearly twice the proportion observed in traditional OSS projects; 2) Most code clones occur between commits, while there are still a significant proportion of code clones that each clone pair happens within a commit; 3) Most Eclipse IIoT projects remain stable in clone numbers during version iterations; 4) An average of 0.17% of the clones have been co-modified, which negatively affect maintenance; and 5) Cross-project clone pairs are prevalent, more in Java than in C projects, with rare co-modifications (0.02%) only in Java projects. Our findings highlight the potential negative impacts of these clones on software maintenance, emphasizing the need to address these issues to improve overall software quality.

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

↑