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

Statistical properties of file modification in open-source software repositories:case studies

在线阅读下载全文

作  者:林四海[1] 马于涛[2] 陈建勋[1] 

机构地区:[1]武汉科技大学计算机科学与技术学院,武汉430065 [2]武汉大学软件工程国家重点实验室,武汉430072

出  处:《计算机工程与应用》2013年第2期80-85,共6页Computer Engineering and Applications

基  金:国家自然科学基金(No.61272111;No.61100017);教育部博士点基金(No.20090141120022)

摘  要:开源软件的开放合作模式有望改变传统的软件开发方式,挖掘SVN(Subversion)代码库中文件的版本变化规律,有助于发现潜在缺陷,从而改善软件质量。以两个面向对象开源软件为例,发现其中的类文件修改次数大致服从幂率分布,并且修改次数多的类,其相邻版本间内容的修改量也大致服从幂率分布;此外,类的修改次数与代码行数和导入类的个数呈明显的正相关性,表明类的功能和结构倾向于变得更复杂。案例分析的发现有望为研究开源软件的演化规律、重构时间点的选择以及维护任务的分配等提供新的思路。Open and collaborative development of open-source software may change the traditional mode for software develop- ment. 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 distribu- tion, and there are significantly positive correlations between the number of changes and both source lines of code and the num- ber 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 幂率 

分 类 号:TP311.5[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象