BigCodeBench Code Generation Benchmark
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
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.
| Check | Points | Evidence |
|---|---|---|
| Populated cells | 50 / 50 | 90 of 90 top-level cells contain a value. Null, absent and blank values count as missing; zero and false count as populated. |
| Consistent value types | 30 / 30 | 90 of 90 populated cells match their column's most common observed type. Types are inferred, not checked against real-world truth. |
| Consistent record shape | 20 / 20 | 10 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.
| Field | Missing cells | Most common type | Other populated types |
|---|---|---|---|
| task_id | 0 / 10 | string | 0 / 10 |
| complete_prompt | 0 / 10 | string | 0 / 10 |
| instruct_prompt | 0 / 10 | string | 0 / 10 |
| canonical_solution | 0 / 10 | string | 0 / 10 |
| code_prompt | 0 / 10 | string | 0 / 10 |
| test | 0 / 10 | string | 0 / 10 |
| entry_point | 0 / 10 | string | 0 / 10 |
| doc_struct | 0 / 10 | string | 0 / 10 |
| libs | 0 / 10 | string | 0 / 10 |
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 examplepython3 retrieve-dataset.py 8bb019dc-566b-4e6c-81bb-6adc1a97ab32 --output dataset.bin
Full supplier documentation
Schema
| Name | Type | Description |
|---|---|---|
| task_id | VARCHAR | |
| complete_prompt | VARCHAR | |
| instruct_prompt | VARCHAR | |
| canonical_solution | VARCHAR | |
| code_prompt | VARCHAR | |
| test | VARCHAR | |
| entry_point | VARCHAR | |
| doc_struct | VARCHAR | |
| libs | VARCHAR |
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
# 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# 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"