首页> 中文期刊> 《计算机工程与应用》 >开源软件库中文件修改的统计特性:案例分析

开源软件库中文件修改的统计特性:案例分析

         

摘要

Open and collaborative development of open-source software may change the traditional mode for software development. Mining the evolutionary rules of source code files in a SVN( Subversion) repository is conducive to detecting potential bugs and then to improving the quality of software. This paper conducts empirical experiments on two object-oriented open-source software systems, and finds that the number of changes for class files follows roughly a power-law distribution, the modification difference between a pair of adjacent versions of frequently-changed classes also follows approximately a power-law distribution, and there are significantly positive correlations between the number of changes and both source lines of code and the number of imported classes, implying that the function and structure of these classes tend to become more complex. The findings of these 2 case studies provide new insights into the research on evolution, refactoring, and task allocation of maintenance for open-source software.%开源软件的开放合作模式有望改变传统的软件开发方式,挖掘SVN (Subversion)代码库中文件的版本变化规律,有助于发现潜在缺陷,从而改善软件质量.以两个面向对象开源软件为例,发现其中的类文件修改次数大致服从幂率分布,并且修改次数多的类,其相邻版本间内容的修改量也大致服从幂率分布;此外,类的修改次数与代码行数和导入类的个数呈明显的正相关性,表明类的功能和结构倾向于变得更复杂.案例分析的发现有望为研究开源软件的演化规律、重构时间点的选择以及维护任务的分配等提供新的思路.

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号