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

识别软件历史中的变化模式

Identifying change patterns in software history

Jason Dagit, Matthew Sottile

摘要:

用于检测源代码中的差异的传统算法关注行之间的差异。因此,很少能够了解项目中随着时间的推移而发生的抽象更改。程序抽象语法树上的结构差异揭示了代码中语法级别的变化,这使我们能够进一步处理差异以理解它们的含义。我们建议,分组的变化由一些度量的相似性,然后通过反统一的模式提取将允许我们识别模式的变化在一个软件项目中包含的版本控制系统(VPS)的变化序列。诸如树编辑距离之类的树相似性度量可以用于对改变进行分组,以便标识可以表示单个改变类的分组(例如,向函数调用添加参数)。通过在每个群中应用反统一,我们能够从具体变化的族推广到结构变化的模式。在结构层面上研究变化模式,而不是逐行地研究,可以让我们深入了解软件的演变。

英文摘要:

Traditional algorithms for detecting differences in source code focus on differences between lines. As such, little can be learned about abstract changes that occur over time within a project. Structural differencing on the program's abstract syntax tree reveals changes at the syntactic level within code, which allows us to further process the differences to understand their meaning. We propose that grouping of changes by some metric of similarity, followed by pattern extraction via antiunification will allow us to identify patterns of change within a software project from the sequence of changes contained within a Version Control System (VCS). Tree similarity metrics such as a tree edit distance can be used to group changes in order to identify groupings that may represent a single class of change (e.g., adding a parameter to a function call). By applying antiunification within each group we are able to generalize from families of concrete changes to patterns of structural change. Studying patterns of change at the structural level, instead of line-by-line, allows us to gain insight into the evolution of software.

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

↑