Patternika:一个基于模式挖掘的自动库迁移工具

Ekaterina Blech, A. Grishchenko, Ivan Kniazkov, Guangtai Liang, Oleg Serebrennikov, A. Tatarnikov, Polina Volkhontseva, Kuzma Yakimets
{"title":"Patternika:一个基于模式挖掘的自动库迁移工具","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":"{\"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}","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

摘要

现代软件项目通常包括许多第三方库。由于违反许可证、已知漏洞、功能增强等原因,库迁移(例如升级/降级/用其他库替换某些库)经常发生,这是费力且容易出错的,因为此类任务通常需要开发人员手动识别库之间的映射,然后手动更改代码。为了解决这个问题,我们提出并实现了一个名为Patternika的基于模式挖掘的工具,它可以帮助实现这些活动的自动化。该方法的关键思想是通过基于抽象语法树(AST)结构的静态代码差异技术和基于代码差异图的反统一技术,从历史迁移实例中挖掘迁移模式,然后应用这些模式来帮助自动迁移未来项目的库(即,查找和修补包含要迁移库的API引用的源代码片段)。通过对开放数据的实验评估,Patternika提供的模式挖掘算法在商业应用上是完全有效的。Patternika现在已经集成到一个IDE插件中,可以免费下载并供IT巨头公司的9万名内部开发人员使用。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Patternika: A Pattern-Mining-Based Tool For Automatic Library Migration
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.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术文献互助群
群 号:481959085
Book学术官方微信