Patternika: A Pattern-Mining-Based Tool For Automatic Library Migration

Ekaterina Blech, A. Grishchenko, Ivan Kniazkov, Guangtai Liang, Oleg Serebrennikov, A. Tatarnikov, Polina Volkhontseva, Kuzma Yakimets
{"title":"Patternika: A Pattern-Mining-Based Tool For Automatic Library Migration","authors":"Ekaterina Blech, A. Grishchenko, Ivan Kniazkov, Guangtai Liang, Oleg Serebrennikov, A. Tatarnikov, Polina Volkhontseva, Kuzma Yakimets","doi":"10.1109/ISSREW53611.2021.00098","DOIUrl":null,"url":null,"abstract":"Modern software projects typically include a number of third-party libraries. Library migrations (e.g., upgrade/ downgrade/replace some libraries with others) happen frequently due to license violations, known vulnerabilities, feature enhancements and so on, which is laborious and error-prone since that such tasks usually require developers to manually identify mappings between the libraries and then manually change the code. To address this problem, we propose and implement a pattern-mining based tool named Patternika which can help automate such activities. The key idea of the approach is to mine migration patterns from historical migration instances via static code differencing technique upon Abstract Syntax Tree (AST) structures and anti-unification technique upon code differencing graphs, and then apply these patterns to help automatically migrate libraries for future projects (i.e., find and patch source code fragments that contain API references to libraries to be migrated). With experimental evaluations on open data, the pattern mining algorithm provided by Patternika is demonstrated to be fully effective for commercial use. Patternika is now already integrated into an IDE plugin and can be freely downloaded and used by ninety thousands of internal developers intra an IT giant company.","PeriodicalId":385392,"journal":{"name":"2021 IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW)","volume":"47 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ISSREW53611.2021.00098","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

Modern software projects typically include a number of third-party libraries. Library migrations (e.g., upgrade/ downgrade/replace some libraries with others) happen frequently due to license violations, known vulnerabilities, feature enhancements and so on, which is laborious and error-prone since that such tasks usually require developers to manually identify mappings between the libraries and then manually change the code. To address this problem, we propose and implement a pattern-mining based tool named Patternika which can help automate such activities. The key idea of the approach is to mine migration patterns from historical migration instances via static code differencing technique upon Abstract Syntax Tree (AST) structures and anti-unification technique upon code differencing graphs, and then apply these patterns to help automatically migrate libraries for future projects (i.e., find and patch source code fragments that contain API references to libraries to be migrated). With experimental evaluations on open data, the pattern mining algorithm provided by Patternika is demonstrated to be fully effective for commercial use. Patternika is now already integrated into an IDE plugin and can be freely downloaded and used by ninety thousands of internal developers intra an IT giant company.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
Patternika:一个基于模式挖掘的自动库迁移工具
现代软件项目通常包括许多第三方库。由于违反许可证、已知漏洞、功能增强等原因,库迁移(例如升级/降级/用其他库替换某些库)经常发生,这是费力且容易出错的,因为此类任务通常需要开发人员手动识别库之间的映射,然后手动更改代码。为了解决这个问题,我们提出并实现了一个名为Patternika的基于模式挖掘的工具,它可以帮助实现这些活动的自动化。该方法的关键思想是通过基于抽象语法树(AST)结构的静态代码差异技术和基于代码差异图的反统一技术,从历史迁移实例中挖掘迁移模式,然后应用这些模式来帮助自动迁移未来项目的库(即,查找和修补包含要迁移库的API引用的源代码片段)。通过对开放数据的实验评估,Patternika提供的模式挖掘算法在商业应用上是完全有效的。Patternika现在已经集成到一个IDE插件中,可以免费下载并供IT巨头公司的9万名内部开发人员使用。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
An efficient dual ensemble software defect prediction method with neural network Genetic Algorithm-based Testing of Industrial Elevators under Passenger Uncertainty Predicting gray fault based on context graph in container-based cloud Aging and Rejuvenation Models of Load Changing Attacks in Micro-Grids Sensitivity Analysis of Software Rejuvenation Model with Markov Regenerative Process
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1