摘要
语句分裂变更模式是一种常见的将一条代码语句分裂成多条语句的代码变更模式,该模式有多种呈现形式,而不同的呈现形式又可能对应不同的变更目的。提出一种分类框架,从分裂语句的类型、语句变更的行为和新增语句类型三个维度对该模式进行分类,并设计了基于该框架的分类算法。最后,将该算法应用于4个开源项目,对其中所包含的语句分裂变更模式进行了分类和分析,实验结果呈现出较高的分类准确率。
Statement splitting change pattern is a common code change pattern that splits a code statement into multiple statements.This pattern has many forms of presentation,and different forms of presentation may correspond to different purposes of change.This paper proposes a classification framework,which classifies the pattern from three dimensions:the type of split statement,the behavior of statement change and the type of new statement,and designs a classification algorithm based on the framework.Finally,the algorithm is applied to four open source projects to classify and analyze the statement splitting change patterns.The experimental results show a high classification accuracy.
作者
段卫华
杨春花
DUAN Weihua;YANG Chunhua(School of Computer Science and Technology,Qilu University of Technology(Shandong Academy of Sciences),Jinan 250353,China)
出处
《智能计算机与应用》
2020年第3期132-137,共6页
Intelligent Computer and Applications
基金
山东省自然科学基金面上项目(ZR2017MF056)。
关键词
软件演化
语句分裂变更模式
分类框架
代码变更块
software evolution
statement split change pattern
classification framework
Hunk