andysalvo commited on
Commit
7f16585
·
verified ·
1 Parent(s): 507acb2

Better card, readable column order, and statistics that compute

Browse files
Files changed (3) hide show
  1. README.md +125 -45
  2. oracles.jsonl +2 -2
  3. oracles.parquet +2 -2
README.md CHANGED
@@ -3,14 +3,27 @@ pretty_name: Goldset
3
  license: cc-by-4.0
4
  language:
5
  - en
 
 
 
 
 
 
 
 
6
  task_categories:
7
  - text-generation
8
  tags:
9
  - code
10
  - software-engineering
11
  - program-repair
 
12
  - evaluation
 
13
  - python
 
 
 
14
  size_categories:
15
  - 1K<n<10K
16
  configs:
@@ -21,58 +34,58 @@ configs:
21
  dataset_info:
22
  config_name: default
23
  features:
24
- - name: fingerprint
25
  dtype: string
26
- - name: id
27
  dtype: string
28
- - name: language
29
  dtype: string
30
- - name: repo
31
  dtype: string
32
- - name: repo_url
33
  dtype: string
34
- - name: commit
35
  dtype: string
36
- - name: parent
37
  dtype: string
38
- - name: commit_url
 
 
39
  dtype: string
 
 
40
  - name: committed_at
41
  dtype: string
42
  - name: parent_at
43
  dtype: string
44
- - name: subject
45
- dtype: string
46
  - name: license
47
  dtype: string
48
  - name: license_file
49
  dtype: string
50
  - name: also_in
51
- sequence: string
52
- - name: module
53
- dtype: string
54
- - name: unit
55
  dtype: string
56
- - name: units_changed
57
- sequence: string
58
- - name: granularity
59
- dtype: string
60
- - name: spec_source
61
  dtype: string
62
- - name: spec
63
  dtype: string
64
- - name: source_before
65
  dtype: string
66
- - name: source_after
67
  dtype: string
68
- - name: test_file
69
  dtype: string
70
- - name: fail_to_pass
71
  sequence: string
72
  - name: diff_lines
73
  dtype: int64
74
  - name: n_tests
75
  dtype: int64
 
 
 
 
 
 
76
  - name: validated_at
77
  dtype: string
78
  - name: validator
@@ -81,7 +94,10 @@ dataset_info:
81
  dtype: int64
82
  splits:
83
  - name: test
 
84
  num_examples: 742
 
 
85
  ---
86
 
87
  # Goldset
@@ -93,9 +109,13 @@ test that fails before the fix and passes after it. A record is kept only once
93
  both runs have been observed, so what is published is a reproduction rather than
94
  a claim.
95
 
96
- Snapshot of 742 records from 274 projects, all
97
- Python, with fixes committed between 2010-06-13 and 2026-08-17.
 
98
 
 
 
 
99
 
100
  ```python
101
  from datasets import load_dataset
@@ -105,35 +125,76 @@ ds = load_dataset("goldsetdev/goldset", split="test")
105
  # Single-function records whose fix postdates a model's training cutoff.
106
  subset = ds.filter(lambda r: r["granularity"] == "function"
107
  and r["committed_at"] > "2025-01-01")
 
 
 
 
 
 
108
  ```
109
 
110
- ## What a record contains
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
 
112
  | field | meaning |
113
  |---|---|
114
- | `fingerprint`, `id` | stable identity, addressed by content |
115
- | `repo`, `repo_url`, `commit`, `parent`, `commit_url` | provenance, permanently linkable |
116
- | `committed_at`, `parent_at` | dates of the fix and the broken state |
117
  | `subject` | the author's own commit message, unedited |
118
  | `granularity` | `function` for one isolated function, `file` for a whole changed file |
119
- | `spec`, `spec_source` | what the code was meant to do, from its docstring or the commit message |
120
  | `source_before`, `source_after` | the code before and after the fix |
121
  | `test_file`, `fail_to_pass` | the test file and the exact pytest node ids that flip |
 
 
122
  | `license`, `license_file`, `also_in` | the licence, the file it was read from, and any project the identical code also ships from |
 
 
 
 
 
123
 
124
- 339 records isolate a single function together with its
125
- docstring. The remaining 403 keep the whole changed file and
126
- use the commit message as the specification, so filter on `granularity` if you
127
- want only the tighter kind.
 
 
 
 
128
 
129
  ## Verifying it
130
 
