arrow
Return

Generating API Call Rules from Version History and Stack Overflow Posts

delete2017-01-09
delete32
PRE
AI
S
Shams Azad *
Peter C. Rigby cover
Peter C. Rigby (Peter C. Rigby)
L
Latifa Guerrouj
DOI:10.1145/2990497delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Researchers have shown that related functions can be mined from groupings of functions found in the version history of a system. Our first contribution is to expand this approach to a community of applications and set of similar applications. Android developers use a set of application programming interface (API) calls when creating apps. These API calls are used in similar ways across multiple applications. By clustering co-changing API calls used by 230 Android apps across 12k versions, we are able to predict the API calls that individual app developers will use with an average precision of 75% and recall of 22%. When we make predictions from the same category of app, such as Finance, we attain precision and recall of 81% and 28%, respectively. Our second contribution can be characterized as programmers who discussed these functions were also interested in these functions. Informal discussions on Stack Overflow provide a rich source of information about related API calls as developers provide solutions to common problems. By grouping API calls contained in each positively voted answer posts, we are able to create rules that predict the calls that app developers will use in their own apps with an average precision of 66% and recall of 13%. For comparison purposes, we developed a baseline by clustering co-changing API calls for each individual app and generated association rules from them. The baseline predicts API calls used by app developers with a precision and recall of 36% and 23%, respectively.
Keywords:
API method calls
community of applications
version history
informal documentation
Stack Overflow
association rule mining
Generating API tags for tutorial fragments from Stack Overflow
err2021-05-08
err11
PREAI
errWu, Di; Jing, Xiao-Yuan; Zhang, Hongyu; Li, Bing; Xie, Yu; Xu, Baowen
errShare
errSave
Bootstrapping cookbooks for APIs from crowd knowledge on Stack Overflow
err2019-07-01
err16
errOAAI
errSouza, Lucas B. L.; Campos, Eduardo C.; Madeira, Fernanda; Paixao, Klerisson; Rocha, Adriano M.; Maia, Marcelo de Almeida
errShare
errSave
Mining API usage scenarios from stack overflow
err2020-06-01
err26
errOAAI
errUddin, Gias; Khomh, Foutse; Roy, Chanchal K.
errShare
errSave
CAPS: a supervised technique for classifying Stack Overflow posts concerning API issues
err2019-07-19
err21
PREAI
errAhasanuzzaman, Md; Asaduzzaman, Muhammad; Roy, Chanchal K.; Schneider, Kevin A.
errShare
errSave
API-Related Developer Information Needs in Stack Overflow
err2022-11-01
err13
PREAI
errLiu, Mingwei; Peng, Xin; Marcus, Andrian; Xing, Shuangshuang; Treude, Christoph; Zhao, Chengyuan
errShare
errSave
Recommending APIs for API Related Questions in Stack Overflow
err2018-01-01
err20
errOAAI
errZhang, Jingxuan; Jiang, He; Ren, Zhilei; Chen, Xin
errShare
errSave
Leveraging Stack Overflow to detect relevant tutorial fragments of APIs
err2022-11-25
err10
PREAI
errWu, Di; Jing, Xiao-Yuan; Zhang, Hongyu; Zhou, Yuming; Xu, Baowen
errShare
errSave
What developers ask about openai APIs: An empirical study on stack overflow
err2026-04-01
err0
PREAI
errChen, Xiang; Wang, Jibin; Gao, Chaoyang; Ju, Xiaolin; Cui, Zhanqi
errShare
errSave

Journal

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
Papers:
1.4K
Citations:
4.5K

Organization

C
concordia university - canada
Scholars:
8.0K
Papers: 8.9K
Citations: 1.1W
U
university of quebec
Scholars:
206
Papers: 103
Citations: 1.2W
Cited Papers

Cited Papers

A Hybrid ACO+CP for Balancing Bicycle Sharing Systems
err2013-01-01
err0
PREAI
errLuca Di Gaspero; Andrea Rendl; Tommaso Urli
errShare
errSave
Epitaxial single-crystal hexagonal boron nitride multilayers on Ni (111)
errNature
IF48.5
err2022-06-01
err0
PREAI
errKyung Yeol Ma; Leining Zhang; Sunghwan Jin; Yan Wang; Seong In Yoon; Hyuntae Hwang; Juseung Oh; Da Sol Jeong; Meihui Wang; Shahana Chatterjee; Gwangwoo Kim; A-Rang Jang; Jieun Yang; Sunmin Ryu; Hu Young Jeong; Rodney S. Ruoff; Manish Chhowalla; Feng Ding; Hyeon Suk Shin
errShare
errSave
errShare
errSave
Giant adrenal pseudocyst presenting with gastric outlet obstruction and hypertension
err2002-06-01
err0
PREAI
errAnastasios J Karayiannakis; Alexandros Polychronidis; Constantinos Simopoulos
errShare
errSave
Free posterior tibial perforator flap: Anatomy and a report of 6 cases
err1996-01-01
err0
PREAI
errLeung-Kim Hung; Jie Lao; Pak-Cheong Ho
errShare
errSave
errShare
errSave
Mining version histories to guide software changes
err2005-06-01
err469
PREAI
errZimmermann, T; Weissgerber, P; Diehl, S; Zeller, A
errShare
errSave
Combined Effect of Disopyramide and Bethanechol
err1989-08-01
err0
errOAAI
errTomotsugu Konishi; Makoto Kadoya; Shigeru Ikeguchi; Kazushige Sakai; Toshitake Tamamura; Chuichi Kawai
errShare
errSave
errShare
errSave
researcher View more