Datasets › APIBench

APIBench

Introduced in Revisiting, Benchmarking and Exploring API Recommendation: How Far Are We?23 Dec 2021 archive 2025-07-28

APIBench is a benchmark dataset designed for evaluating the performance of API recommendation approaches. It was introduced in the paper titled "Revisiting, Benchmarking, and Exploring API Recommendation: How Far Are We?"¹. Let's delve into the details:

  1. Purpose and Context:
  2. APIBench serves as a standardized evaluation platform for assessing the effectiveness of various API recommendation techniques.
  3. Researchers and practitioners can use it to compare and analyze different approaches in the field of API recommendation.

  4. Components:

  5. APIBench comprises two sub-datasets:

    • APIBench-Q: This dataset focuses on query-based API recommendation. It involves providing relevant APIs to developers based on natural language queries that describe programming requirements.
    • APIBench-C: This dataset deals with code-based API recommendation. It aims to predict the next API to use based on the code context.
  6. Contents:

  7. APIBench-Q:

    • Contains both Java and Python versions.
    • Includes original queries along with corresponding APIs and API classes.
    • Also provides reformulated queries derived from the original ones using various techniques (such as RACK, NLP2API, SEQUER, Google Prediction Service, and NLPAUG).
    • The dataset size:
    • Original Queries:
      • Python: 4,309
      • Java: 6,563
    • Expanded Queries (after reformulation):
      • Python: 173,517
      • Java: 400,126
  8. APIBench-C:

    • Similar to APIBench-Q, it has both Java and Python versions.
    • Contains metadata files for code in different domains.
    • Metadata includes information about function lengths (long, normal, and short keywords).
  9. Access:

  10. Since GitHub does not host large datasets, you can download the APIBench dataset from Zenodo².

In summary, APIBench provides a valuable resource for evaluating and advancing API recommendation techniques, fostering research and development in this area. 🚀🔍

Source: Conversation with Bing, 3/20/2024 (1) GitHub - JohnnyPeng18/APIBench: APIBench is a benchmark for evaluating .... https://github.com/JohnnyPeng18/APIBench. (2) APIBench: A Benchmark Dataset for Evaluating API ... - Zenodo. https://zenodo.org/records/5797297. (3) api-benchmark - npm. https://www.npmjs.com/package/api-benchmark. (4) The world's #1 API & code benchmark platform | CyBench. https://cybench.io/. (5) undefined. https://github.com/masud-technope/RACK-Replication-Package. (6) undefined. https://github.com/masud-technope/NLP2API-Replication-Package. (7) undefined. https://github.com/kbcao/sequer. (8) undefined. http://suggestqueries.google.com/complete/search?. (9) undefined. https://github.com/makcedward/nlpaug.

Benchmarks archive 2025-07-28

No leaderboard in the archive resolves to this dataset.

Papers archive 2025-07-28

No paper in the archive has a leaderboard row on this dataset; the archive counts 1 paper for it but never published that list.

Dataset loaders archive 2025-07-28

No loader listed in the archive.

Tasks archive 2025-07-28

No task tagged in the archive.

License archive 2025-07-28

No licence recorded in the archive. Absence here is not a statement about the dataset's terms.

Modalities archive 2025-07-28

No modality tagged.

Languages archive 2025-07-28

No language tagged.

Variants archive 2025-07-28

  • APIBench

1 variant name, as the archive lists them.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections