gabeorlanski commited on
Commit
5d067d6
·
verified ·
1 Parent(s): bc6688f

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +72 -70
README.md CHANGED
@@ -9,7 +9,7 @@ tags:
9
  - iterative-specification
10
  - python
11
  - js
12
- - c++
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: c++
28
  data_files:
29
  - split: test
30
- path: data/c++/test.parquet
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
- # 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
@@ -74,62 +74,64 @@ Source revision: `ba1f7fec544dae4ff274d2447d9b65aebfbc5196`
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.
 
 
 
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.