Using n-grams to rapidly characterise the evolution of software code

A. Rainer, Peter Lane, J. Malcolm, S. Scholz
{"title":"Using n-grams to rapidly characterise the evolution of software code","authors":"A. Rainer, Peter Lane, J. Malcolm, S. Scholz","doi":"10.1109/ASEW.2008.4686320","DOIUrl":null,"url":null,"abstract":"Text-based approaches to the analysis of software evolution are attractive because of the fine-grained, token-level comparisons they can generate. The use of such approaches has, however, been constrained by the lack of an efficient implementation. In this paper we demonstrate the ability of Ferret, which uses n-grams of 3 tokens, to characterise the evolution of software code. Ferretpsilas implementation operates in almost linear time and is at least an order of magnitude faster than the diff tool. Ferretpsilas output can be analysed to reveal several characteristics of software evolution, such as: the lifecycle of a single file, the degree of change between two files, and possible regression. In addition, the similarity scores produced by Ferret can be aggregated to measure larger parts of the system being analysed.","PeriodicalId":215885,"journal":{"name":"2008 23rd IEEE/ACM International Conference on Automated Software Engineering - Workshops","volume":"68 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2008-09-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"8","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2008 23rd IEEE/ACM International Conference on Automated Software Engineering - Workshops","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ASEW.2008.4686320","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 8

Abstract

Text-based approaches to the analysis of software evolution are attractive because of the fine-grained, token-level comparisons they can generate. The use of such approaches has, however, been constrained by the lack of an efficient implementation. In this paper we demonstrate the ability of Ferret, which uses n-grams of 3 tokens, to characterise the evolution of software code. Ferretpsilas implementation operates in almost linear time and is at least an order of magnitude faster than the diff tool. Ferretpsilas output can be analysed to reveal several characteristics of software evolution, such as: the lifecycle of a single file, the degree of change between two files, and possible regression. In addition, the similarity scores produced by Ferret can be aggregated to measure larger parts of the system being analysed.
使用n-grams快速描述软件代码的演变
基于文本的软件演化分析方法很有吸引力,因为它们可以生成细粒度的、标记级的比较。但是,由于缺乏有效的执行,这种办法的使用受到限制。在本文中,我们展示了Ferret的能力,它使用3个令牌的n-grams来表征软件代码的演变。Ferretpsilas实现几乎在线性时间内运行,并且至少比diff工具快一个数量级。可以分析Ferretpsilas的输出以揭示软件进化的几个特征,例如:单个文件的生命周期,两个文件之间的变化程度,以及可能的回归。此外,Ferret产生的相似性分数可以被汇总以测量被分析系统的更大部分。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信