textbigcode/bigcodebenchcode-generationbenchmarkevaluationpythonllm-evalbigcodeagent-evalapache-2.0

BigCodeBench Code Generation Benchmark

Free

Open dataset

Sample structure: 100 / 100
3 download links issued
Seller: DataBazaar
Sign up to download

Already have an account? Log in

Agent? Connect your account →

Category
Text
Records
5,700 rows
Format
PARQUET
Update Frequency
Not documented
Collection Method
auto_imported_huggingface_federated
PII
No flagged field names; not a privacy audit
File Size
~11.26 MB
Download links issued
3

Source, license and coverage

Supplier documentation. These claims are separate from the automated sample score. A listing edit date is not a data freshness date.

License
apache-2.0
Source / creator
bigcode/bigcodebench
Collection method
Tasks were expert-authored by the BigCode collaboration to evaluate practical programming ability with diverse library usage (the benchmark intentionally exercises 100+ Python libraries across domains). Each task was paired with hand-written unit tests and verified to achieve ~99% branch coverage on the canonical solution. The Instruct variant was derived by rewriting docstring-style prompts into natural-language task instructions while preserving the same underlying test harness.
Coverage start
Not documented
Coverage end
Not documented
Data last updated
Not documented
Update schedule
Not documented

Source documentation ↗

License terms ↗

The benchmark is Python-only and skewed toward library-API-heavy tasks; it is not a general competitive-programming or algorithmic benchmark. As a public, widely-downloaded eval set, contamination risk in modern code LLM training corpora is non-trivial — the BigCode team has published contamination analyses but buyers training on this data should treat it as held-out eval, not training data. Test cases, while high-coverage, may still admit reward-hacking solutions that pass tests without genuinely solving the task.

Sample structure score: 100 / 100

This automated check describes the inspected sample, not factual accuracy, legal rights, representativeness, or the quality of the entire dataset. It is not a customer rating.

Assessed 10 sample records (JSON) on 2026-10-09. All records in the provided sample were checked.

CheckPointsEvidence
Populated cells50 / 5090 of 90 top-level cells contain a value. Null, absent and blank values count as missing; zero and false count as populated.
Consistent value types30 / 3090 of 90 populated cells match their column's most common observed type. Types are inferred, not checked against real-world truth.
Consistent record shape20 / 2010 of 10 records have the expected fields. CSV/TSV use the header width; JSON uses the union of observed keys.
Field-level findings and improvements

Check missing cells and mixed types below. Document intentional missing values or mixed types in your field descriptions. Do not fill legitimate unknowns with invented values just to increase this score.

FieldMissing cellsMost common typeOther populated types
task_id0 / 10string0 / 10
complete_prompt0 / 10string0 / 10
instruct_prompt0 / 10string0 / 10
canonical_solution0 / 10string0 / 10
code_prompt0 / 10string0 / 10
test0 / 10string0 / 10
entry_point0 / 10string0 / 10
doc_struct0 / 10string0 / 10
libs0 / 10string0 / 10
How the score is calculated, its limitations, and how to correct an assessment →

About this data

Code generation benchmark with 1,140 tasks in docstring-based completion and natural-language instruction variants, covering multiple programming languages and complexity levels.

Retrieve with your agent or Python

Create an account and configure DATABAZAAR_API_KEY. This example retrieves free or already purchased data; it never makes a purchase. For a multi-file dataset, choose a file index from the manifest.

Download the Python example
python3 retrieve-dataset.py 8bb019dc-566b-4e6c-81bb-6adc1a97ab32 --output dataset.bin
Full supplier documentation
## Overview BigCodeBench is a code generation benchmark from the BigCode project containing 1,140 hand-crafted Python programming tasks across two variants: Complete (docstring-based code completion) and Instruct (natural-language instruction-based generation). Each task ships with executable unit tests averaging 5.6 test cases per task and 99% branch coverage. Format is Parquet; total dataset is in the 1K–10K row range across splits. ## Schema - task_id — string — unique identifier for the task - complete_prompt — string — full docstring-based prompt for the Complete variant - instruct_prompt — string — natural-language instruction prompt for the Instruct variant - canonical_solution — string — reference solution in Python - code_prompt — string — function signature / code-only prompt stub - test — string — Python unittest code used to grade generations - entry_point — string — function name to be implemented - doc_struct — string/json — structured representation of the docstring - libs — string — libraries used / required by the task ## Sources - bigcode/bigcodebench on Hugging Face — https://huggingface.co/datasets/bigcode/bigcodebench — license: Apache-2.0 - Paper: BigCodeBench (arXiv:2406.15877) ## Methodology Tasks were expert-authored by the BigCode collaboration to evaluate practical programming ability with diverse library usage (the benchmark intentionally exercises 100+ Python libraries across domains). Each task was paired with hand-written unit tests and verified to achieve ~99% branch coverage on the canonical solution. The Instruct variant was derived by rewriting docstring-style prompts into natural-language task instructions while preserving the same underlying test harness. ## Known gaps & limitations The benchmark is Python-only and skewed toward library-API-heavy tasks; it is not a general competitive-programming or algorithmic benchmark. As a public, widely-downloaded eval set, contamination risk in modern code LLM training corpora is non-trivial — the BigCode team has published contamination analyses but buyers training on this data should treat it as held-out eval, not training data. Test cases, while high-coverage, may still admit reward-hacking solutions that pass tests without genuinely solving the task. ## Intended use & out-of-scope - IS for: evaluating code-generation LLMs, agent coding benchmarks, prompt-engineering research, RAG-for-code evaluation, fine-tuning data only when explicitly held out from eval. - NOT for: training data for models that will be evaluated on BigCodeBench (leakage), non-Python code generation, or as a representative sample of real-world software engineering workloads. _Federated dataset: 5 parquet shards, 11.3 MB total. Queries and downloads stream through the DataBazaar API._ _PII signals: credit_card_candidate×2 (0.3≤score<0.7) present in the sample. Common in public datasets (papers, logs) but worth knowing before joining with private data._ Original supplier listing: BigCodeBench — Code Generation Benchmark (Complete & Instruct) 1,140-task code generation benchmark from BigCode with both docstring-based completion and NL-instruction variants, 99% test coverage, Apache-2.0 licensed.

Schema

NameTypeDescription
task_idVARCHAR
complete_promptVARCHAR
instruct_promptVARCHAR
canonical_solutionVARCHAR
code_promptVARCHAR
testVARCHAR
entry_pointVARCHAR
doc_structVARCHAR
libsVARCHAR

Sample Data

Preview a sample of the data before downloading.

Public sample only. Sign in to retrieve the full dataset, including free datasets.

For AI Agents

Via MCP Server
# 1. Add to your agent's MCP config (claude_desktop_config.json or similar):
{
  "mcpServers": {
    "databazaar": { "command": "npx", "args": ["databazaar-mcp"] }
  }
}

# 2. Your agent can then call:
search_datasets({ query: "BigCodeBench Code Generation B" })
// Found: 8bb019dc-566b-4e6c-81bb-6adc1a97ab32
get_download_url({ dataset_id: "8bb019dc-566b-4e6c-81bb-6adc1a97ab32" })  // free — sign in with MCP OAuth first
Via REST API
# Free dataset — sign in or use your account API key:
curl https://api.databazaar.io/datasets/8bb019dc-566b-4e6c-81bb-6adc1a97ab32/download-url -H "Authorization: Bearer $DATABAZAAR_API_KEY"