Genesis AI Code (DataSets)
Collection
Frontier-grade datasets for agentic, reasoning-driven AI software engineering.
•
6 items
•
Updated
Error code: DatasetGenerationError
Exception: ArrowInvalid
Message: JSON parse error: Column(/response) changed from array to object in row 1
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 174, in _generate_tables
df = pandas_read_json(f)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 38, in pandas_read_json
return pd.read_json(path_or_buf, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pandas/io/json/_json.py", line 815, in read_json
return json_reader.read()
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pandas/io/json/_json.py", line 1014, in read
obj = self._get_object_parser(self.data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pandas/io/json/_json.py", line 1040, in _get_object_parser
obj = FrameParser(json, **kwargs).parse()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pandas/io/json/_json.py", line 1176, in parse
self._parse()
File "/usr/local/lib/python3.12/site-packages/pandas/io/json/_json.py", line 1392, in _parse
ujson_loads(json, precise_float=self.precise_float), dtype=None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Trailing data
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1815, in _prepare_split_single
for _, table in generator:
^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 177, in _generate_tables
raise e
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 151, in _generate_tables
pa_table = paj.read_json(
^^^^^^^^^^^^^^
File "pyarrow/_json.pyx", line 342, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: JSON parse error: Column(/response) changed from array to object in row 1
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 1339, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 972, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 894, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 970, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1858, 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.
id
string | type
string | prompt
dict | response
string | meta
dict | artifacts
dict |
|---|---|---|---|---|---|
PATCH_000001
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
PATCH_000002
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
PATCH_000003
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000004
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000005
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n",
"logger.py": null
}
},
"task": "Fix: off_by_one. Provide unified diff."
}
|
--- a/stats.py
+++ b/stats.py
@@ -1,2 +1,2 @@
-def mean(xs):
- return sum(xs)/len(xs)-1
+def mean(xs):
+ return sum(xs)/len(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "off_by_one",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "stats.py",
"before_sha": "a96bab645c3c",
"after_sha": "0b212e2cd912",
"tests": "assert mean([2,4])==3"
}
}
|
PATCH_000006
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000007
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": "def log(msg):\n print('INFO: '+msg)\n"
}
},
"task": "Fix: log_sanitize. Provide unified diff."
}
|
--- a/logger.py
+++ b/logger.py
@@ -1,2 +1,3 @@
-def log(msg):
- print('INFO: '+msg)
+def log(msg):
+ safe=msg.replace('\n',' ').replace('\r',' ')
+ print('INFO: '+safe)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "log_sanitize",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "logger.py",
"before_sha": "9e0854185f87",
"after_sha": "634891f0841a",
"tests": "log('ok\\nEVIL') # single line"
}
}
|
PATCH_000008
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n",
"logger.py": null
}
},
"task": "Fix: off_by_one. Provide unified diff."
}
|
--- a/stats.py
+++ b/stats.py
@@ -1,2 +1,2 @@
-def mean(xs):
- return sum(xs)/len(xs)-1
+def mean(xs):
+ return sum(xs)/len(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "off_by_one",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "stats.py",
"before_sha": "a96bab645c3c",
"after_sha": "0b212e2cd912",
"tests": "assert mean([2,4])==3"
}
}
|
PATCH_000009
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000010
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000011
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000012
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000013
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000014
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000015
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000016
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n",
"logger.py": null
}
},
"task": "Fix: off_by_one. Provide unified diff."
}
|
--- a/stats.py
+++ b/stats.py
@@ -1,2 +1,2 @@
-def mean(xs):
- return sum(xs)/len(xs)-1
+def mean(xs):
+ return sum(xs)/len(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "off_by_one",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "stats.py",
"before_sha": "a96bab645c3c",
"after_sha": "0b212e2cd912",
"tests": "assert mean([2,4])==3"
}
}
|
PATCH_000017
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": "def log(msg):\n print('INFO: '+msg)\n"
}
},
"task": "Fix: log_sanitize. Provide unified diff."
}
|
--- a/logger.py
+++ b/logger.py
@@ -1,2 +1,3 @@
-def log(msg):
- print('INFO: '+msg)
+def log(msg):
+ safe=msg.replace('\n',' ').replace('\r',' ')
+ print('INFO: '+safe)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "log_sanitize",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "logger.py",
"before_sha": "9e0854185f87",
"after_sha": "634891f0841a",
"tests": "log('ok\\nEVIL') # single line"
}
}
|
PATCH_000018
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": "def log(msg):\n print('INFO: '+msg)\n"
}
},
"task": "Fix: log_sanitize. Provide unified diff."
}
|
--- a/logger.py
+++ b/logger.py
@@ -1,2 +1,3 @@
-def log(msg):
- print('INFO: '+msg)
+def log(msg):
+ safe=msg.replace('\n',' ').replace('\r',' ')
+ print('INFO: '+safe)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "log_sanitize",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "logger.py",
"before_sha": "9e0854185f87",
"after_sha": "634891f0841a",
"tests": "log('ok\\nEVIL') # single line"
}
}
|
PATCH_000019
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000020
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": "def log(msg):\n print('INFO: '+msg)\n"
}
},
"task": "Fix: log_sanitize. Provide unified diff."
}
|
--- a/logger.py
+++ b/logger.py
@@ -1,2 +1,3 @@
-def log(msg):
- print('INFO: '+msg)
+def log(msg):
+ safe=msg.replace('\n',' ').replace('\r',' ')
+ print('INFO: '+safe)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "log_sanitize",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "logger.py",
"before_sha": "9e0854185f87",
"after_sha": "634891f0841a",
"tests": "log('ok\\nEVIL') # single line"
}
}
|
PATCH_000021
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n",
"logger.py": null
}
},
"task": "Fix: off_by_one. Provide unified diff."
}
|
--- a/stats.py
+++ b/stats.py
@@ -1,2 +1,2 @@
-def mean(xs):
- return sum(xs)/len(xs)-1
+def mean(xs):
+ return sum(xs)/len(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "off_by_one",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "stats.py",
"before_sha": "a96bab645c3c",
"after_sha": "0b212e2cd912",
"tests": "assert mean([2,4])==3"
}
}
|
PATCH_000022
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000023
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
PATCH_000024
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": "def log(msg):\n print('INFO: '+msg)\n"
}
},
"task": "Fix: log_sanitize. Provide unified diff."
}
|
--- a/logger.py
+++ b/logger.py
@@ -1,2 +1,3 @@
-def log(msg):
- print('INFO: '+msg)
+def log(msg):
+ safe=msg.replace('\n',' ').replace('\r',' ')
+ print('INFO: '+safe)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "log_sanitize",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "logger.py",
"before_sha": "9e0854185f87",
"after_sha": "634891f0841a",
"tests": "log('ok\\nEVIL') # single line"
}
}
|
PATCH_000025
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000026
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000027
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000028
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": "def log(msg):\n print('INFO: '+msg)\n"
}
},
"task": "Fix: log_sanitize. Provide unified diff."
}
|
--- a/logger.py
+++ b/logger.py
@@ -1,2 +1,3 @@
-def log(msg):
- print('INFO: '+msg)
+def log(msg):
+ safe=msg.replace('\n',' ').replace('\r',' ')
+ print('INFO: '+safe)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "log_sanitize",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "logger.py",
"before_sha": "9e0854185f87",
"after_sha": "634891f0841a",
"tests": "log('ok\\nEVIL') # single line"
}
}
|
PATCH_000029
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000030
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
PATCH_000031
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000032
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n",
"logger.py": null
}
},
"task": "Fix: off_by_one. Provide unified diff."
}
|
--- a/stats.py
+++ b/stats.py
@@ -1,2 +1,2 @@
-def mean(xs):
- return sum(xs)/len(xs)-1
+def mean(xs):
+ return sum(xs)/len(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "off_by_one",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "stats.py",
"before_sha": "a96bab645c3c",
"after_sha": "0b212e2cd912",
"tests": "assert mean([2,4])==3"
}
}
|
PATCH_000033
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
PATCH_000034
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000035
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
PATCH_000036
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n",
"logger.py": null
}
},
"task": "Fix: off_by_one. Provide unified diff."
}
|
--- a/stats.py
+++ b/stats.py
@@ -1,2 +1,2 @@
-def mean(xs):
- return sum(xs)/len(xs)-1
+def mean(xs):
+ return sum(xs)/len(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "off_by_one",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "stats.py",
"before_sha": "a96bab645c3c",
"after_sha": "0b212e2cd912",
"tests": "assert mean([2,4])==3"
}
}
|
PATCH_000037
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000038
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": "def log(msg):\n print('INFO: '+msg)\n"
}
},
"task": "Fix: log_sanitize. Provide unified diff."
}
|
--- a/logger.py
+++ b/logger.py
@@ -1,2 +1,3 @@
-def log(msg):
- print('INFO: '+msg)
+def log(msg):
+ safe=msg.replace('\n',' ').replace('\r',' ')
+ print('INFO: '+safe)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "log_sanitize",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "logger.py",
"before_sha": "9e0854185f87",
"after_sha": "634891f0841a",
"tests": "log('ok\\nEVIL') # single line"
}
}
|
PATCH_000039
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": "def log(msg):\n print('INFO: '+msg)\n"
}
},
"task": "Fix: log_sanitize. Provide unified diff."
}
|
--- a/logger.py
+++ b/logger.py
@@ -1,2 +1,3 @@
-def log(msg):
- print('INFO: '+msg)
+def log(msg):
+ safe=msg.replace('\n',' ').replace('\r',' ')
+ print('INFO: '+safe)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "log_sanitize",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "logger.py",
"before_sha": "9e0854185f87",
"after_sha": "634891f0841a",
"tests": "log('ok\\nEVIL') # single line"
}
}
|
PATCH_000040
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000041
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000042
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000043
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000044
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000045
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
PATCH_000046
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000047
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": "def log(msg):\n print('INFO: '+msg)\n"
}
},
"task": "Fix: log_sanitize. Provide unified diff."
}
|
--- a/logger.py
+++ b/logger.py
@@ -1,2 +1,3 @@
-def log(msg):
- print('INFO: '+msg)
+def log(msg):
+ safe=msg.replace('\n',' ').replace('\r',' ')
+ print('INFO: '+safe)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "log_sanitize",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "logger.py",
"before_sha": "9e0854185f87",
"after_sha": "634891f0841a",
"tests": "log('ok\\nEVIL') # single line"
}
}
|
PATCH_000048
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000049
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000050
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000051
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
PATCH_000052
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
PATCH_000053
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000054
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": "def log(msg):\n print('INFO: '+msg)\n"
}
},
"task": "Fix: log_sanitize. Provide unified diff."
}
|
--- a/logger.py
+++ b/logger.py
@@ -1,2 +1,3 @@
-def log(msg):
- print('INFO: '+msg)
+def log(msg):
+ safe=msg.replace('\n',' ').replace('\r',' ')
+ print('INFO: '+safe)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "log_sanitize",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "logger.py",
"before_sha": "9e0854185f87",
"after_sha": "634891f0841a",
"tests": "log('ok\\nEVIL') # single line"
}
}
|
PATCH_000055
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
PATCH_000056
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n",
"logger.py": null
}
},
"task": "Fix: off_by_one. Provide unified diff."
}
|
--- a/stats.py
+++ b/stats.py
@@ -1,2 +1,2 @@
-def mean(xs):
- return sum(xs)/len(xs)-1
+def mean(xs):
+ return sum(xs)/len(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "off_by_one",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "stats.py",
"before_sha": "a96bab645c3c",
"after_sha": "0b212e2cd912",
"tests": "assert mean([2,4])==3"
}
}
|
PATCH_000057
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n",
"logger.py": null
}
},
"task": "Fix: off_by_one. Provide unified diff."
}
|
--- a/stats.py
+++ b/stats.py
@@ -1,2 +1,2 @@
-def mean(xs):
- return sum(xs)/len(xs)-1
+def mean(xs):
+ return sum(xs)/len(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "off_by_one",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "stats.py",
"before_sha": "a96bab645c3c",
"after_sha": "0b212e2cd912",
"tests": "assert mean([2,4])==3"
}
}
|
PATCH_000058
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n",
"logger.py": null
}
},
"task": "Fix: off_by_one. Provide unified diff."
}
|
--- a/stats.py
+++ b/stats.py
@@ -1,2 +1,2 @@
-def mean(xs):
- return sum(xs)/len(xs)-1
+def mean(xs):
+ return sum(xs)/len(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "off_by_one",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "stats.py",
"before_sha": "a96bab645c3c",
"after_sha": "0b212e2cd912",
"tests": "assert mean([2,4])==3"
}
}
|
PATCH_000059
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n",
"logger.py": null
}
},
"task": "Fix: off_by_one. Provide unified diff."
}
|
--- a/stats.py
+++ b/stats.py
@@ -1,2 +1,2 @@
-def mean(xs):
- return sum(xs)/len(xs)-1
+def mean(xs):
+ return sum(xs)/len(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "off_by_one",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "stats.py",
"before_sha": "a96bab645c3c",
"after_sha": "0b212e2cd912",
"tests": "assert mean([2,4])==3"
}
}
|
PATCH_000060
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000061
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000062
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000063
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000064
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": "def log(msg):\n print('INFO: '+msg)\n"
}
},
"task": "Fix: log_sanitize. Provide unified diff."
}
|
--- a/logger.py
+++ b/logger.py
@@ -1,2 +1,3 @@
-def log(msg):
- print('INFO: '+msg)
+def log(msg):
+ safe=msg.replace('\n',' ').replace('\r',' ')
+ print('INFO: '+safe)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "log_sanitize",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "logger.py",
"before_sha": "9e0854185f87",
"after_sha": "634891f0841a",
"tests": "log('ok\\nEVIL') # single line"
}
}
|
PATCH_000065
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": "def log(msg):\n print('INFO: '+msg)\n"
}
},
"task": "Fix: log_sanitize. Provide unified diff."
}
|
--- a/logger.py
+++ b/logger.py
@@ -1,2 +1,3 @@
-def log(msg):
- print('INFO: '+msg)
+def log(msg):
+ safe=msg.replace('\n',' ').replace('\r',' ')
+ print('INFO: '+safe)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "log_sanitize",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "logger.py",
"before_sha": "9e0854185f87",
"after_sha": "634891f0841a",
"tests": "log('ok\\nEVIL') # single line"
}
}
|
PATCH_000066
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000067
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
PATCH_000068
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000069
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n",
"logger.py": null
}
},
"task": "Fix: off_by_one. Provide unified diff."
}
|
--- a/stats.py
+++ b/stats.py
@@ -1,2 +1,2 @@
-def mean(xs):
- return sum(xs)/len(xs)-1
+def mean(xs):
+ return sum(xs)/len(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "off_by_one",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "stats.py",
"before_sha": "a96bab645c3c",
"after_sha": "0b212e2cd912",
"tests": "assert mean([2,4])==3"
}
}
|
PATCH_000070
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000071
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
PATCH_000072
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": "def log(msg):\n print('INFO: '+msg)\n"
}
},
"task": "Fix: log_sanitize. Provide unified diff."
}
|
--- a/logger.py
+++ b/logger.py
@@ -1,2 +1,3 @@
-def log(msg):
- print('INFO: '+msg)
+def log(msg):
+ safe=msg.replace('\n',' ').replace('\r',' ')
+ print('INFO: '+safe)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "log_sanitize",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "logger.py",
"before_sha": "9e0854185f87",
"after_sha": "634891f0841a",
"tests": "log('ok\\nEVIL') # single line"
}
}
|
PATCH_000073
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000074
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": "def log(msg):\n print('INFO: '+msg)\n"
}
},
"task": "Fix: log_sanitize. Provide unified diff."
}
|
--- a/logger.py
+++ b/logger.py
@@ -1,2 +1,3 @@
-def log(msg):
- print('INFO: '+msg)
+def log(msg):
+ safe=msg.replace('\n',' ').replace('\r',' ')
+ print('INFO: '+safe)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "log_sanitize",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "logger.py",
"before_sha": "9e0854185f87",
"after_sha": "634891f0841a",
"tests": "log('ok\\nEVIL') # single line"
}
}
|
PATCH_000075
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": "def log(msg):\n print('INFO: '+msg)\n"
}
},
"task": "Fix: log_sanitize. Provide unified diff."
}
|
--- a/logger.py
+++ b/logger.py
@@ -1,2 +1,3 @@
-def log(msg):
- print('INFO: '+msg)
+def log(msg):
+ safe=msg.replace('\n',' ').replace('\r',' ')
+ print('INFO: '+safe)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "log_sanitize",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "logger.py",
"before_sha": "9e0854185f87",
"after_sha": "634891f0841a",
"tests": "log('ok\\nEVIL') # single line"
}
}
|
PATCH_000076
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000077
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n",
"logger.py": null
}
},
"task": "Fix: off_by_one. Provide unified diff."
}
|
--- a/stats.py
+++ b/stats.py
@@ -1,2 +1,2 @@
-def mean(xs):
- return sum(xs)/len(xs)-1
+def mean(xs):
+ return sum(xs)/len(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "off_by_one",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "stats.py",
"before_sha": "a96bab645c3c",
"after_sha": "0b212e2cd912",
"tests": "assert mean([2,4])==3"
}
}
|
PATCH_000078
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
PATCH_000079
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": "def log(msg):\n print('INFO: '+msg)\n"
}
},
"task": "Fix: log_sanitize. Provide unified diff."
}
|
--- a/logger.py
+++ b/logger.py
@@ -1,2 +1,3 @@
-def log(msg):
- print('INFO: '+msg)
+def log(msg):
+ safe=msg.replace('\n',' ').replace('\r',' ')
+ print('INFO: '+safe)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "log_sanitize",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "logger.py",
"before_sha": "9e0854185f87",
"after_sha": "634891f0841a",
"tests": "log('ok\\nEVIL') # single line"
}
}
|
PATCH_000080
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
PATCH_000081
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
PATCH_000082
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000083
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000084
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": "def log(msg):\n print('INFO: '+msg)\n"
}
},
"task": "Fix: log_sanitize. Provide unified diff."
}
|
--- a/logger.py
+++ b/logger.py
@@ -1,2 +1,3 @@
-def log(msg):
- print('INFO: '+msg)
+def log(msg):
+ safe=msg.replace('\n',' ').replace('\r',' ')
+ print('INFO: '+safe)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "log_sanitize",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "logger.py",
"before_sha": "9e0854185f87",
"after_sha": "634891f0841a",
"tests": "log('ok\\nEVIL') # single line"
}
}
|
PATCH_000085
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000086
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n",
"logger.py": null
}
},
"task": "Fix: off_by_one. Provide unified diff."
}
|
--- a/stats.py
+++ b/stats.py
@@ -1,2 +1,2 @@
-def mean(xs):
- return sum(xs)/len(xs)-1
+def mean(xs):
+ return sum(xs)/len(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "off_by_one",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "stats.py",
"before_sha": "a96bab645c3c",
"after_sha": "0b212e2cd912",
"tests": "assert mean([2,4])==3"
}
}
|
PATCH_000087
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000088
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n",
"logger.py": null
}
},
"task": "Fix: off_by_one. Provide unified diff."
}
|
--- a/stats.py
+++ b/stats.py
@@ -1,2 +1,2 @@
-def mean(xs):
- return sum(xs)/len(xs)-1
+def mean(xs):
+ return sum(xs)/len(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "off_by_one",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "stats.py",
"before_sha": "a96bab645c3c",
"after_sha": "0b212e2cd912",
"tests": "assert mean([2,4])==3"
}
}
|
PATCH_000089
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n",
"logger.py": null
}
},
"task": "Fix: off_by_one. Provide unified diff."
}
|
--- a/stats.py
+++ b/stats.py
@@ -1,2 +1,2 @@
-def mean(xs):
- return sum(xs)/len(xs)-1
+def mean(xs):
+ return sum(xs)/len(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "off_by_one",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "stats.py",
"before_sha": "a96bab645c3c",
"after_sha": "0b212e2cd912",
"tests": "assert mean([2,4])==3"
}
}
|
PATCH_000090
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000091
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
PATCH_000092
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
PATCH_000093
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000094
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000095
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n",
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: perf_clarity. Provide unified diff."
}
|
--- a/calc.py
+++ b/calc.py
@@ -1,5 +1,2 @@
-def total(xs):
- s=0
- for x in xs:
- s=s+x
- return s
+def total(xs):
+ return sum(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "perf_clarity",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "calc.py",
"before_sha": "3a978e6a77db",
"after_sha": "512a5d2f31c9",
"tests": "assert total([1,2,3])==6"
}
}
|
PATCH_000096
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n",
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: null_default. Provide unified diff."
}
|
--- a/config.py
+++ b/config.py
@@ -1,2 +1,3 @@
-def get_port(cfg):
- return int(cfg['PORT'])
+def get_port(cfg):
+ v=cfg.get('PORT')
+ return int(v) if v is not None else 8080
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "null_default",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "config.py",
"before_sha": "526cebd99736",
"after_sha": "02d8c9b49180",
"tests": "assert get_port({})==8080"
}
}
|
PATCH_000097
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n",
"logger.py": null
}
},
"task": "Fix: off_by_one. Provide unified diff."
}
|
--- a/stats.py
+++ b/stats.py
@@ -1,2 +1,2 @@
-def mean(xs):
- return sum(xs)/len(xs)-1
+def mean(xs):
+ return sum(xs)/len(xs)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "off_by_one",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "stats.py",
"before_sha": "a96bab645c3c",
"after_sha": "0b212e2cd912",
"tests": "assert mean([2,4])==3"
}
}
|
PATCH_000098
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": null,
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": "def log(msg):\n print('INFO: '+msg)\n"
}
},
"task": "Fix: log_sanitize. Provide unified diff."
}
|
--- a/logger.py
+++ b/logger.py
@@ -1,2 +1,3 @@
-def log(msg):
- print('INFO: '+msg)
+def log(msg):
+ safe=msg.replace('\n',' ').replace('\r',' ')
+ print('INFO: '+safe)
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "log_sanitize",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "logger.py",
"before_sha": "9e0854185f87",
"after_sha": "634891f0841a",
"tests": "log('ok\\nEVIL') # single line"
}
}
|
PATCH_000099
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
PATCH_000100
|
code_patch
|
{
"repo_snapshot": {
"files": {
"test_math.py": "def test_add():\n assert add(2,2)==5\n",
"config.py": null,
"calc.py": null,
"stats.py": null,
"logger.py": null
}
},
"task": "Fix: test_fix. Provide unified diff."
}
|
--- a/test_math.py
+++ b/test_math.py
@@ -1,2 +1,2 @@
-def test_add():
- assert add(2,2)==5
+def test_add():
+ assert add(2,2)==4
|
{
"developer_brand": "Within Us AI",
"domain": "code",
"subdomain": "test_fix",
"difficulty": "advanced",
"tags": [
"code",
"diff",
"debug"
],
"verification": "diff_applies",
"safety": "allowed",
"license": "apache-2.0",
"source": "WithinUsAI/Genesis_FineTune_Core_25k",
"format_version": "1.0",
"seed": 1147
}
|
{
"patch": {
"file": "test_math.py",
"before_sha": "cb62ce66420c",
"after_sha": "87ee370e5a55",
"tests": "pytest -q"
}
}
|
Developer / Brand: Within Us AI
A Genesis-style, end-to-end advanced fine-tuning starter pack: five datasets (5k each) packaged together to train an assistant’s behavioral core.
All records share the same top-level schema: id, type, prompt, response, meta, and optional artifacts.
By type: { "instruction_multiturn": 5000, "tool_use": 5000, "preference_pair": 5000, "long_context_retrieval": 5000, "code_patch": 5000 }
By safety label: { "allowed": 24011, "refuse": 989 }
Within Us AI — Genesis_FineTune_Core_25k
Apache-2.0