Comprehensive Integration of API Usage Patterns
@article{Shen2021ComprehensiveIO, title={Comprehensive Integration of API Usage Patterns}, author={Qi Shen and Shijun Wu and Yanzhen Zou and Bing Xie}, journal={2021 IEEE/ACM 29th International Conference on Program Comprehension (ICPC)}, year={2021}, pages={83-93} }
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…
Figures and Tables from this paper
References
SHOWING 1-10 OF 31 REFERENCES
Mining succinct and high-coverage API usage patterns from source code
- Computer Science2013 10th Working Conference on Mining Software Repositories (MSR)
- 2013
This paper proposes two quality metrics (succinctness and coverage) for mined usage patterns, and proposes a novel approach called Usage Pattern Miner (UP-Miner) that mines succinct and high-coverage usage patterns of API methods from source code.
MAPO: Mining and Recommending API Usage Patterns
- Computer ScienceECOOP
- 2009
The results show that using MAPO, programmers produce code with fewer bugs when facing relatively complex API usages, comparing with using the two state-of-the-art code search tools.
Live API documentation
- Computer ScienceICSE
- 2014
Baker can be used to enhance traditional API documentation with up-to-date source code examples and incorporate links to the API documentation into the code snippets that use the API.
A graph-based approach to API usage adaptation
- Computer ScienceSPLASH 2010
- 2010
LIBSYNC is presented that guides developers in adapting API usage code by learning complex API usage adaptation patterns from other clients that already migrated to a new library version (and also from the API usages within the library's test code).
How Can I Use This Method?
- Computer Science, Business2015 IEEE/ACM 37th IEEE International Conference on Software Engineering
- 2015
MUSE (Method USage Examples), an approach for mining and ranking actual code examples that show how to use a specific method, combines static slicing with clone detection, and uses heuristics to select and rank the best examples in terms of reusability, understandability, and popularity.
Analyzing and Supporting Adaptation of Online Code Examples
- Computer Science2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE)
- 2019
This work extensively studies the nature and extent of adaptations and variations of SO snippets, serving as the basis for a tool that helps integrate these online code examples in a target context in an interactive manner.
Visualizing API Usage Examples at Scale
- Computer ScienceCHI
- 2018
An interactive visualization for exploring a large collection of code examples mined from open-source repositories at scale and found that it helped users answer significantly more API usage questions correctly and comprehensively and explore how other programmers have used an unfamiliar API.
Complete completion using types and weights
- Computer SciencePLDI
- 2013
A technique that synthesizes and suggests valid expressions of a given type at a given program point and introduces a succinct representation for type judgements that merges types into equivalence classes to reduce the search space, then reconstructs any desired number of solutions on demand.