Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -9,7 +9,7 @@ tags:
|
|
| 9 |
- iterative-specification
|
| 10 |
- python
|
| 11 |
- js
|
| 12 |
-
-
|
| 13 |
- rust
|
| 14 |
- java
|
| 15 |
- scbench
|
|
@@ -24,10 +24,10 @@ configs:
|
|
| 24 |
data_files:
|
| 25 |
- split: test
|
| 26 |
path: data/js/test.parquet
|
| 27 |
-
- config_name:
|
| 28 |
data_files:
|
| 29 |
- split: test
|
| 30 |
-
path: data/
|
| 31 |
- config_name: rust
|
| 32 |
data_files:
|
| 33 |
- split: test
|
|
@@ -37,32 +37,32 @@ configs:
|
|
| 37 |
- split: test
|
| 38 |
path: data/java/test.parquet
|
| 39 |
---
|
| 40 |
-
|
| 41 |
|
| 42 |
-
|
| 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 |
-
|
| 49 |
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
|
| 55 |
-
|
| 56 |
|
| 57 |
-
|
| 58 |
- `js`: 196 rows
|
| 59 |
-
- `
|
| 60 |
- `rust`: 196 rows
|
| 61 |
- `java`: 196 rows
|
| 62 |
|
| 63 |
-
|
| 64 |
|
| 65 |
-
|
| 66 |
- web: 7
|
| 67 |
- data-processing: 6
|
| 68 |
- cli-tools: 5
|
|
@@ -74,62 +74,64 @@ Source revision: `ba1f7fec544dae4ff274d2447d9b65aebfbc5196`
|
|
| 74 |
- networking: 1
|
| 75 |
- simulation: 1
|
| 76 |
|
| 77 |
-
|
| 78 |
|
| 79 |
-
|
| 80 |
- Hard: 12
|
| 81 |
- Medium: 12
|
| 82 |
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
|
|
|
|
|
|
|
|
| 9 |
- iterative-specification
|
| 10 |
- python
|
| 11 |
- js
|
| 12 |
+
- cpp
|
| 13 |
- rust
|
| 14 |
- java
|
| 15 |
- scbench
|
|
|
|
| 24 |
data_files:
|
| 25 |
- split: test
|
| 26 |
path: data/js/test.parquet
|
| 27 |
+
- config_name: cpp
|
| 28 |
data_files:
|
| 29 |
- split: test
|
| 30 |
+
path: data/cpp/test.parquet
|
| 31 |
- config_name: rust
|
| 32 |
data_files:
|
| 33 |
- split: test
|
|
|
|
| 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`, `cpp`, `rust`, `java`
|
| 51 |
+
- Problems: 36 problems
|
| 52 |
+
- Rows: 980 rows
|
| 53 |
+
- Columns: `problem`, `Checkpoint number`, `language`, `difficulty`, `tags`, `instruction`, `tests`
|
| 54 |
|
| 55 |
+
Rows per subset:
|
| 56 |
|
| 57 |
+
- `python`: 196 rows
|
| 58 |
- `js`: 196 rows
|
| 59 |
+
- `cpp`: 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
|
|
|
|
| 74 |
- networking: 1
|
| 75 |
- simulation: 1
|
| 76 |
|
| 77 |
+
Difficulty distribution:
|
| 78 |
|
| 79 |
+
- Easy: 12
|
| 80 |
- Hard: 12
|
| 81 |
- Medium: 12
|
| 82 |
|
| 83 |
+
## Using the `tests` field
|
| 84 |
+
|
| 85 |
+
Each row includes a `tests` value containing a complete Bash test runner
|
| 86 |
+
for that checkpoint. Save it as a file, then run it against a submission
|
| 87 |
+
directory whose contents implement the entry file named in the
|
| 88 |
+
`instruction` field.
|
| 89 |
+
|
| 90 |
+
### Test script examples
|
| 91 |
+
|
| 92 |
+
Write and run one checkpoint from Python:
|
| 93 |
+
|
| 94 |
+
```python
|
| 95 |
+
from pathlib import Path
|
| 96 |
+
import subprocess
|
| 97 |
+
|
| 98 |
+
from datasets import load_dataset
|
| 99 |
+
|
| 100 |
+
dataset = load_dataset("gabeorlanski/slopcodebench", "python", split="test")
|
| 101 |
+
row = dataset[0]
|
| 102 |
+
|
| 103 |
+
test_path = Path("test.sh")
|
| 104 |
+
test_path.write_text(row["tests"])
|
| 105 |
+
test_path.chmod(0o755)
|
| 106 |
+
|
| 107 |
+
subprocess.run(["bash", str(test_path), "/path/to/submission"], check=True)
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
Run a saved test script directly:
|
| 111 |
+
|
| 112 |
+
```bash
|
| 113 |
+
bash test.sh /path/to/submission
|
| 114 |
+
```
|
| 115 |
+
|
| 116 |
+
Use a local problems checkout to avoid cloning:
|
| 117 |
+
|
| 118 |
+
```bash
|
| 119 |
+
SCB_PROBLEMS_REPO=/path/to/scb-problems bash test.sh /path/to/submission
|
| 120 |
+
```
|
| 121 |
+
|
| 122 |
+
Keep the temporary workspace for debugging:
|
| 123 |
+
|
| 124 |
+
```bash
|
| 125 |
+
SCB_KEEP_WORKDIR=1 bash test.sh /path/to/submission
|
| 126 |
+
```
|
| 127 |
+
|
| 128 |
+
The runner creates a temporary workspace, copies the submission into it,
|
| 129 |
+
materializes the relevant checkpoint tests and static assets, installs
|
| 130 |
+
Python test dependencies in a virtual environment, and invokes `pytest`.
|
| 131 |
+
Set `SCB_PROBLEMS_REPO` to an existing problems checkout to
|
| 132 |
+
avoid cloning. Set `SCB_KEEP_WORKDIR=1` to keep the temporary
|
| 133 |
+
workspace for debugging.
|
| 134 |
+
|
| 135 |
+
For `cpp`, `rust`, and `java` subsets, the runner compiles the declared
|
| 136 |
+
source file with `g++`, `rustc`, or `javac` before running the Python
|
| 137 |
+
test harness. The `js` subset expects `node` to be available.
|