Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: SCBench Problems
|
| 3 |
+
license: mit
|
| 4 |
+
task_categories:
|
| 5 |
+
- text-generation
|
| 6 |
+
tags:
|
| 7 |
+
- code
|
| 8 |
+
- benchmark
|
| 9 |
+
- iterative-specification
|
| 10 |
+
- python
|
| 11 |
+
- js
|
| 12 |
+
- c++
|
| 13 |
+
- rust
|
| 14 |
+
- java
|
| 15 |
+
- scbench
|
| 16 |
+
size_categories:
|
| 17 |
+
- n<1K
|
| 18 |
+
configs:
|
| 19 |
+
- config_name: python
|
| 20 |
+
data_files:
|
| 21 |
+
- split: test
|
| 22 |
+
path: data/python/test.parquet
|
| 23 |
+
- config_name: js
|
| 24 |
+
data_files:
|
| 25 |
+
- split: test
|
| 26 |
+
path: data/js/test.parquet
|
| 27 |
+
- config_name: c++
|
| 28 |
+
data_files:
|
| 29 |
+
- split: test
|
| 30 |
+
path: data/c++/test.parquet
|
| 31 |
+
- config_name: rust
|
| 32 |
+
data_files:
|
| 33 |
+
- split: test
|
| 34 |
+
path: data/rust/test.parquet
|
| 35 |
+
- config_name: java
|
| 36 |
+
data_files:
|
| 37 |
+
- split: test
|
| 38 |
+
path: data/java/test.parquet
|
| 39 |
+
---
|
| 40 |
+
# SCBench Problems
|
| 41 |
+
|
| 42 |
+
This dataset contains SlopCodeBench (SCBench) problem checkpoints for
|
| 43 |
+
evaluating coding agents under iterative specification refinement.
|
| 44 |
+
|
| 45 |
+
Source repository: `https://github.com/SprocketLab/scb-problems.git`
|
| 46 |
+
Source revision: `ba1f7fec544dae4ff274d2447d9b65aebfbc5196`
|
| 47 |
+
|
| 48 |
+
## Dataset summary
|
| 49 |
+
|
| 50 |
+
- Language subsets: `python`, `js`, `c++`, `rust`, `java`
|
| 51 |
+
- Problems: 36 problems
|
| 52 |
+
- Rows: 980 rows
|
| 53 |
+
- Columns: `problem`, `Checkpoint number`, `language`, `instruction`, `tests`
|
| 54 |
+
|
| 55 |
+
Rows per subset:
|
| 56 |
+
|
| 57 |
+
- `python`: 196 rows
|
| 58 |
+
- `js`: 196 rows
|
| 59 |
+
- `c++`: 196 rows
|
| 60 |
+
- `rust`: 196 rows
|
| 61 |
+
- `java`: 196 rows
|
| 62 |
+
|
| 63 |
+
Category distribution:
|
| 64 |
+
|
| 65 |
+
- developer-tools: 8
|
| 66 |
+
- web: 7
|
| 67 |
+
- data-processing: 6
|
| 68 |
+
- cli-tools: 5
|
| 69 |
+
- algorithms: 2
|
| 70 |
+
- configuration-management: 2
|
| 71 |
+
- dsl: 2
|
| 72 |
+
- databases: 1
|
| 73 |
+
- file-systems: 1
|
| 74 |
+
- networking: 1
|
| 75 |
+
- simulation: 1
|
| 76 |
+
|
| 77 |
+
Difficulty distribution:
|
| 78 |
+
|
| 79 |
+
- Easy: 12
|
| 80 |
+
- Hard: 12
|
| 81 |
+
- Medium: 12
|
| 82 |
+
|
| 83 |
+
Top tags:
|
| 84 |
+
|
| 85 |
+
- cli-tools: 21
|
| 86 |
+
- json: 11
|
| 87 |
+
- file-io: 9
|
| 88 |
+
- yaml: 9
|
| 89 |
+
- schema-validation: 6
|
| 90 |
+
- data-processing: 5
|
| 91 |
+
- rest-api: 5
|
| 92 |
+
- argument-parsing: 4
|
| 93 |
+
- caching: 4
|
| 94 |
+
- config-management: 4
|
| 95 |
+
- data-transformation: 4
|
| 96 |
+
- optimization: 4
|
| 97 |
+
- parsing: 4
|
| 98 |
+
- code-generation: 3
|
| 99 |
+
- crud: 3
|
| 100 |
+
- csv: 3
|
| 101 |
+
- csv-parsing: 3
|
| 102 |
+
- dependency-resolution: 3
|
| 103 |
+
- graph-algorithms: 3
|
| 104 |
+
- http-server: 3
|
| 105 |
+
|
| 106 |
+
## Using the `tests` field
|
| 107 |
+
|
| 108 |
+
Each row includes a `tests` value containing a complete Bash test runner
|
| 109 |
+
for that checkpoint. Save it as a file, then run it against a submission
|
| 110 |
+
directory whose contents implement the entry file named in the
|
| 111 |
+
`instruction` field.
|
| 112 |
+
|
| 113 |
+
```python
|
| 114 |
+
from pathlib import Path
|
| 115 |
+
from datasets import load_dataset
|
| 116 |
+
|
| 117 |
+
dataset = load_dataset("gabeorlanski/slopcodebench", "python", split="test")
|
| 118 |
+
row = dataset[0]
|
| 119 |
+
Path("test.sh").write_text(row["tests"])
|
| 120 |
+
```
|
| 121 |
+
|
| 122 |
+
```bash
|
| 123 |
+
bash test.sh /path/to/submission
|
| 124 |
+
```
|
| 125 |
+
|
| 126 |
+
The runner creates a temporary workspace, copies the submission into it,
|
| 127 |
+
materializes the relevant checkpoint tests and static assets, installs
|
| 128 |
+
Python test dependencies in a virtual environment, and invokes `pytest`.
|
| 129 |
+
Set `SCB_PROBLEMS_REPO` to an existing problems checkout to
|
| 130 |
+
avoid cloning. Set `SCB_KEEP_WORKDIR=1` to keep the temporary
|
| 131 |
+
workspace for debugging.
|
| 132 |
+
|
| 133 |
+
For `c++`, `rust`, and `java` subsets, the runner compiles the declared
|
| 134 |
+
source file with `g++`, `rustc`, or `javac` before running the Python
|
| 135 |
+
test harness. The `js` subset expects `node` to be available.
|