75.5 GB
648 files
Updated 25 days ago
Name
Size
train.jsonl752 MB
xet
starcoderdata_zig_00127_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00127_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00127_00000_shuffled.ds769 kB
xet
starcoderdata_zig_00126_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00126_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00126_00000_shuffled.ds2.15 MB
xet
starcoderdata_zig_00125_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00125_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00125_00000_shuffled.ds1.27 MB
xet
starcoderdata_zig_00124_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00124_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00124_00000_shuffled.ds1.19 MB
xet
starcoderdata_zig_00123_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00123_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00123_00000_shuffled.ds1.52 MB
xet
starcoderdata_zig_00122_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00122_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00122_00000_shuffled.ds1.02 MB
xet
starcoderdata_zig_00121_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00121_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00121_00000_shuffled.ds1.96 MB
xet
starcoderdata_zig_00120_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00120_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00120_00000_shuffled.ds2.2 MB
xet
starcoderdata_zig_00119_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00119_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00119_00000_shuffled.ds1.62 MB
xet
starcoderdata_zig_00118_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00118_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00118_00000_shuffled.ds1.37 MB
xet
starcoderdata_zig_00117_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00117_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00117_00000_shuffled.ds1.64 MB
xet
starcoderdata_zig_00116_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00116_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00116_00000_shuffled.ds1.42 MB
xet
starcoderdata_zig_00115_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00115_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00115_00000_shuffled.ds761 kB
xet
starcoderdata_zig_00114_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00114_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00114_00000_shuffled.ds2.24 MB
xet
starcoderdata_zig_00113_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00113_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00113_00000_shuffled.ds1.91 MB
xet
starcoderdata_zig_00112_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00112_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00112_00000_shuffled.ds988 kB
xet
starcoderdata_zig_00111_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00111_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00111_00000_shuffled.ds1.68 MB
xet
starcoderdata_zig_00110_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00110_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00110_00000_shuffled.ds1.27 MB
xet
starcoderdata_zig_00109_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00109_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00109_00000_shuffled.ds1.49 MB
xet
starcoderdata_zig_00108_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00108_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00108_00000_shuffled.ds1.29 MB
xet
starcoderdata_zig_00107_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00107_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00107_00000_shuffled.ds904 kB
xet
starcoderdata_zig_00106_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00106_00000_shuffled.ds.index984 Bytes
xet
starcoderdata_zig_00106_00000_shuffled.ds1.83 MB
xet
starcoderdata_zig_00105_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00105_00000_shuffled.ds.index992 Bytes
xet
starcoderdata_zig_00105_00000_shuffled.ds1.67 MB
xet
starcoderdata_zig_00104_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00104_00000_shuffled.ds.index992 Bytes
xet
starcoderdata_zig_00104_00000_shuffled.ds2.07 MB
xet
starcoderdata_zig_00103_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00103_00000_shuffled.ds.index992 Bytes
xet
starcoderdata_zig_00103_00000_shuffled.ds1.15 MB
xet
starcoderdata_zig_00102_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00102_00000_shuffled.ds.index992 Bytes
xet
starcoderdata_zig_00102_00000_shuffled.ds1.69 MB
xet
starcoderdata_zig_00101_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00101_00000_shuffled.ds.index992 Bytes
xet
starcoderdata_zig_00101_00000_shuffled.ds1.56 MB
xet
starcoderdata_zig_00100_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00100_00000_shuffled.ds.index992 Bytes
xet
starcoderdata_zig_00100_00000_shuffled.ds897 kB
xet
starcoderdata_zig_00099_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00099_00000_shuffled.ds.index992 Bytes
xet
starcoderdata_zig_00099_00000_shuffled.ds789 kB
xet
starcoderdata_zig_00098_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00098_00000_shuffled.ds.index992 Bytes
xet
starcoderdata_zig_00098_00000_shuffled.ds1.19 MB
xet
starcoderdata_zig_00097_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00097_00000_shuffled.ds.index992 Bytes
xet
starcoderdata_zig_00097_00000_shuffled.ds1.06 MB
xet
starcoderdata_zig_00096_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00096_00000_shuffled.ds.index992 Bytes
xet
starcoderdata_zig_00096_00000_shuffled.ds898 kB
xet
starcoderdata_zig_00095_00000_shuffled.ds.metadata40 Bytes
xet
starcoderdata_zig_00095_00000_shuffled.ds.index992 Bytes
xet
starcoderdata_zig_00095_00000_shuffled.ds998 kB
xet
README.md

