anon commited on
Commit
8979fc9
·
verified ·
1 Parent(s): 1c34fc1

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +136 -0
README.md ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: Anonymized Iterative Code Benchmark Problems
3
+ license: mit
4
+ task_categories:
5
+ - text-generation
6
+ tags:
7
+ - code
8
+ - benchmark
9
+ - iterative-specification
10
+ - python
11
+ - js
12
+ - cpp
13
+ - rust
14
+ - java
15
+ - anonymized
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: cpp
28
+ data_files:
29
+ - split: test
30
+ path: data/cpp/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
+ # Anonymized Iterative Code Benchmark Problems
41
+
42
+ This anonymized dataset contains multi-checkpoint coding tasks for
43
+ evaluating agents under iterative specification refinement. Problem
44
+ identifiers, source repository identifiers, and author fields are
45
+ intentionally omitted.
46
+
47
+ ## Dataset summary
48
+
49
+ - Language subsets: `python`, `js`, `cpp`, `rust`, `java`
50
+ - Problems: 36 problems
51
+ - Rows: 980 rows
52
+ - Columns: `problem`, `Checkpoint number`, `language`, `difficulty`, `tags`, `instruction`, `tests`
53
+
54
+ Rows per subset:
55
+
56
+ - `python`: 196 rows
57
+ - `js`: 196 rows
58
+ - `cpp`: 196 rows
59
+ - `rust`: 196 rows
60
+ - `java`: 196 rows
61
+
62
+ Category distribution:
63
+
64
+ - developer-tools: 8
65
+ - web: 7
66
+ - data-processing: 6
67
+ - cli-tools: 5
68
+ - algorithms: 2
69
+ - configuration-management: 2
70
+ - dsl: 2
71
+ - databases: 1
72
+ - file-systems: 1
73
+ - networking: 1
74
+ - simulation: 1
75
+
76
+ Difficulty distribution:
77
+
78
+ - Easy: 12
79
+ - Hard: 12
80
+ - Medium: 12
81
+
82
+ ## Using the `tests` field
83
+
84
+ Each row includes a `tests` value containing a complete Bash test runner
85
+ for that checkpoint. Save it as a file, then run it against a submission
86
+ directory whose contents implement the entry file named in the
87
+ `instruction` field.
88
+
89
+ ### Test script examples
90
+
91
+ Write and run one checkpoint from Python:
92
+
93
+ ```python
94
+ from pathlib import Path
95
+ import subprocess
96
+
97
+ from datasets import load_dataset
98
+
99
+ dataset = load_dataset("anon/dsn26", "python", split="test")
100
+ row = dataset[0]
101
+
102
+ test_path = Path("test.sh")
103
+ test_path.write_text(row["tests"])
104
+ test_path.chmod(0o755)
105
+
106
+ subprocess.run(["bash", str(test_path), "/path/to/submission"], check=True)
107
+ ```
108
+
109
+ Run a saved test script directly:
110
+
111
+ ```bash
112
+ bash test.sh /path/to/submission
113
+ ```
114
+
115
+ Use a local problems checkout to avoid cloning:
116
+
117
+ ```bash
118
+ BENCH_PROBLEMS_REPO=/path/to/problems bash test.sh /path/to/submission
119
+ ```
120
+
121
+ Keep the temporary workspace for debugging:
122
+
123
+ ```bash
124
+ BENCH_KEEP_WORKDIR=1 bash test.sh /path/to/submission
125
+ ```
126
+
127
+ The runner creates a temporary workspace, copies the submission into it,
128
+ materializes the relevant checkpoint tests and static assets, installs
129
+ Python test dependencies in a virtual environment, and invokes `pytest`.
130
+ Set `BENCH_PROBLEMS_REPO` to an existing problems checkout to
131
+ avoid cloning. Set `BENCH_KEEP_WORKDIR=1` to keep the temporary
132
+ workspace for debugging.
133
+
134
+ For `cpp`, `rust`, and `java` subsets, the runner compiles the declared
135
+ source file with `g++`, `rustc`, or `javac` before running the Python
136
+ test harness. The `js` subset expects `node` to be available.