Comprehensive Integration of API Usage Patterns
Qi Shen, Shijun Wu, Yanzhen Zou, Bing Xie

TL;DR
This paper presents a comprehensive approach to integrating API usage patterns into programming tasks, focusing on variable synthesis and interactive assistance to improve developer efficiency.
Contribution
It introduces an empirical study of real-world API pattern integration and proposes an interactive method for synthesizing variables and recommending infrequent expressions.
Findings
Effective variable synthesis expressions identified
Approach assists developers in integrating APIs more efficiently
Faster task completion compared to existing methods
Abstract
Nowadays, developers often reuse existing APIs to implement their programming tasks. A lot of API usage patterns are mined to help developers learn API usage rules. However, there are still many missing variables to be synthesized when developers integrate the patterns into their programming context. To deal with this issue, we propose a comprehensive approach to integrate API usage patterns in this paper. We first perform an empirical study by analyzing how API usage patterns are integrated in real-world projects. We find the expressions for variable synthesis is often non-trivial and can be divided into 5 syntax types. Based on the observation, we promote an approach to help developers interactively complete API usage patterns. Compared to the existing code completion techniques, our approach can recommend infrequent expressions accompanied with their real-world usage examples…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software System Performance and Reliability · Advanced Software Engineering Methodologies
