CoolFace
Datasetpublic

icmlbenchname/library-based-code-generation

BenchName (Library-based code generation) This is the benchmark for Library-based code generation task as part of the BenchName benchmark. The current version includes 150 manually curated instructions asking the model to generate Python code using a particular library. The samples come from 62 Python repositories. All the samples in the dataset are based on reference example programs written by authors of the respective libraries. All the repositories are published under… See the full description on the dataset page: https://huggingface.co/datasets/icmlbenchname/library-based-code-generation.

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes16downloads
Dataset Card

BenchName (Library-based code generation)

This is the benchmark for Library-based code generation task as part of the BenchName benchmark.

The current version includes 150 manually curated instructions asking the model to generate Python code using a particular library. The samples come from 62 Python repositories. All the samples in the dataset are based on reference example programs written by authors of the respective libraries. All the repositories are published under permissive licenses (MIT, Apache-2.0, BSD-3-Clause, and BSD-2-Clause). The datapoints can be removed upon request.

How-to

Load the data via `load_dataset`:

from datasets import load_dataset

dataset = load_dataset("icmlbenchname/library-based-code-generation", split="test")

Note that all the data we have is considered to be in the test split.

Dataset Structure

Samples structure

The samples in the dataset have the following structure:

**Field****Description**
repo_full_nameConcatenated repository name and owner
repo_nameLibrary repository name
repo_ownerLibrary repository owner
instructionTask for code generation
referenceReference program written by the library authors
clean_referenceReference program with comments removed
path_to_reference_filePath to the reference in the repository (removed in archive to prevent data leakages)
path_to_examples_folderPath to the examples folder in the repository (removed in archive to prevent data leakages)
n_unique_apisNumber of calls to library-specific APIs in the reference program
unique_apisList of of calls to library-specific APIs in the reference program
project_defined_elementsAll class and method names in the repository
api_callsAll API calls (including referencing other libraries) in the reference program
internal_apisAll API calls (including appearing in other libraries) in the reference program