MELT: Mining Effective Lightweight Transformations from Pull Requests

计算机科学 工作流程 源代码 编码(集合论) 一般化 语法 程序设计语言 推论 钥匙(锁) 数据挖掘 数据库 人工智能 集合(抽象数据类型) 操作系统 数学分析 数学
作者
Daniel Ramos,Hailie Mitchell,Inês Lynce,Vasco Manquinho,Ruben Martins,Claire Le Goues
标识
DOI:10.1109/ase56229.2023.00117
摘要

Software developers often struggle to update APIs, leading to manual, time-consuming, and error-prone processes. We introduce Melt, a new approach that generates lightweight API migration rules directly from pull requests in popular library repositories. Our key insight is that pull requests merged into open-source libraries are a rich source of information sufficient to mine API migration rules. By leveraging code examples mined from the library source and automatically generated code examples based on the pull requests, we infer transformation rules in Comby, a language for structural code search and replace. Since inferred rules from single code examples may be too specific, we propose a generalization procedure to make the rules more applicable to client projects. Melt rules are syntax-driven, interpretable, and easily adaptable. Moreover, unlike previous work, our approach enables rule inference to seamlessly integrate into the library workflow, removing the need to wait for client code migrations. We evaluated Melt on pull requests from four popular libraries, successfully mining 461 migration rules from code examples in pull requests and 114 rules from auto-generated code examples. Our generalization procedure increases the number of matches for mined rules by 9×. We applied these rules to client projects and ran their tests, which led to an overall decrease in the number of warnings and fixing some test cases demonstrating MELT's effectiveness in real-world scenarios.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
大幅提高文件上传限制,最高150M (2024-4-1)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
1秒前
秋风今是完成签到 ,获得积分10
2秒前
2秒前
rnf完成签到,获得积分10
3秒前
不做科研废物完成签到,获得积分10
5秒前
fanxing发布了新的文献求助10
7秒前
8秒前
9秒前
9秒前
松鼠15111发布了新的文献求助10
10秒前
朴素的蛋挞完成签到,获得积分10
11秒前
单薄惜梦发布了新的文献求助10
13秒前
15秒前
华仔应助单薄惜梦采纳,获得10
18秒前
努力向上的小刘完成签到,获得积分10
18秒前
彪壮的冰双完成签到,获得积分10
19秒前
Eastonlyzhang完成签到 ,获得积分10
26秒前
29秒前
ding应助科研通管家采纳,获得10
29秒前
打打应助科研通管家采纳,获得30
29秒前
科研通AI2S应助科研通管家采纳,获得10
29秒前
30秒前
华仔应助听雪采纳,获得10
31秒前
朱伊完成签到,获得积分10
32秒前
32秒前
35秒前
35秒前
芋头读文献完成签到,获得积分10
35秒前
大力山槐发布了新的文献求助10
35秒前
烟花应助欣喜黄蜂采纳,获得30
35秒前
38秒前
叶问儿完成签到,获得积分10
38秒前
ST完成签到 ,获得积分10
40秒前
41秒前
123完成签到,获得积分10
41秒前
小小完成签到 ,获得积分10
43秒前
zho应助wood采纳,获得10
45秒前
Layqiwook完成签到,获得积分10
48秒前
乐乐应助温昕采纳,获得10
48秒前
50秒前
高分求助中
Impact of Mitophagy-Related Genes on the Diagnosis and Development of Esophageal Squamous Cell Carcinoma via Single-Cell RNA-seq Analysis and Machine Learning Algorithms 1600
Exploring Mitochondrial Autophagy Dysregulation in Osteosarcoma: Its Implications for Prognosis and Targeted Therapy 1500
LNG地下式貯槽指針(JGA指-107) 1000
什么是会话分析 888
QMS18Ed2 | process management. 2nd ed 600
LNG as a marine fuel—Safety and Operational Guidelines - Bunkering 560
Clinical Interviewing, 7th ed 400
热门求助领域 (近24小时)
化学 医学 材料科学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 基因 遗传学 物理化学 催化作用 免疫学 细胞生物学 电极
热门帖子
关注 科研通微信公众号,转发送积分 2942212
求助须知:如何正确求助?哪些是违规求助? 2601220
关于积分的说明 7004450
捐赠科研通 2242346
什么是DOI,文献DOI怎么找? 1190099
版权声明 590254
科研通“疑难数据库(出版商)”最低求助积分说明 582657