131
- The corpus is meant to be checked rather than trusted. `verify.py` in the
132
- [GitHub repository](https://github.com/andysalvo/goldset) re-clones each project,
133
- checks out both commits, re-applies the fix commit's tests and runs them again. It
134
- shares no code with the pipeline that produced the corpus.
 
 
 
 
 
 
 
135
 
136
- ## Limits
137
 
138
  - **A passing test does not mean a fix is correct.** It means the recorded test
139
  passes. That is the property this corpus guarantees, and it is a narrower claim.
@@ -142,16 +203,27 @@ shares no code with the pipeline that produced the corpus.
142
  - **Python only.**
143
  - **We tested whether these bugs are harder for models than generated ones and the
144
  result did not replicate.** The claim is not made here.
 
 
 
145
 
146
- Contamination is the reason every record carries a date. Report the window you
147
- evaluated on.
 
 
 
 
 
 
 
148
 
149
  ## Licence and attribution
150
 
151
  Source excerpts remain under the licence of the project they came from. The full
152
  text of each project's licence, as it stood at the commit cited, ships in
153
  `licenses/`, because MIT, BSD and Apache-2.0 condition redistribution on the notice
154
- travelling with the code. Per-project credit is in `ATTRIBUTION.md`.
 
155
 
156
  | licence | records |
157
  |---|---|
@@ -165,8 +237,16 @@ travelling with the code. Per-project credit is in `ATTRIBUTION.md`.
165
  The added layer, meaning the validation results, schema and arrangement, is
166
  released under CC BY 4.0. Nothing in this corpus was authored by us.
167
 
168
- This is a dated snapshot. Records mined after the cutoff, other languages, and
169
- held-out material are not part of this release.
 
 
 
 
 
 
 
 
170
 
171
  **Maintainers:** if your project appears here and you would rather it did not, open
172
  an issue and it will be removed, no questions asked.
 
3
  license: cc-by-4.0
4
  language:
5
  - en
6
+ language_creators:
7
+ - found
8
+ annotations_creators:
9
+ - found
10
+ source_datasets:
11
+ - original
12
+ multilinguality:
13
+ - monolingual
14
  task_categories:
15
  - text-generation
16
  tags:
17
  - code
18
  - software-engineering
19
  - program-repair
20
+ - bug-fixing
21
  - evaluation
22
+ - benchmark
23
  - python
24
+ - text
25
+ - datasets
26
+ - pandas
27
  size_categories:
28
  - 1K<n<10K
29
  configs:
 
34
  dataset_info:
35
  config_name: default
36
  features:
37
+ - name: repo
38
  dtype: string
39
+ - name: unit
40
  dtype: string
41
+ - name: subject
42
  dtype: string
43
+ - name: granularity
44
  dtype: string
45
+ - name: spec_source
46
  dtype: string
47
+ - name: spec
48
  dtype: string
49
+ - name: source_before
50
  dtype: string
51
+ - name: source_after
52
+ dtype: string
53
+ - name: test_file
54
  dtype: string
55
+ - name: fail_to_pass
56
+ sequence: string
57
  - name: committed_at
58
  dtype: string
59
  - name: parent_at
60
  dtype: string
 
 
61
  - name: license
62
  dtype: string
63
  - name: license_file
64
  dtype: string
65
  - name: also_in
 
 
 
 
66
  dtype: string
67
+ - name: commit
 
 
 
 
68
  dtype: string
69
+ - name: parent
70
  dtype: string
71
+ - name: commit_url
72
  dtype: string
73
+ - name: repo_url
74
  dtype: string
75
+ - name: module
76
  dtype: string
77
+ - name: units_changed
78
  sequence: string
79
  - name: diff_lines
80
  dtype: int64
81
  - name: n_tests
82
  dtype: int64
83
+ - name: fingerprint
84
+ dtype: string
85
+ - name: id
86
+ dtype: string
87
+ - name: language
88
+ dtype: string
89
  - name: validated_at
90
  dtype: string
91
  - name: validator
 
94
  dtype: int64
95
  splits:
96
  - name: test
97
+ num_bytes: 18842623
98
  num_examples: 742
99
+ download_size: 3701702
100
+ dataset_size: 18842623
101
  ---
102
 
103
  # Goldset
 
109
  both runs have been observed, so what is published is a reproduction rather than
110
  a claim.
111
 
112
+ 742 records from 274 projects, all Python, with
113
+ fixes committed between 2010-06-13 and 2026-08-17.
114
+
115
 
116
+ [Website](https://goldset.dev) · [Code and verifier](https://github.com/andysalvo/goldset) · [Datasheet](DATASHEET.md)
117
+
118
+ ## Quick start
119
 
120
  ```python
121
  from datasets import load_dataset
 
125
  # Single-function records whose fix postdates a model's training cutoff.
126
  subset = ds.filter(lambda r: r["granularity"] == "function"
127
  and r["committed_at"] > "2025-01-01")
128
+
129
+ r = subset[0]
130
+ print(r["spec"]) # what the code was meant to do
131
+ print(r["source_before"]) # the bug
132
+ print(r["source_after"]) # the author's fix
133
+ print(r["fail_to_pass"]) # the test that tells them apart
134
  ```
135
 
136
+ ## Supported tasks
137
+
138
+ **Defect repair.** Give a model `source_before` and `spec`, ask for a fix, and
139
+ run `fail_to_pass` against the result. The test is the reward signal, so scoring
140
+ needs no human and no judge model.
141
+
142
+ **Defect detection.** Ask whether `source_before` contains a bug, using
143
+ `source_after` as ground truth.
144
+
145
+ **Harness and scaffolding evaluation.** Because the reward is executable, the
146
+ same records measure how much of a score comes from the agent around the model
147
+ rather than the model itself.
148
+
149
+ ## Dataset structure
150
+
151
+ One row per record. 339 isolate a single changed function
152
+ together with its docstring, and 403 keep the whole changed
153
+ file and use the commit message as the specification. Filter on `granularity` for
154
+ the tighter kind.
155
 
156
  | field | meaning |
157
  |---|---|
158
+ | `repo`, `repo_url` | the project the record came from |
159
+ | `unit`, `module`, `units_changed` | the function or class under test, its importable path, and every unit the commit touched |
 
160
  | `subject` | the author's own commit message, unedited |
161
  | `granularity` | `function` for one isolated function, `file` for a whole changed file |
162
+ | `spec`, `spec_source` | what the code was meant to do, from its docstring or from the commit message |
163
  | `source_before`, `source_after` | the code before and after the fix |
164
  | `test_file`, `fail_to_pass` | the test file and the exact pytest node ids that flip |
165
+ | `commit`, `parent`, `commit_url` | the fix and the state it was broken in, permanently linkable |
166
+ | `committed_at`, `parent_at` | dates of both, for filtering against a training cutoff |
167
  | `license`, `license_file`, `also_in` | the licence, the file it was read from, and any project the identical code also ships from |
168
+ | `fingerprint`, `id` | stable identity, addressed by content |
169
+ | `diff_lines`, `n_tests` | size of the change and how many tests flip |
170
+ | `validated_at`, `validator` | audit trail |
171
+
172
+ ## How a record is made
173
 
174
+ 1. Find commits that changed source and tests together, in permissively licensed
175
+ projects only.
176
+ 2. Run the author's test against the code as it stood before the fix. It must fail.
177
+ 3. Run the same test against the fix. It must pass.
178
+ 4. Keep the changed function with its docstring, or the whole file when it does
179
+ not isolate cleanly.
180
+
181
+ About one candidate in ten survives. No language model is used at any stage.
182
 
183
  ## Verifying it
184
 
185
+ The corpus is meant to be checked rather than trusted.
186
+
187
+ ```bash
188
+ git clone https://github.com/andysalvo/goldset
189
+ cd goldset && python3 verify.py --sample 20
190
+ ```
191
+
192
+ `verify.py` shares no code with the pipeline that produced the corpus. It
193
+ re-clones each project, checks out both commits, re-applies the fix commit's tests
194
+ and runs them again, so it would catch a mistake the pipeline made rather than
195
+ agreeing with it.
196
 
197
+ ## Limitations
198
 
199
  - **A passing test does not mean a fix is correct.** It means the recorded test
200
  passes. That is the property this corpus guarantees, and it is a narrower claim.
 
203
  - **Python only.**
204
  - **We tested whether these bugs are harder for models than generated ones and the
205
  result did not replicate.** The claim is not made here.
206
+ - **Contamination is possible.** Every record comes from a public repository and may
207
+ already sit in a model's pre-training data, which is why every record is dated.
208
+ Report the window you evaluated on.
209
 
210
+ ## What is not in this release
211
+
212
+ A further set of records is held back and not published. Projects are assigned
213
+ whole to one side or the other, so nothing here can be used to work out what is
214
+ withheld. A public evaluation set is contaminated the moment it is public, which is
215
+ the reason for keeping a disjoint one.
216
+
217
+ What is published here stays published. The CC BY 4.0 grant on this release is
218
+ permanent and nothing is ever withdrawn.
219
 
220
  ## Licence and attribution
221
 
222
  Source excerpts remain under the licence of the project they came from. The full
223
  text of each project's licence, as it stood at the commit cited, ships in
224
  `licenses/`, because MIT, BSD and Apache-2.0 condition redistribution on the notice
225
+ travelling with the code rather than on a link to it. Per-project credit is in
226
+ `ATTRIBUTION.md`.
227
 
228
  | licence | records |
229
  |---|---|
 
237
  The added layer, meaning the validation results, schema and arrangement, is
238
  released under CC BY 4.0. Nothing in this corpus was authored by us.
239
 
240
+ ## Citation
241
+
242
+ ```bibtex
243
+ @misc{goldset2026,
244
+ title = {Goldset: verified bug-fix records for evaluating coding agents},
245
+ author = {Salvo, Andrew},
246
+ year = {2026},
247
+ url = {https://goldset.dev}
248
+ }
249
+ ```
250
 
251
  **Maintainers:** if your project appears here and you would rather it did not, open
252
  an issue and it will be removed, no questions asked.
oracles.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8a5d8fbbaefab8e3a220fdb1b911a91c03014fde8f0555430052b2443ce7cb4c
3
- size 18839637
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:beaab972fbb272844c3e0cd8891866cc591861b43cb1eb07ab92e52967050dba
3
+ size 18839627
oracles.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f6269722264e95eb2b0bdf3f07cd6c9648eca0e72ae306919ba6361d509db922
3
- size 3701827
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84ed664516feb96cf00fa0e6727971f8a84be83df108ae78844405f285c774a1
3
+ size 3701702