Upload folder using huggingface_hub
Browse files- README.md +89 -0
- data.jsonl +0 -0
README.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- code-generation
|
| 5 |
+
- code-completion
|
| 6 |
+
- benchmark
|
| 7 |
+
- software-engineering
|
| 8 |
+
pretty_name: DevBench
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# DevBench
|
| 12 |
+
|
| 13 |
+
This dataset packages the **DevBench** code-completion benchmark published by Microsoft, reformatted
|
| 14 |
+
into a single `data.jsonl` file with a `category` field identifying the task category of each record.
|
| 15 |
+
|
| 16 |
+
## Source
|
| 17 |
+
|
| 18 |
+
- **Official repository:** [microsoft/devbench](https://github.com/microsoft/devbench) (`benchmark/` folder)
|
| 19 |
+
- **Retrieved:** 2026-09-17, from the `main` branch of the repository (shallow clone).
|
| 20 |
+
|
| 21 |
+
## Paper
|
| 22 |
+
|
| 23 |
+
> Kumarappan, A., Golnari, P. A., Wen, W., Liu, X., Ryan, G., Sun, Y., Fu, S., & Nallipogu, E. (2026).
|
| 24 |
+
> **DevBench: A Realistic, Developer-Informed Benchmark for Code Generation Models.**
|
| 25 |
+
> arXiv:2601.11895. https://arxiv.org/abs/2601.11895
|
| 26 |
+
|
| 27 |
+
```bibtex
|
| 28 |
+
@misc{devbench2026,
|
| 29 |
+
author = {Kumarappan, Adarsh and Golnari, Pareesa Ameneh and Wen, Wen and Liu, Xiaoyu and Ryan, Gabriel and Sun, Yuting and Fu, Shengyu and Nallipogu, Elsie},
|
| 30 |
+
title = {{DevBench}: A Realistic, Developer-Informed Benchmark for Code Generation Models},
|
| 31 |
+
year = {2026},
|
| 32 |
+
eprint = {2601.11895},
|
| 33 |
+
archivePrefix = {arXiv},
|
| 34 |
+
primaryClass = {cs.LG},
|
| 35 |
+
url = {https://arxiv.org/abs/2601.11895}
|
| 36 |
+
}
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
## License
|
| 40 |
+
|
| 41 |
+
**MIT License** — Copyright (c) Microsoft Corporation, as stated in the
|
| 42 |
+
[`LICENSE`](https://github.com/microsoft/devbench/blob/main/LICENSE) file of the source repository.
|
| 43 |
+
Redistribute in accordance with the MIT License terms (retain the copyright notice).
|
| 44 |
+
|
| 45 |
+
## File
|
| 46 |
+
|
| 47 |
+
- `data.jsonl` — 1,800 records, one JSON object per line, UTF-8, each with `language` and `category` fields.
|
| 48 |
+
|
| 49 |
+
## Structure
|
| 50 |
+
|
| 51 |
+
DevBench is organized as `benchmark/{language}/{category}/{category}.jsonl`, i.e. **6 programming
|
| 52 |
+
languages × 6 task categories × 50 tasks = 1,800 tasks**. All 36 source shards were concatenated,
|
| 53 |
+
each record tagged with:
|
| 54 |
+
|
| 55 |
+
- `category` — the task category, taken from the shard's parent directory name:
|
| 56 |
+
`api_usage`, `code2NL_NL2code`, `code_purpose_understanding`, `low_context`, `pattern_matching`,
|
| 57 |
+
`syntax_completion` (50 records each × 6 languages = 300 records per category).
|
| 58 |
+
- `language` — already present on every source record (`python`, `javascript`, `typescript`, `java`,
|
| 59 |
+
`cpp`, `c_sharp`); kept as-is (re-added defensively only if a record were ever missing it, which
|
| 60 |
+
did not occur here).
|
| 61 |
+
|
| 62 |
+
Each record also retains its original fields: `id`, `testsource`, `prefix` (code visible to the
|
| 63 |
+
model before the cursor), `golden_completion` (reference answer), `suffix` (code visible after the
|
| 64 |
+
cursor), and `assertions` (hidden unit-test-style checks used to grade a completion, not shown to
|
| 65 |
+
the model under evaluation).
|
| 66 |
+
|
| 67 |
+
| `category` | Records | Description |
|
| 68 |
+
|---|---:|---|
|
| 69 |
+
| `api_usage` | 300 | Completions exercising a specific library/API call |
|
| 70 |
+
| `code2NL_NL2code` | 300 | Code↔natural-language translation tasks |
|
| 71 |
+
| `code_purpose_understanding` | 300 | Completions requiring understanding of surrounding code intent |
|
| 72 |
+
| `low_context` | 300 | Completions with minimal surrounding context |
|
| 73 |
+
| `pattern_matching` | 300 | Completions following a repeated code pattern |
|
| 74 |
+
| `syntax_completion` | 300 | Syntax-level fill-in-the-middle completions |
|
| 75 |
+
| **Total** | **1,800** | |
|
| 76 |
+
|
| 77 |
+
## Known issues / decisions made while preparing this package
|
| 78 |
+
|
| 79 |
+
1. Only the `benchmark/` folder (the actual task set) was packaged, per the task scope. The
|
| 80 |
+
repository also ships `completions/` (pre-generated model outputs from 9 models),
|
| 81 |
+
`judge_completions/` (LLM-judge scores), `prompts/`, `evaluation/`, and `analysis/` — these are
|
| 82 |
+
evaluation artifacts/tooling, not the benchmark data itself, and were left out of `data.jsonl`.
|
| 83 |
+
2. Each shard's companion `*_formatted.txt` file (a human-readable rendering of the same JSONL data,
|
| 84 |
+
used for manual inspection) was skipped as redundant with the `.jsonl` source.
|
| 85 |
+
3. Record counts were verified as exactly 50 per shard × 36 shards = 1,800 before and after
|
| 86 |
+
processing; no records were dropped or deduplicated.
|
| 87 |
+
4. Serialized with PowerShell's `ConvertTo-Json` (no Python available in the preparation
|
| 88 |
+
environment); non-ASCII characters, if any, are escaped as `\uXXXX`, which is valid JSON and was
|
| 89 |
+
validated line-by-line.
|
data.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|