TRIS: A Fast and Accurate Identifiers Splitting and Expansion Algorithm

Latifa Guerrouj, P. Galinier, Yann-Gaël Guéhéneuc, G. Antoniol, M. D. Penta
{"title":"TRIS: A Fast and Accurate Identifiers Splitting and Expansion Algorithm","authors":"Latifa Guerrouj, P. Galinier, Yann-Gaël Guéhéneuc, G. Antoniol, M. D. Penta","doi":"10.1109/WCRE.2012.20","DOIUrl":null,"url":null,"abstract":"Understanding source code identifiers, by identifying words composing them, is a necessary step for many program comprehension, reverse engineering, or redocumentation tasks. To this aim, researchers have proposed several identifier splitting and expansion approaches such as Samurai, TIDIER and more recently GenTest. The ultimate goal of such approaches is to help disambiguating conceptual information encoded in compound (or abbreviated) identifiers. This paper presents TRIS, TRee-based Identifier Splitter, a two-phases approach to split and expand program identifiers. First, TRIS pre-compiles transformed dictionary words into a tree representation, associating a cost to each transformation. In a second phase, it maps the identifier splitting/expansion problem into a minimization problem, i.e., the search of the shortest path (optimal split/expansion) in a weighted graph. We apply TRIS to a sample of 974 identifiers extracted from JHotDraw, 3,085 from Lynx, and to a sample of 489 identifiers extracted from 340 C programs. Also, we compare TRIS with GenTest on a set of 2,663 mixed Java, C and C++ identifiers. We report evidence that TRIS split (and expansion) is more accurate than state-of-the-art approaches and that it is also efficient in terms of computation time.","PeriodicalId":183886,"journal":{"name":"2012 19th Working Conference on Reverse Engineering","volume":"22 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2012-10-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"23","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2012 19th Working Conference on Reverse Engineering","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/WCRE.2012.20","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 23

Abstract

Understanding source code identifiers, by identifying words composing them, is a necessary step for many program comprehension, reverse engineering, or redocumentation tasks. To this aim, researchers have proposed several identifier splitting and expansion approaches such as Samurai, TIDIER and more recently GenTest. The ultimate goal of such approaches is to help disambiguating conceptual information encoded in compound (or abbreviated) identifiers. This paper presents TRIS, TRee-based Identifier Splitter, a two-phases approach to split and expand program identifiers. First, TRIS pre-compiles transformed dictionary words into a tree representation, associating a cost to each transformation. In a second phase, it maps the identifier splitting/expansion problem into a minimization problem, i.e., the search of the shortest path (optimal split/expansion) in a weighted graph. We apply TRIS to a sample of 974 identifiers extracted from JHotDraw, 3,085 from Lynx, and to a sample of 489 identifiers extracted from 340 C programs. Also, we compare TRIS with GenTest on a set of 2,663 mixed Java, C and C++ identifiers. We report evidence that TRIS split (and expansion) is more accurate than state-of-the-art approaches and that it is also efficient in terms of computation time.
TRIS:一种快速准确的标识符拆分和扩展算法
通过识别组成源代码标识符的单词来理解源代码标识符,是许多程序理解、逆向工程或重新编制文档任务的必要步骤。为此,研究人员提出了几种标识符分割和扩展方法,如Samurai、TIDIER和最近的GenTest。这些方法的最终目标是帮助消除用复合(或缩写)标识符编码的概念信息的歧义。本文提出了基于树的标识符拆分器TRIS,一种拆分和扩展程序标识符的两阶段方法。首先,TRIS将转换后的字典单词预编译为树表示,并将每个转换的代价关联起来。在第二阶段,它将标识符拆分/展开问题映射为最小化问题,即在加权图中搜索最短路径(最优拆分/展开)。我们将TRIS应用于从JHotDraw提取的974个标识符样本,从Lynx提取的3085个标识符样本,以及从340个C程序提取的489个标识符样本。此外,我们将TRIS与GenTest在一组2,663个混合Java、C和c++标识符上进行比较。我们报告的证据表明,TRIS分割(和扩展)比最先进的方法更准确,并且在计算时间方面也更有效。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信
小红书