The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: CastError
Message: Couldn't cast
repo: string
spec: struct<module: string, skeleton: string, call_graph: list<item: struct<source: string, target: strin (... 90 chars omitted)
child 0, module: string
child 1, skeleton: string
child 2, call_graph: list<item: struct<source: string, target: string>>
child 0, item: struct<source: string, target: string>
child 0, source: string
child 1, target: string
child 3, contracts: list<item: struct<name: string, doc: string, params: list<item: string>>>
child 0, item: struct<name: string, doc: string, params: list<item: string>>
child 0, name: string
child 1, doc: string
child 2, params: list<item: string>
child 0, item: string
graph: struct<directed: bool, multigraph: bool, graph: struct<name: string>, nodes: list<item: struct<id: s (... 156 chars omitted)
child 0, directed: bool
child 1, multigraph: bool
child 2, graph: struct<name: string>
child 0, name: string
child 3, nodes: list<item: struct<id: string, type: string, name: string, file: string, signature: string, text: str (... 5 chars omitted)
child 0, item: struct<id: string, type: string, name: string, file: string, signature: string, text: string>
child 0, id: string
child 1, type: string
child 2, name: string
child 3, file: string
child 4, signature: string
child 5, text: string
child 4, links: list<item: struct<source: string, target: string, type:
...
ems_639: string
child 11, top_k_items_424: string
child 12, truncate_words_653: string
child 13, top_k_items_681: string
child 14, slugify_188: string
child 15, truncate_words_291: string
child 16, top_k_items_241: string
child 17, clamp_value_3: string
child 18, moving_average_448: string
tests: string
files: null
gold_location: struct<file: string, function: string>
child 0, file: string
child 1, function: string
f2p: list<item: string>
child 0, item: string
gold_patch: string
issue: string
subgraph: struct<directed: bool, multigraph: bool, graph: struct<name: string>, nodes: list<item: struct<id: s (... 156 chars omitted)
child 0, directed: bool
child 1, multigraph: bool
child 2, graph: struct<name: string>
child 0, name: string
child 3, nodes: list<item: struct<id: string, type: string, name: string, file: string, signature: string, text: str (... 5 chars omitted)
child 0, item: struct<id: string, type: string, name: string, file: string, signature: string, text: string>
child 0, id: string
child 1, type: string
child 2, name: string
child 3, file: string
child 4, signature: string
child 5, text: string
child 4, links: list<item: struct<source: string, target: string, type: string>>
child 0, item: struct<source: string, target: string, type: string>
child 0, source: string
child 1, target: string
child 2, type: string
bug_kind: string
to
{'repo': Value('string'), 'issue': Value('string'), 'graph': {'directed': Value('bool'), 'multigraph': Value('bool'), 'graph': {'name': Value('string')}, 'nodes': List({'id': Value('string'), 'type': Value('string'), 'name': Value('string'), 'file': Value('string'), 'signature': Value('string'), 'text': Value('string')}), 'links': List({'source': Value('string'), 'target': Value('string'), 'type': Value('string')})}, 'subgraph': {'directed': Value('bool'), 'multigraph': Value('bool'), 'graph': {'name': Value('string')}, 'nodes': List({'id': Value('string'), 'type': Value('string'), 'name': Value('string'), 'file': Value('string'), 'signature': Value('string'), 'text': Value('string')}), 'links': List({'source': Value('string'), 'target': Value('string'), 'type': Value('string')})}, 'gold_patch': Value('string'), 'gold_location': {'file': Value('string'), 'function': Value('string')}, 'f2p': List(Value('string')), 'bug_kind': Value('string'), 'files': Json(decode=True)}
because column names don't match
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1827, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
repo: string
spec: struct<module: string, skeleton: string, call_graph: list<item: struct<source: string, target: strin (... 90 chars omitted)
child 0, module: string
child 1, skeleton: string
child 2, call_graph: list<item: struct<source: string, target: string>>
child 0, item: struct<source: string, target: string>
child 0, source: string
child 1, target: string
child 3, contracts: list<item: struct<name: string, doc: string, params: list<item: string>>>
child 0, item: struct<name: string, doc: string, params: list<item: string>>
child 0, name: string
child 1, doc: string
child 2, params: list<item: string>
child 0, item: string
graph: struct<directed: bool, multigraph: bool, graph: struct<name: string>, nodes: list<item: struct<id: s (... 156 chars omitted)
child 0, directed: bool
child 1, multigraph: bool
child 2, graph: struct<name: string>
child 0, name: string
child 3, nodes: list<item: struct<id: string, type: string, name: string, file: string, signature: string, text: str (... 5 chars omitted)
child 0, item: struct<id: string, type: string, name: string, file: string, signature: string, text: string>
child 0, id: string
child 1, type: string
child 2, name: string
child 3, file: string
child 4, signature: string
child 5, text: string
child 4, links: list<item: struct<source: string, target: string, type:
...
ems_639: string
child 11, top_k_items_424: string
child 12, truncate_words_653: string
child 13, top_k_items_681: string
child 14, slugify_188: string
child 15, truncate_words_291: string
child 16, top_k_items_241: string
child 17, clamp_value_3: string
child 18, moving_average_448: string
tests: string
files: null
gold_location: struct<file: string, function: string>
child 0, file: string
child 1, function: string
f2p: list<item: string>
child 0, item: string
gold_patch: string
issue: string
subgraph: struct<directed: bool, multigraph: bool, graph: struct<name: string>, nodes: list<item: struct<id: s (... 156 chars omitted)
child 0, directed: bool
child 1, multigraph: bool
child 2, graph: struct<name: string>
child 0, name: string
child 3, nodes: list<item: struct<id: string, type: string, name: string, file: string, signature: string, text: str (... 5 chars omitted)
child 0, item: struct<id: string, type: string, name: string, file: string, signature: string, text: string>
child 0, id: string
child 1, type: string
child 2, name: string
child 3, file: string
child 4, signature: string
child 5, text: string
child 4, links: list<item: struct<source: string, target: string, type: string>>
child 0, item: struct<source: string, target: string, type: string>
child 0, source: string
child 1, target: string
child 2, type: string
bug_kind: string
to
{'repo': Value('string'), 'issue': Value('string'), 'graph': {'directed': Value('bool'), 'multigraph': Value('bool'), 'graph': {'name': Value('string')}, 'nodes': List({'id': Value('string'), 'type': Value('string'), 'name': Value('string'), 'file': Value('string'), 'signature': Value('string'), 'text': Value('string')}), 'links': List({'source': Value('string'), 'target': Value('string'), 'type': Value('string')})}, 'subgraph': {'directed': Value('bool'), 'multigraph': Value('bool'), 'graph': {'name': Value('string')}, 'nodes': List({'id': Value('string'), 'type': Value('string'), 'name': Value('string'), 'file': Value('string'), 'signature': Value('string'), 'text': Value('string')}), 'links': List({'source': Value('string'), 'target': Value('string'), 'type': Value('string')})}, 'gold_patch': Value('string'), 'gold_location': {'file': Value('string'), 'function': Value('string')}, 'f2p': List(Value('string')), 'bug_kind': Value('string'), 'files': Json(decode=True)}
because column names don't match
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1879, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
repo string | issue string | graph dict | subgraph dict | gold_patch string | gold_location dict | f2p list | bug_kind string | files unknown |
|---|---|---|---|---|---|---|---|---|
repo_0000 | The text helper called with ('Alpha Epsilon Epsilon Alpha', 1) returned 'Epsilon...'; the correct result should be 'Alpha...'.
Recent changes touched `mod_text_1`, so the regression is likely there. Other callers of the same helper are unaffected or untested. | {
"directed": true,
"multigraph": false,
"graph": {
"name": "repo_0000"
},
"nodes": [
{
"id": "repo_0000/mod_math_0",
"type": "module",
"name": "mod_math_0",
"file": "repo_0000/mod_math_0.py",
"signature": "module mod_math_0",
"text": "module mod_math_0"
},
... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "sub_repo_0000/mod_text_1.truncate_words"
},
"nodes": [
{
"id": "repo_0000/mod_text_1",
"type": "module",
"name": "mod_text_1",
"file": "repo_0000/mod_text_1.py",
"signature": "module mod_text_1",
"text": "... | --- a/repo_0000/mod_text_1.py
+++ b/repo_0000/mod_text_1.py
@@ -13,7 +13,7 @@
words = text.split()
if len(words) <= max_words:
return text
- return ' '.join(words[1:max_words + 1]) + suffix
+ return ' '.join(words[:max_words]) + suffix
def truncate_words_489(text, max_words, suffix='...'):... | {
"file": "repo_0000/mod_text_1.py",
"function": "truncate_words"
} | [
"test_target.py.TestTarget"
] | wrong_comparator | {
"repo_0000/mod_math_0.py": "\"\"\"mod_math_0 — generated helpers.\"\"\"\n\n\n\ndef clamp_value(x, lo, hi):\n \"\"\"Clamp x into the closed interval [lo, hi].\"\"\"\n if x < lo:\n return lo\n if x > hi:\n return hi\n return x\n\n\ndef moving_average(values, window):\n \"\"\"Trailing movi... |
repo_0000 | The coll helper called with ({'x0': 0.78, 'x1': 0.52, 'w2': 0.11, 'x3': 0.12, 'y4': 0.46}) returned {'x0': 0.78, 'x1': 0.52, 'w2': 0.11, 'x3': 0.12, 'y4': 0.46}; the correct result should be {0.78: 'x0', 0.52: 'x1', 0.11: 'w2', 0.12: 'x3', 0.46: 'y4'}.
Recent changes touched `mod_coll_2`, so the regression is likely t... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "repo_0000"
},
"nodes": [
{
"id": "repo_0000/mod_math_0",
"type": "module",
"name": "mod_math_0",
"file": "repo_0000/mod_math_0.py",
"signature": "module mod_math_0",
"text": "module mod_math_0"
},
... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "sub_repo_0000/mod_coll_2.invert_dict"
},
"nodes": [
{
"id": "repo_0000/mod_coll_2",
"type": "module",
"name": "mod_coll_2",
"file": "repo_0000/mod_coll_2.py",
"signature": "module mod_coll_2",
"text": "mod... | --- a/repo_0000/mod_coll_2.py
+++ b/repo_0000/mod_coll_2.py
@@ -6,7 +6,7 @@
"""Invert a dict; later keys win on duplicate values."""
out = {}
for k, v in d.items():
- out[k] = v
+ out[v] = k
return out
| {
"file": "repo_0000/mod_coll_2.py",
"function": "invert_dict"
} | [
"test_target.py.TestTarget"
] | wrong_comparator | {
"repo_0000/mod_math_0.py": "\"\"\"mod_math_0 — generated helpers.\"\"\"\n\n\n\ndef clamp_value(x, lo, hi):\n \"\"\"Clamp x into the closed interval [lo, hi].\"\"\"\n if x < lo:\n return lo\n if x > hi:\n return hi\n return x\n\n\ndef moving_average(values, window):\n \"\"\"Trailing movi... |
repo_0001 | The coll helper called with ([('a0', 98.4), ('c1', 43.2), ('a2', 84.4), ('b3', 27.9), ('c4', 44.0), ('d5', 5.5), ('c6', 57.9)], 3) returned [('a0', 98.4), ('a2', 84.4), ('c6', 57.9), ('c4', 44.0)]; the correct result should be [('a0', 98.4), ('a2', 84.4), ('c6', 57.9)].
Recent changes touched `mod_coll_2`, so the regr... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "repo_0001"
},
"nodes": [
{
"id": "repo_0001/mod_math_0",
"type": "module",
"name": "mod_math_0",
"file": "repo_0001/mod_math_0.py",
"signature": "module mod_math_0",
"text": "module mod_math_0"
},
... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "sub_repo_0001/mod_coll_2.top_k_items"
},
"nodes": [
{
"id": "repo_0001/mod_coll_2",
"type": "module",
"name": "mod_coll_2",
"file": "repo_0001/mod_coll_2.py",
"signature": "module mod_coll_2",
"text": "mod... | --- a/repo_0001/mod_coll_2.py
+++ b/repo_0001/mod_coll_2.py
@@ -25,7 +25,7 @@
def top_k_items(items, k):
"""Top-k (name, score) pairs by descending score."""
ordered = sorted(items, key=lambda t: t[1], reverse=True)
- return ordered[:-k]
+ return ordered[:k]
def leaderboard_621(rows, k):
| {
"file": "repo_0001/mod_coll_2.py",
"function": "top_k_items"
} | [
"test_target.py.TestTarget"
] | wrong_aggregation | {
"repo_0001/mod_math_0.py": "\"\"\"mod_math_0 — generated helpers.\"\"\"\n\n\n\ndef moving_average(values, window):\n \"\"\"Trailing moving average over fixed windows.\"\"\"\n if window <= 0:\n window = 1\n out = []\n for i in range(len(values) - window + 1):\n chunk = values[i:i + window]\... |
repo_0001 | The math helper called with ([9.56, 17.15, 27.04, 1.05, 40.45], 4) returned [13.0, 21.0]; the correct result should be [13.7, 21.4225].
Recent changes touched `mod_math_0`, so the regression is likely there. Other callers of the same helper are unaffected or untested. | {
"directed": true,
"multigraph": false,
"graph": {
"name": "repo_0001"
},
"nodes": [
{
"id": "repo_0001/mod_math_0",
"type": "module",
"name": "mod_math_0",
"file": "repo_0001/mod_math_0.py",
"signature": "module mod_math_0",
"text": "module mod_math_0"
},
... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "sub_repo_0001/mod_math_0.moving_average_287"
},
"nodes": [
{
"id": "repo_0001/mod_math_0",
"type": "module",
"name": "mod_math_0",
"file": "repo_0001/mod_math_0.py",
"signature": "module mod_math_0",
"text... | --- a/repo_0001/mod_math_0.py
+++ b/repo_0001/mod_math_0.py
@@ -26,7 +26,7 @@
out = []
for i in range(len(values) - window + 1):
chunk = values[i:i + window]
- out.append(sum(chunk) // window)
+ out.append(sum(chunk) / window)
return out
| {
"file": "repo_0001/mod_math_0.py",
"function": "moving_average_287"
} | [
"test_target.py.TestTarget"
] | index_shift | {
"repo_0001/mod_math_0.py": "\"\"\"mod_math_0 — generated helpers.\"\"\"\n\n\n\ndef moving_average(values, window):\n \"\"\"Trailing moving average over fixed windows.\"\"\"\n if window <= 0:\n window = 1\n out = []\n for i in range(len(values) - window + 1):\n chunk = values[i:i + window]\... |
repo_0001 | The coll helper called with ([{'name': 'd0', 'score': 77.9, 'kind': 'a'}, {'name': 'b1', 'score': 66.4, 'kind': 'b'}, {'name': 'a2', 'score': 90.5, 'kind': 'b'}, {'name': 'a3', 'score': 55.9, 'kind': 'a'}, {'name': 'd4', 'score': 27.9, 'kind': 'a'}, {'name': 'b5', 'score': 91.0, 'kind': 'a'}, {'name': 'c6', 'score': 54... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "repo_0001"
},
"nodes": [
{
"id": "repo_0001/mod_math_0",
"type": "module",
"name": "mod_math_0",
"file": "repo_0001/mod_math_0.py",
"signature": "module mod_math_0",
"text": "module mod_math_0"
},
... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "sub_repo_0001/mod_coll_2.leaderboard_621"
},
"nodes": [
{
"id": "repo_0001/mod_coll_2",
"type": "module",
"name": "mod_coll_2",
"file": "repo_0001/mod_coll_2.py",
"signature": "module mod_coll_2",
"text": ... | --- a/repo_0001/mod_coll_2.py
+++ b/repo_0001/mod_coll_2.py
@@ -30,5 +30,5 @@
def leaderboard_621(rows, k):
"""Top-k (name, score) pairs from rows sorted by score desc."""
- scores = [(r['name'], r['kind']) for r in rows]
+ scores = [(r['name'], r['score']) for r in rows]
return top_k_items(scores, k... | {
"file": "repo_0001/mod_coll_2.py",
"function": "leaderboard_621"
} | [
"test_target.py.TestTarget"
] | index_shift | {
"repo_0001/mod_math_0.py": "\"\"\"mod_math_0 — generated helpers.\"\"\"\n\n\n\ndef moving_average(values, window):\n \"\"\"Trailing moving average over fixed windows.\"\"\"\n if window <= 0:\n window = 1\n out = []\n for i in range(len(values) - window + 1):\n chunk = values[i:i + window]\... |
repo_0002 | The coll helper called with ([('b0', 0.6), ('a1', 71.5), ('a2', 43.8), ('b3', 64.7), ('b4', 29.1), ('c5', 46.5), ('c6', 41.3)], 2) returned [('a1', 71.5), ('b3', 64.7), ('c5', 46.5), ('a2', 43.8), ('c6', 41.3)]; the correct result should be [('a1', 71.5), ('b3', 64.7)].
Recent changes touched `mod_coll_2`, so the regr... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "repo_0002"
},
"nodes": [
{
"id": "repo_0002/mod_math_0",
"type": "module",
"name": "mod_math_0",
"file": "repo_0002/mod_math_0.py",
"signature": "module mod_math_0",
"text": "module mod_math_0"
},
... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "sub_repo_0002/mod_coll_2.top_k_items"
},
"nodes": [
{
"id": "repo_0002/mod_coll_2",
"type": "module",
"name": "mod_coll_2",
"file": "repo_0002/mod_coll_2.py",
"signature": "module mod_coll_2",
"text": "mod... | --- a/repo_0002/mod_coll_2.py
+++ b/repo_0002/mod_coll_2.py
@@ -13,7 +13,7 @@
def top_k_items(items, k):
"""Top-k (name, score) pairs by descending score."""
ordered = sorted(items, key=lambda t: t[1], reverse=True)
- return ordered[:-k]
+ return ordered[:k]
def leaderboard(rows, k):
| {
"file": "repo_0002/mod_coll_2.py",
"function": "top_k_items"
} | [
"test_target.py.TestTarget"
] | off_by_one | {
"repo_0002/mod_math_0.py": "\"\"\"mod_math_0 — generated helpers.\"\"\"\n\n\n\ndef moving_average(values, window):\n \"\"\"Trailing moving average over fixed windows.\"\"\"\n if window <= 0:\n window = 1\n out = []\n for i in range(len(values) - window + 1):\n chunk = values[i:i + window]\... |
repo_0002 | The math helper called with ([1.02, 49.83, 2.74, 39.65, 15.04, 49.58, 3.1, 48.27, 5.28], 2) returned [25.0, 26.0, 21.0, 27.0, 32.0, 26.0, 25.0, 26.0]; the correct result should be [25.425, 26.285, 21.195, 27.345, 32.31, 26.34, 25.685000000000002, 26.775000000000002].
Recent changes touched `mod_math_0`, so the regress... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "repo_0002"
},
"nodes": [
{
"id": "repo_0002/mod_math_0",
"type": "module",
"name": "mod_math_0",
"file": "repo_0002/mod_math_0.py",
"signature": "module mod_math_0",
"text": "module mod_math_0"
},
... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "sub_repo_0002/mod_math_0.moving_average"
},
"nodes": [
{
"id": "repo_0002/mod_math_0",
"type": "module",
"name": "mod_math_0",
"file": "repo_0002/mod_math_0.py",
"signature": "module mod_math_0",
"text": "... | --- a/repo_0002/mod_math_0.py
+++ b/repo_0002/mod_math_0.py
@@ -9,7 +9,7 @@
out = []
for i in range(len(values) - window + 1):
chunk = values[i:i + window]
- out.append(sum(chunk) // window)
+ out.append(sum(chunk) / window)
return out
| {
"file": "repo_0002/mod_math_0.py",
"function": "moving_average"
} | [
"test_target.py.TestTarget"
] | wrong_operator | {
"repo_0002/mod_math_0.py": "\"\"\"mod_math_0 — generated helpers.\"\"\"\n\n\n\ndef moving_average(values, window):\n \"\"\"Trailing moving average over fixed windows.\"\"\"\n if window <= 0:\n window = 1\n out = []\n for i in range(len(values) - window + 1):\n chunk = values[i:i + window]\... |
repo_0003 | The coll helper called with ([0, 1, 2, 3, 4, 5, 6], 1) returned [[0], [2], [4], [6]]; the correct result should be [[0], [1], [2], [3], [4], [5], [6]].
Recent changes touched `mod_coll_2`, so the regression is likely there. Other callers of the same helper are unaffected or untested. | {
"directed": true,
"multigraph": false,
"graph": {
"name": "repo_0003"
},
"nodes": [
{
"id": "repo_0003/mod_math_0",
"type": "module",
"name": "mod_math_0",
"file": "repo_0003/mod_math_0.py",
"signature": "module mod_math_0",
"text": "module mod_math_0"
},
... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "sub_repo_0003/mod_coll_2.chunk_list_642"
},
"nodes": [
{
"id": "repo_0003/mod_coll_2",
"type": "module",
"name": "mod_coll_2",
"file": "repo_0003/mod_coll_2.py",
"signature": "module mod_coll_2",
"text": "... | --- a/repo_0003/mod_coll_2.py
+++ b/repo_0003/mod_coll_2.py
@@ -13,7 +13,7 @@
"""Split items into consecutive chunks of at most `size`."""
if size <= 0:
size = 1
- return [items[i:i + size] for i in range(0, len(items), size + 1)]
+ return [items[i:i + size] for i in range(0, len(items), size)]... | {
"file": "repo_0003/mod_coll_2.py",
"function": "chunk_list_642"
} | [
"test_target.py.TestTarget"
] | wrong_aggregation | {
"repo_0003/mod_math_0.py": "\"\"\"mod_math_0 — generated helpers.\"\"\"\n\n\n\ndef percentile_rank(values, x):\n \"\"\"Fraction of values strictly below x, clamped to [0, 1].\"\"\"\n below = sum(1 for v in values if v < x)\n return clamp_value(below / len(values), 0.0, 1.0)\n\n\ndef weighted_sum(values, we... |
repo_0003 | The config helper called with ({'w0': 0.79, 'y1': 0.54, 'x2': 0.96, 'z3': 0.4, 'z4': 0.02, 'z5': 0.42}, {'x0': 0.32, 'x1': 0.43, 'x2': 0.53, 'x3': 0.56, 'z4': 0.31, 'w5': 0.81}) returned {'w0': 0.79, 'y1': 0.54, 'x2': 0.96, 'z3': 0.4, 'z4': 0.02, 'z5': 0.42, 0.32: 'x0', 0.43: 'x1', 0.53: 'x2', 0.56: 'x3', 0.31: 'z4', 0... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "repo_0003"
},
"nodes": [
{
"id": "repo_0003/mod_math_0",
"type": "module",
"name": "mod_math_0",
"file": "repo_0003/mod_math_0.py",
"signature": "module mod_math_0",
"text": "module mod_math_0"
},
... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "sub_repo_0003/mod_config_3.merge_configs_265"
},
"nodes": [
{
"id": "repo_0003/mod_config_3",
"type": "module",
"name": "mod_config_3",
"file": "repo_0003/mod_config_3.py",
"signature": "module mod_config_3",
... | --- a/repo_0003/mod_config_3.py
+++ b/repo_0003/mod_config_3.py
@@ -35,5 +35,5 @@
"""Shallow-merge override into base; override wins."""
out = dict(base)
for k, v in override.items():
- out[v] = k
+ out[k] = v
return out
| {
"file": "repo_0003/mod_config_3.py",
"function": "merge_configs_265"
} | [
"test_target.py.TestTarget"
] | wrong_comparator | {
"repo_0003/mod_math_0.py": "\"\"\"mod_math_0 — generated helpers.\"\"\"\n\n\n\ndef percentile_rank(values, x):\n \"\"\"Fraction of values strictly below x, clamped to [0, 1].\"\"\"\n below = sum(1 for v in values if v < x)\n return clamp_value(below / len(values), 0.0, 1.0)\n\n\ndef weighted_sum(values, we... |
repo_0004 | The config helper called with ({'a': 0.71, 'b': 0.92, 'c': 0.86, 'd': 0.89}) returned {}; the correct result should be {'a': 0.71, 'b': 0.92, 'c': 0.86, 'd': 0.89}.
Recent changes touched `mod_config_3`, so the regression is likely there. Other callers of the same helper are unaffected or untested. | {
"directed": true,
"multigraph": false,
"graph": {
"name": "repo_0004"
},
"nodes": [
{
"id": "repo_0004/mod_math_0",
"type": "module",
"name": "mod_math_0",
"file": "repo_0004/mod_math_0.py",
"signature": "module mod_math_0",
"text": "module mod_math_0"
},
... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "sub_repo_0004/mod_config_3.prune_none"
},
"nodes": [
{
"id": "repo_0004/mod_config_3",
"type": "module",
"name": "mod_config_3",
"file": "repo_0004/mod_config_3.py",
"signature": "module mod_config_3",
"te... | --- a/repo_0004/mod_config_3.py
+++ b/repo_0004/mod_config_3.py
@@ -4,7 +4,7 @@
def prune_none(cfg):
"""Drop keys whose value is None."""
- return {k: v for k, v in cfg.items() if v is None}
+ return {k: v for k, v in cfg.items() if v is not None}
def prune_none_307(cfg):
| {
"file": "repo_0004/mod_config_3.py",
"function": "prune_none"
} | [
"test_target.py.TestTarget"
] | inverted_logic | {
"repo_0004/mod_math_0.py": "\"\"\"mod_math_0 — generated helpers.\"\"\"\n\n\n\ndef weighted_sum(values, weights):\n \"\"\"Weighted sum of values; weights are normalized to sum to 1.\"\"\"\n total = sum(weights)\n if total <= 0:\n return 0.0\n norm = [w / total for w in weights]\n return sum(v ... |
repo_0004 | The config helper called with ({'a': 0.61, 'b': 0.0, 'c': None, 'd': 0.17}) returned {'c': None}; the correct result should be {'a': 0.61, 'b': 0.0, 'd': 0.17}.
Recent changes touched `mod_config_3`, so the regression is likely there. Other callers of the same helper are unaffected or untested. | {
"directed": true,
"multigraph": false,
"graph": {
"name": "repo_0004"
},
"nodes": [
{
"id": "repo_0004/mod_math_0",
"type": "module",
"name": "mod_math_0",
"file": "repo_0004/mod_math_0.py",
"signature": "module mod_math_0",
"text": "module mod_math_0"
},
... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "sub_repo_0004/mod_config_3.prune_none_539"
},
"nodes": [
{
"id": "repo_0004/mod_config_3",
"type": "module",
"name": "mod_config_3",
"file": "repo_0004/mod_config_3.py",
"signature": "module mod_config_3",
... | --- a/repo_0004/mod_config_3.py
+++ b/repo_0004/mod_config_3.py
@@ -14,7 +14,7 @@
def prune_none_539(cfg):
"""Drop keys whose value is None."""
- return {k: v for k, v in cfg.items() if v is None}
+ return {k: v for k, v in cfg.items() if v is not None}
def prune_none_397(cfg):
| {
"file": "repo_0004/mod_config_3.py",
"function": "prune_none_539"
} | [
"test_target.py.TestTarget"
] | off_by_one | {
"repo_0004/mod_math_0.py": "\"\"\"mod_math_0 — generated helpers.\"\"\"\n\n\n\ndef weighted_sum(values, weights):\n \"\"\"Weighted sum of values; weights are normalized to sum to 1.\"\"\"\n total = sum(weights)\n if total <= 0:\n return 0.0\n norm = [w / total for w in weights]\n return sum(v ... |
repo_0004 | The config helper called with ({'a': 0.04, 'b': 0.8, 'c': None, 'd': 0.49}) returned {'c': None}; the correct result should be {'a': 0.04, 'b': 0.8, 'd': 0.49}.
Recent changes touched `mod_config_3`, so the regression is likely there. Other callers of the same helper are unaffected or untested. | {
"directed": true,
"multigraph": false,
"graph": {
"name": "repo_0004"
},
"nodes": [
{
"id": "repo_0004/mod_math_0",
"type": "module",
"name": "mod_math_0",
"file": "repo_0004/mod_math_0.py",
"signature": "module mod_math_0",
"text": "module mod_math_0"
},
... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "sub_repo_0004/mod_config_3.prune_none_483"
},
"nodes": [
{
"id": "repo_0004/mod_config_3",
"type": "module",
"name": "mod_config_3",
"file": "repo_0004/mod_config_3.py",
"signature": "module mod_config_3",
... | --- a/repo_0004/mod_config_3.py
+++ b/repo_0004/mod_config_3.py
@@ -24,4 +24,4 @@
def prune_none_483(cfg):
"""Drop keys whose value is None."""
- return {k: v for k, v in cfg.items() if v is None}
+ return {k: v for k, v in cfg.items() if v is not None}
| {
"file": "repo_0004/mod_config_3.py",
"function": "prune_none_483"
} | [
"test_target.py.TestTarget"
] | wrong_aggregation | {
"repo_0004/mod_math_0.py": "\"\"\"mod_math_0 — generated helpers.\"\"\"\n\n\n\ndef weighted_sum(values, weights):\n \"\"\"Weighted sum of values; weights are normalized to sum to 1.\"\"\"\n total = sum(weights)\n if total <= 0:\n return 0.0\n norm = [w / total for w in weights]\n return sum(v ... |
repo_0005 | The math helper called with ([99.94, 54.71, 21.54, 6.75, 62.46, 28.32, 83.78, 0.99]) returned [99.94, 54.71, 21.54, 6.75, 6.75, 6.75, 6.75, 0.99]; the correct result should be [99.94, 99.94, 99.94, 99.94, 99.94, 99.94, 99.94, 99.94].
Recent changes touched `mod_math_0`, so the regression is likely there. Other callers... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "repo_0005"
},
"nodes": [
{
"id": "repo_0005/mod_math_0",
"type": "module",
"name": "mod_math_0",
"file": "repo_0005/mod_math_0.py",
"signature": "module mod_math_0",
"text": "module mod_math_0"
},
... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "sub_repo_0005/mod_math_0.cumulative_max"
},
"nodes": [
{
"id": "repo_0005/mod_math_0",
"type": "module",
"name": "mod_math_0",
"file": "repo_0005/mod_math_0.py",
"signature": "module mod_math_0",
"text": "... | --- a/repo_0005/mod_math_0.py
+++ b/repo_0005/mod_math_0.py
@@ -36,7 +36,7 @@
out = []
cur = None
for v in values:
- cur = v if cur is None or v < cur else cur
+ cur = v if cur is None or v > cur else cur
out.append(cur)
return out
| {
"file": "repo_0005/mod_math_0.py",
"function": "cumulative_max"
} | [
"test_target.py.TestTarget"
] | index_shift | {
"repo_0005/mod_math_0.py": "\"\"\"mod_math_0 — generated helpers.\"\"\"\n\n\n\ndef summarize_values(values):\n \"\"\"Last moving average, clamped into [0, 100].\"\"\"\n if not values:\n return 0.0\n window = min(3, len(values))\n averages = moving_average_936(values, window)\n return clamp_val... |
repo_0005 | The config helper called with ({'z0': 0.61, 'z1': 0.64, 'x2': 0.21, 'x3': 0.27, 'x4': 0.09}, {'w0': 0.22, 'x1': 0.89, 'y2': 0.02}) returned {'z0': 0.61, 'z1': 0.64, 'x2': 0.21, 'x3': 0.27, 'x4': 0.09, 0.22: 'w0', 0.89: 'x1', 0.02: 'y2'}; the correct result should be {'z0': 0.61, 'z1': 0.64, 'x2': 0.21, 'x3': 0.27, 'x4'... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "repo_0005"
},
"nodes": [
{
"id": "repo_0005/mod_math_0",
"type": "module",
"name": "mod_math_0",
"file": "repo_0005/mod_math_0.py",
"signature": "module mod_math_0",
"text": "module mod_math_0"
},
... | {
"directed": true,
"multigraph": false,
"graph": {
"name": "sub_repo_0005/mod_config_3.merge_configs"
},
"nodes": [
{
"id": "repo_0005/mod_config_3",
"type": "module",
"name": "mod_config_3",
"file": "repo_0005/mod_config_3.py",
"signature": "module mod_config_3",
... | --- a/repo_0005/mod_config_3.py
+++ b/repo_0005/mod_config_3.py
@@ -6,7 +6,7 @@
"""Shallow-merge override into base; override wins."""
out = dict(base)
for k, v in override.items():
- out[v] = k
+ out[k] = v
return out
| {
"file": "repo_0005/mod_config_3.py",
"function": "merge_configs"
} | [
"test_target.py.TestTarget"
] | index_shift | {
"repo_0005/mod_math_0.py": "\"\"\"mod_math_0 — generated helpers.\"\"\"\n\n\n\ndef summarize_values(values):\n \"\"\"Last moving average, clamped into [0, 100].\"\"\"\n if not values:\n return 0.0\n window = min(3, len(values))\n averages = moving_average_936(values, window)\n return clamp_val... |
G4GraphSuite v1
Fully synthetic, seed-reproducible suite for code-graph reasoning research (paper track: Tasks & Benchmarks / Graph Reasoning). 240 procedural Python repos (50 of them 150–350-node mega graphs), every bug-localization and code-generation sample is verified by execution (fail-to-pass guarantee: the gold repo passes all tests, the buggy repo fails exactly the target test).
Subsets
| file | rows | task | verified |
|---|---|---|---|
| graph_qa.jsonl | 1138 | reachability, impact sets, k-hop callers, hubs, dead code, shortest paths over node-link code graphs | structural |
| bug_loc.jsonl | 446 | issue (observed symptom, no name leakage) -> localization + unified-diff patch; includes call-graph subgraph with same-module decoys | EXECUTED |
| codegen.jsonl | 90 | call-graph spec + stubs + contracts -> implementation | EXECUTED |
| graph_traces.jsonl | 304 | deterministic algorithmic reasoning traces (BFS layers, parent-chain reconstruction, localization eliminations) | derived |
Schema (bug_loc)
{repo, issue, graph(node-link), subgraph, gold_patch(unified diff), gold_location{file,function}, f2p, bug_kind, files}
Intended use
- SFT / GRPO training data for SWE-style agents (GRPO-ready: executable fail-to-pass tests are the verifiable reward; f2p field lists the tests).
- Evaluation of graph-reasoning methods, incl. corrupted-channel robustness (see the RACE-Graph method: hf.co/datasets/Nabidnur/g4-race-graph-v1).
Provenance & license
Generated by make_graphsuite.py (seed 20261004) — no real-world code, no
competition data. MIT. Benchmark items generated with an LLM-free procedural
generator; expected outputs computed by executing the gold implementation.
- Downloads last month
- 39