RealCode

Task description

RealCode is a benchmark for evaluating the ability of language models to generate function bodies in real-world Python repositories. The benchmark focuses on realistic completions using project-level context and validates correctness through test execution. Dataset contains 802 tasks.

Evaluated skills: Instruction Following, Code Perception, Completion

Contributors: Pavel Zadorozhny, Rodion Levichev, Pavel Adamenko, Aidar Valeev, Dmitrii Babaev, Denis Kokosinskiy

Motivation

This dataset tests how well models can:

  • Generate function bodies based on surrounding code context;
  • Integrate into existing Python projects;
  • Pass real unit tests after insertion. The main evaluation metric is pass@k, computed via execution of repository-specific tests inside Docker containers.

Data description

Data fields

Each dataset question includes data in the following fields:

  • instruction [str] — string containing the task formulation for function body generation;
  • inputs — Input data that forms the task for the model. Can include one or multiple modalities - video, audio, image, text.
    • left_context [str] — code appearing before the target function;
  • outputs [str] — one-dimensional array of strings of size n_samples, where n_samples is the number required to compute pass@k;
  • meta — Metadata related to the test example, not used in the question (hidden from the tested model).
    • id [int] — unique identifier of the example;
    • repo [str] — GitHub repository name the task is taken from;
    • base_commit [str] — commit hash fixing the repo state;
    • gt [str] — ground truth function body (no signature);
    • right_context [str] — code appearing after the target function;
    • left_context [str] — code appearing before the target function;
    • image_name [str] — Docker image for running the project;
    • build_command [str] — command to build the project before tests;
    • test_command [str] — command to run the tests;
    • fn [str] — path to the file containing the function;
    • PASS_TO_PASS [list] — tests that pass with the generated function;
    • FAIL_TO_PASS [list] — tests that used to fail and now pass;
    • intent [str] — function or method name;
    • intent_type [str] — element type (function, class, etc.)

Data formatting example

{
    "instruction": "Контекст:\n```python\n{left_context}\n```\nТребуется: только тело функции. Строго соблюдай отступы Python. Не добавляй лишнего текста.",
    "inputs": {
        "left_context": "from slack_sdk import WebClient\n\nclass SlackProgressBar:\n    def __init__(self, token: str, total: int):"
    },
    "outputs": "        self._client = WebClient(token=token)\n        self._total = total",
    "meta": {
        "id": 1,
        "repo": "mlizzi/slack-progress-bar",
        "base_commit": "d2d6d955fb8a0423ab89c1bac6c4f70101e6b8af",
        "gt": "        self._client = WebClient(token=token)\n        self._total = total",
        "right_context": "    def update(self, value: int) -> None:\n        pass",
        "left_context": "from slack_sdk import WebClient\n\nclass SlackProgressBar:\n    def __init__(self, token: str, total: int):",
        "image_name": "python:3.11.11-slim-bookworm",
        "build_command": "pip install .; pip install pytest; pip install pytest-json-report;",
        "test_command": "pytest tests --json-report --json-report-file=report_pytest.json",
        "fn": "slack_progress_bar/slack_progress_bar.py",
        "PASS_TO_PASS": [
            "tests/test_slack_progress_bar.py::test_slack_progress_bar"
        ],
        "FAIL_TO_PASS": [],
        "intent": "__init__[function]",
        "intent_type": "function"
    }
}

Prompts

For the task, 10 prompts were prepared and evenly distributed among the questions on the principle of "one prompt per question". The templates in curly braces in each prompt are filled in from the fields inside the inputs field in each question.

Prompt example:

Ответ оформите так: ```python
<code>```Контекст:
{left_context}
Требуется: продолжить только тело одной функции. Строго соблюдайте отступы Python. Не добавляйте лишнего текста и не пишите другие функции. Ваша генерация будет вставлена сразу после контекста и запущена тестами.

Dataset creation

The benchmark is built from 95 public Python GitHub repositories created in 2024. There are 802 tasks in total: for each sample, a function is extracted along with its surrounding code (left_context) and evaluated based on whether the generated body passes original unit tests. All examples come from real repositories and are reproducibly executable.

Evaluation

Metrics

Metrics for aggregated evaluation of responses:

  • pass@1: fraction of tasks where at least one generation passes all tests
Total size
75.5 GB
Files
648
Last updated
Oct 10
Pre-warmed CDN
US EU US EU

Contributors