Revisiting, Benchmarking and Exploring API Recommendation: How Far Are We?

计算机科学 标杆管理 水准点(测量) 任务(项目管理) 应用程序编程接口 推荐系统 软件 万维网 情报检索 程序设计语言 管理 大地测量学 营销 经济 业务 地理
作者
Yun Peng,Shuqing Li,Wenwei Gu,Yichen Li,Wenxuan Wang,Cuiyun Gao,Michael R. Lyu
出处
期刊:IEEE Transactions on Software Engineering [IEEE Computer Society]
卷期号:49 (4): 1876-1897 被引量:25
标识
DOI:10.1109/tse.2022.3197063
摘要

Application Programming Interfaces (APIs), which encapsulate the implementation of specific functions as interfaces, greatly improve the efficiency of modern software development. As the number of APIs grows up fast nowadays, developers can hardly be familiar with all the APIs and usually need to search for appropriate APIs for usage. So lots of efforts have been devoted to improving the API recommendation task. However, it has been increasingly difficult to gauge the performance of new models due to the lack of a uniform definition of the task and a standardized benchmark. For example, some studies regard the task as a code completion problem, while others recommend relative APIs given natural language queries. To reduce the challenges and better facilitate future research, in this paper, we revisit the API recommendation task and aim at benchmarking the approaches. Specifically, the paper groups the approaches into two categories according to the task definition, i.e., query-based API recommendation and code-based API recommendation. We study 11 recently-proposed approaches along with 4 widely-used IDEs. One benchmark named APIBench is then built for the two respective categories of approaches. Based on APIBench, we distill some actionable insights and challenges for API recommendation. We also achieve some implications and directions for improving the performance of recommending APIs, including appropriate query reformulation, data source selection, low resource setting, user-defined APIs, and query-based API recommendation with usage patterns.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
vastwood应助玉树临风采纳,获得10
2秒前
jiayueiyang完成签到,获得积分10
2秒前
阿甘完成签到,获得积分10
3秒前
执着完成签到 ,获得积分10
3秒前
科研通AI5应助大尾尾采纳,获得10
3秒前
李爱国应助冷静的宛采纳,获得10
4秒前
4秒前
caicainuegou完成签到,获得积分10
5秒前
wenhaw应助hao采纳,获得10
5秒前
搜集达人应助安生采纳,获得10
5秒前
6秒前
7秒前
7秒前
8秒前
都是发布了新的文献求助10
9秒前
嘎嘎嘎嘎发布了新的文献求助10
9秒前
falcon发布了新的文献求助30
10秒前
10秒前
10秒前
研友_VZG7GZ应助叶青采纳,获得30
11秒前
12秒前
yyr发布了新的文献求助10
12秒前
小柚完成签到,获得积分10
13秒前
共产主义战士应助木木彡采纳,获得10
14秒前
三新荞发布了新的文献求助10
15秒前
羊村第一巴图鲁完成签到,获得积分10
15秒前
聂亦发布了新的文献求助10
15秒前
16秒前
17秒前
mouxq发布了新的文献求助10
17秒前
17秒前
小二郎应助虚幻芷文采纳,获得10
18秒前
meng发布了新的文献求助10
19秒前
20秒前
22秒前
22秒前
DR完成签到,获得积分10
23秒前
科研通AI5应助彩色元冬采纳,获得30
23秒前
鱼鱼鱼发布了新的文献求助10
23秒前
困敦发布了新的文献求助10
23秒前
高分求助中
Technologies supporting mass customization of apparel: A pilot project 600
Разработка метода ускоренного контроля качества электрохромных устройств 500
Chinesen in Europa – Europäer in China: Journalisten, Spione, Studenten 500
Arthur Ewert: A Life for the Comintern 500
China's Relations With Japan 1945-83: The Role of Liao Chengzhi // Kurt Werner Radtke 500
Two Years in Peking 1965-1966: Book 1: Living and Teaching in Mao's China // Reginald Hunt 500
Epigenetic Drug Discovery 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 物理 生物化学 纳米技术 计算机科学 化学工程 内科学 复合材料 物理化学 电极 遗传学 量子力学 基因 冶金 催化作用
热门帖子
关注 科研通微信公众号,转发送积分 3819142
求助须知:如何正确求助?哪些是违规求助? 3362242
关于积分的说明 10416115
捐赠科研通 3080466
什么是DOI,文献DOI怎么找? 1694492
邀请新用户注册赠送积分活动 814668
科研通“疑难数据库(出版商)”最低求助积分说明 768388