Q-ARE: An Evaluation Dataset for Query Based API Recommendation
Shenglong Wu, Xunhui Zhang, Tao Wang

TL;DR
Q-ARE is a new dataset and benchmark for evaluating the semantic understanding of query-based API recommendation methods, highlighting challenges with multi-level invocation structures.
Contribution
The paper introduces Q-ARE, a comprehensive dataset with novel metrics for assessing API recommendation methods on open-source Java projects.
Findings
Performance drops with increased API Call Depth.
Existing methods struggle with multi-level invocation chains.
Q-ARE provides a new benchmark for future API recommendation research.
Abstract
As software systems grow in scale, developers face increasing difficulty in selecting appropriate Application Programming Interfaces (APIs) from numerous options. Efficiently identifying APIs that satisfy functional requirements has become a key challenge. To evaluate the semantic understanding of existing query-based API recommendation methods, this paper constructs Q-ARE (Query-based API Recommendation Evaluation), a dataset based on open-source Java projects from GitHub. Methods and their invocation chains are analyzed to identify third-party APIs directly or indirectly invoked by target methods, recursively expanding multi-level invocations to unify hierarchical call structures into API recommendation target sets. Furthermore, we introduce two metrics: API Call Depth, measuring the invocation distance between a query method and a target API, and Invocation Density, quantifying the…
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.
