{"id": "PATCH_000001", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000002", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000003", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000004", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000005", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000006", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000007", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000008", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000009", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000010", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000011", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000012", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000013", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000014", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000015", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000016", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000017", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000018", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000019", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000020", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000021", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000022", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000023", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000024", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000025", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000026", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000027", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000028", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000029", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000030", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000031", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000032", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000033", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000034", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000035", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000036", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000037", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000038", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000039", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000040", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000041", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000042", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000043", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000044", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000045", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000046", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000047", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000048", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000049", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000050", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000051", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000052", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000053", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000054", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000055", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000056", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000057", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000058", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000059", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000060", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000061", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000062", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000063", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000064", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000065", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000066", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000067", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000068", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000069", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000070", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000071", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000072", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000073", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000074", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000075", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000076", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000077", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000078", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000079", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000080", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000081", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000082", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000083", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000084", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000085", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000086", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000087", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000088", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000089", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000090", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000091", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000092", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000093", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000094", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000095", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000096", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000097", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000098", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000099", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000100", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000101", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000102", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000103", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000104", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000105", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000106", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000107", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000108", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000109", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000110", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000111", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000112", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000113", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000114", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000115", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000116", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000117", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000118", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000119", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000120", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000121", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000122", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000123", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000124", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000125", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000126", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000127", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000128", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000129", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000130", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000131", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000132", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000133", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000134", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000135", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000136", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000137", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000138", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000139", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000140", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000141", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000142", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000143", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000144", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000145", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000146", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000147", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000148", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000149", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000150", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000151", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000152", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000153", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000154", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000155", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000156", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000157", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000158", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000159", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000160", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000161", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000162", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000163", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000164", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000165", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000166", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000167", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000168", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000169", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000170", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000171", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000172", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000173", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000174", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000175", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000176", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000177", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000178", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000179", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000180", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000181", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000182", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000183", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000184", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000185", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000186", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000187", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000188", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000189", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000190", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000191", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000192", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000193", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000194", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000195", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000196", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000197", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000198", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000199", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000200", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000201", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000202", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000203", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000204", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000205", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000206", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000207", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000208", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000209", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000210", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000211", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000212", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000213", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000214", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000215", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000216", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000217", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000218", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000219", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000220", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000221", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000222", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000223", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000224", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000225", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000226", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000227", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000228", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000229", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000230", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000231", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000232", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000233", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000234", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000235", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000236", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000237", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000238", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000239", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000240", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000241", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000242", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000243", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000244", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000245", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000246", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000247", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000248", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000249", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000250", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000251", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000252", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000253", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000254", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000255", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000256", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000257", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000258", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000259", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000260", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000261", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000262", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000263", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000264", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000265", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000266", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000267", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000268", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000269", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000270", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000271", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000272", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000273", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000274", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000275", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000276", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000277", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000278", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000279", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000280", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000281", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000282", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000283", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000284", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000285", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000286", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000287", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000288", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000289", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000290", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000291", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000292", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000293", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000294", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000295", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000296", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000297", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000298", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000299", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000300", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000301", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000302", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000303", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000304", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000305", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000306", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000307", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000308", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000309", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000310", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000311", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000312", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000313", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000314", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000315", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000316", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000317", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000318", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000319", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000320", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000321", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000322", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000323", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000324", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000325", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000326", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000327", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000328", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000329", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000330", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000331", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000332", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000333", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000334", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000335", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000336", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000337", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000338", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000339", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000340", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000341", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000342", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000343", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000344", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000345", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000346", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000347", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000348", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000349", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000350", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000351", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000352", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000353", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000354", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000355", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000356", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000357", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000358", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000359", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000360", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000361", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000362", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000363", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000364", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000365", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000366", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000367", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000368", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000369", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000370", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000371", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000372", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000373", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000374", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000375", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000376", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000377", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000378", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000379", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000380", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000381", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000382", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000383", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000384", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000385", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000386", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000387", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000388", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000389", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000390", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000391", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000392", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000393", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000394", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000395", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000396", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000397", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000398", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000399", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000400", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000401", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000402", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000403", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000404", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000405", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000406", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000407", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000408", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000409", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000410", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000411", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000412", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000413", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000414", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000415", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000416", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000417", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000418", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000419", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000420", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000421", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000422", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000423", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000424", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000425", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000426", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000427", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000428", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000429", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000430", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000431", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000432", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000433", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000434", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000435", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000436", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000437", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000438", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000439", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000440", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000441", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000442", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000443", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000444", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000445", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000446", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000447", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000448", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000449", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000450", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000451", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000452", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000453", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000454", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000455", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000456", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000457", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000458", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000459", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000460", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000461", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000462", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000463", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000464", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000465", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000466", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000467", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000468", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000469", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000470", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000471", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000472", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000473", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000474", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000475", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000476", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000477", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000478", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000479", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000480", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000481", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000482", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000483", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000484", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000485", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000486", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000487", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000488", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000489", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000490", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000491", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000492", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000493", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000494", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000495", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000496", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000497", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000498", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000499", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000500", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000501", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000502", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000503", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000504", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000505", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000506", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000507", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000508", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000509", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000510", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000511", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000512", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000513", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000514", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000515", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000516", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000517", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000518", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000519", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000520", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000521", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000522", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000523", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000524", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000525", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000526", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000527", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000528", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000529", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000530", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000531", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000532", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000533", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000534", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000535", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000536", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000537", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000538", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000539", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000540", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000541", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000542", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000543", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000544", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000545", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000546", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000547", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000548", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000549", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000550", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000551", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000552", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000553", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000554", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000555", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000556", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000557", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000558", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000559", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000560", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000561", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000562", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000563", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000564", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000565", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000566", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000567", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000568", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000569", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000570", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000571", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000572", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000573", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000574", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000575", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000576", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000577", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000578", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000579", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000580", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000581", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000582", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000583", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000584", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000585", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000586", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000587", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000588", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000589", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000590", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000591", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000592", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000593", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000594", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000595", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000596", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000597", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000598", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000599", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000600", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000601", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000602", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000603", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000604", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000605", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000606", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000607", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000608", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000609", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000610", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000611", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000612", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000613", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000614", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000615", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000616", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000617", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000618", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000619", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000620", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000621", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000622", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000623", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000624", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000625", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000626", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000627", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000628", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000629", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000630", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000631", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000632", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000633", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000634", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000635", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000636", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000637", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000638", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000639", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000640", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000641", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000642", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000643", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000644", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000645", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000646", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000647", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000648", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000649", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000650", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000651", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000652", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000653", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000654", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000655", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000656", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000657", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000658", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000659", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000660", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000661", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000662", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000663", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000664", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000665", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000666", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000667", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000668", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000669", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000670", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000671", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000672", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000673", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000674", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000675", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000676", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000677", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000678", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000679", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000680", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000681", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000682", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000683", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000684", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000685", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000686", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000687", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000688", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000689", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000690", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000691", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000692", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000693", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000694", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000695", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000696", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000697", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000698", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000699", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000700", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000701", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000702", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000703", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000704", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000705", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000706", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000707", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000708", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000709", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000710", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000711", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000712", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000713", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000714", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000715", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000716", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000717", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000718", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000719", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000720", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000721", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000722", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000723", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000724", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000725", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000726", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000727", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000728", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000729", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000730", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000731", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000732", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000733", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000734", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000735", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000736", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000737", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000738", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000739", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000740", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000741", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000742", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000743", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000744", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000745", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000746", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000747", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000748", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000749", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000750", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000751", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000752", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000753", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000754", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000755", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000756", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000757", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000758", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000759", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000760", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000761", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000762", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000763", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000764", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000765", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000766", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000767", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000768", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000769", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000770", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000771", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000772", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000773", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000774", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000775", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000776", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000777", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000778", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000779", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000780", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000781", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000782", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000783", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000784", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000785", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000786", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000787", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000788", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000789", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000790", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000791", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000792", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000793", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000794", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000795", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000796", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000797", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000798", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000799", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000800", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000801", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000802", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000803", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000804", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000805", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000806", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000807", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000808", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000809", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000810", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000811", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000812", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000813", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000814", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000815", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000816", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000817", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000818", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000819", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000820", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000821", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000822", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000823", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000824", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000825", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000826", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000827", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000828", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000829", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000830", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000831", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000832", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000833", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000834", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000835", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000836", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000837", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000838", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000839", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000840", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000841", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000842", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000843", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000844", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000845", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000846", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000847", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000848", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000849", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000850", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000851", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000852", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000853", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000854", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000855", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000856", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000857", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000858", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000859", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000860", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000861", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000862", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000863", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000864", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000865", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000866", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000867", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000868", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000869", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000870", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000871", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000872", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000873", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000874", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000875", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000876", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000877", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000878", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000879", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000880", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000881", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000882", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000883", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000884", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000885", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000886", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000887", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000888", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000889", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000890", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000891", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000892", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000893", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000894", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000895", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000896", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000897", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000898", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000899", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000900", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000901", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000902", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000903", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000904", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000905", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000906", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000907", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000908", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000909", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000910", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000911", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000912", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000913", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000914", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000915", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000916", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000917", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000918", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000919", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000920", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000921", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000922", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000923", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000924", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000925", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000926", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000927", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000928", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000929", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000930", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000931", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000932", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000933", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000934", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000935", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000936", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000937", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000938", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000939", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000940", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000941", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000942", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000943", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000944", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000945", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000946", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000947", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000948", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000949", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000950", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000951", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000952", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000953", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000954", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000955", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000956", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000957", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000958", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000959", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000960", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000961", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000962", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000963", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000964", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000965", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000966", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000967", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000968", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000969", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000970", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000971", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000972", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000973", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000974", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000975", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000976", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000977", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000978", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000979", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000980", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000981", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000982", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000983", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000984", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000985", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000986", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_000987", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000988", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000989", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000990", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000991", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_000992", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_000993", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000994", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000995", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000996", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000997", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_000998", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_000999", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001000", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001001", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001002", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001003", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001004", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001005", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001006", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001007", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001008", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001009", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001010", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001011", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001012", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001013", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001014", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001015", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001016", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001017", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001018", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001019", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001020", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001021", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001022", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001023", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001024", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001025", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001026", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001027", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001028", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001029", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001030", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001031", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001032", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001033", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001034", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001035", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001036", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001037", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001038", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001039", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001040", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001041", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001042", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001043", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001044", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001045", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001046", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001047", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001048", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001049", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001050", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001051", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001052", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001053", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001054", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001055", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001056", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001057", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001058", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001059", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001060", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001061", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001062", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001063", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001064", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001065", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001066", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001067", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001068", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001069", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001070", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001071", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001072", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001073", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001074", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001075", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001076", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001077", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001078", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001079", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001080", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001081", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001082", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001083", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001084", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001085", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001086", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001087", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001088", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001089", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001090", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001091", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001092", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001093", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001094", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001095", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001096", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001097", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001098", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001099", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001100", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001101", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001102", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001103", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001104", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001105", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001106", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001107", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001108", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001109", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001110", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001111", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001112", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001113", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001114", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001115", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001116", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001117", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001118", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001119", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001120", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001121", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001122", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001123", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001124", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001125", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001126", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001127", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001128", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001129", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001130", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001131", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001132", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001133", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001134", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001135", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001136", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001137", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001138", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001139", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001140", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001141", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001142", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001143", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001144", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001145", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001146", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001147", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001148", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001149", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001150", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001151", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001152", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001153", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001154", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001155", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001156", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001157", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001158", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001159", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001160", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001161", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001162", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001163", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001164", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001165", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001166", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001167", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001168", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001169", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001170", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001171", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001172", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001173", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001174", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001175", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001176", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001177", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001178", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001179", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001180", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001181", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001182", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001183", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001184", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001185", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001186", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001187", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001188", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001189", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001190", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001191", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001192", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001193", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001194", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001195", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001196", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001197", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001198", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001199", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001200", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001201", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001202", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001203", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001204", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001205", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001206", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001207", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001208", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001209", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001210", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001211", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001212", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001213", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001214", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001215", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001216", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001217", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001218", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001219", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001220", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001221", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001222", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001223", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001224", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001225", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001226", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001227", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001228", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001229", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001230", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001231", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001232", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001233", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001234", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001235", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001236", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001237", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001238", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001239", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001240", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001241", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001242", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001243", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001244", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001245", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001246", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001247", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001248", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001249", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001250", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001251", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001252", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001253", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001254", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001255", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001256", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001257", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001258", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001259", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001260", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001261", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001262", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001263", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001264", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001265", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001266", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001267", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001268", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001269", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001270", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001271", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001272", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001273", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001274", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001275", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001276", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001277", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001278", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001279", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001280", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001281", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001282", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001283", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001284", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001285", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001286", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001287", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001288", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001289", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001290", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001291", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001292", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001293", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001294", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001295", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001296", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001297", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001298", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001299", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001300", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001301", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001302", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001303", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001304", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001305", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001306", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001307", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001308", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001309", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001310", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001311", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001312", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001313", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001314", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001315", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001316", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001317", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001318", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001319", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001320", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001321", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001322", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001323", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001324", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001325", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001326", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001327", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001328", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001329", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001330", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001331", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001332", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001333", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001334", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001335", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001336", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001337", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001338", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001339", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001340", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001341", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001342", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001343", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001344", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001345", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001346", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001347", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001348", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001349", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001350", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001351", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001352", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001353", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001354", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001355", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001356", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001357", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001358", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001359", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001360", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001361", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001362", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001363", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001364", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001365", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001366", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001367", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001368", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001369", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001370", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001371", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001372", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001373", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001374", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001375", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001376", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001377", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001378", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001379", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001380", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001381", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001382", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001383", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001384", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001385", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001386", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001387", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001388", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001389", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001390", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001391", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001392", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001393", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001394", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001395", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001396", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001397", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001398", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001399", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001400", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001401", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001402", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001403", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001404", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001405", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001406", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001407", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001408", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001409", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001410", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001411", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001412", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001413", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001414", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001415", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001416", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001417", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001418", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001419", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001420", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001421", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001422", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001423", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001424", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001425", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001426", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001427", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001428", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001429", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001430", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001431", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001432", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001433", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001434", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001435", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001436", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001437", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001438", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001439", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001440", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001441", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001442", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001443", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001444", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001445", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001446", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001447", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001448", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001449", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001450", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001451", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001452", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001453", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001454", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001455", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001456", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001457", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001458", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001459", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001460", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001461", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001462", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001463", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001464", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001465", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001466", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001467", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001468", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001469", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001470", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001471", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001472", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001473", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001474", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001475", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001476", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001477", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001478", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001479", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001480", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001481", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001482", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001483", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001484", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001485", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001486", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001487", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001488", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001489", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001490", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001491", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001492", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001493", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001494", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001495", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001496", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001497", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001498", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001499", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001500", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001501", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001502", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001503", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001504", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001505", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001506", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001507", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001508", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001509", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001510", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001511", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001512", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001513", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001514", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001515", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001516", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001517", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001518", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001519", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001520", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001521", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001522", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001523", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001524", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001525", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001526", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001527", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001528", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001529", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001530", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001531", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001532", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001533", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001534", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001535", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001536", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001537", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001538", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001539", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001540", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001541", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001542", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001543", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001544", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001545", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001546", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001547", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001548", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001549", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001550", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001551", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001552", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001553", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001554", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001555", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001556", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001557", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001558", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001559", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001560", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001561", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001562", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001563", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001564", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001565", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001566", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001567", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001568", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001569", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001570", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001571", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001572", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001573", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001574", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001575", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001576", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001577", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001578", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001579", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001580", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001581", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001582", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001583", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001584", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001585", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001586", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001587", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001588", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001589", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001590", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001591", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001592", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001593", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001594", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001595", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001596", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001597", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001598", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001599", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001600", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001601", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001602", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001603", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001604", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001605", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001606", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001607", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001608", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001609", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001610", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001611", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001612", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001613", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001614", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001615", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001616", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001617", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001618", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001619", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001620", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001621", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001622", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001623", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001624", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001625", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001626", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001627", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001628", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001629", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001630", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001631", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001632", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001633", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001634", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001635", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001636", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001637", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001638", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001639", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001640", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001641", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001642", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001643", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001644", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001645", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001646", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001647", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001648", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001649", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001650", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001651", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001652", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001653", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001654", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001655", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001656", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001657", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001658", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001659", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001660", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001661", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001662", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001663", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001664", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001665", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001666", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001667", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001668", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001669", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001670", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001671", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001672", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001673", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001674", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001675", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001676", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001677", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001678", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001679", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001680", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001681", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001682", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001683", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001684", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001685", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001686", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001687", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001688", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001689", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001690", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001691", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001692", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001693", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001694", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001695", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001696", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001697", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001698", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001699", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001700", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001701", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001702", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001703", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001704", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001705", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001706", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001707", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001708", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001709", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001710", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001711", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001712", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001713", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001714", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001715", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001716", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001717", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001718", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001719", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001720", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001721", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001722", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001723", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001724", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001725", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001726", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001727", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001728", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001729", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001730", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001731", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001732", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001733", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001734", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001735", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001736", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001737", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001738", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001739", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001740", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001741", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001742", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001743", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001744", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001745", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001746", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001747", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001748", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001749", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001750", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001751", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001752", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001753", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001754", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001755", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001756", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001757", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001758", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001759", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001760", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001761", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001762", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001763", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001764", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001765", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001766", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001767", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001768", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001769", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001770", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001771", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001772", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001773", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001774", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001775", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001776", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001777", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001778", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001779", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001780", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001781", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001782", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001783", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001784", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001785", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001786", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001787", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001788", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001789", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001790", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001791", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001792", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001793", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001794", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001795", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001796", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001797", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001798", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001799", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001800", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001801", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001802", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001803", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001804", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001805", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001806", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001807", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001808", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001809", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001810", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001811", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001812", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001813", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001814", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001815", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001816", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001817", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001818", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001819", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001820", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001821", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001822", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001823", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001824", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001825", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001826", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001827", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001828", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001829", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001830", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001831", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001832", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001833", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001834", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001835", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001836", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001837", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001838", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001839", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001840", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001841", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001842", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001843", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001844", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001845", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001846", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001847", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001848", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001849", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001850", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001851", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001852", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001853", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001854", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001855", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001856", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001857", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001858", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001859", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001860", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001861", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001862", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001863", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001864", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001865", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001866", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001867", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001868", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001869", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001870", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001871", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001872", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001873", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001874", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001875", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001876", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001877", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001878", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001879", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001880", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001881", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001882", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001883", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001884", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001885", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001886", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001887", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001888", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001889", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001890", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001891", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001892", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001893", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001894", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001895", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001896", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001897", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001898", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001899", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001900", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001901", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001902", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001903", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001904", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001905", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001906", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001907", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001908", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001909", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001910", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001911", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001912", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001913", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001914", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001915", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001916", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001917", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001918", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001919", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001920", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001921", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001922", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001923", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001924", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001925", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001926", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001927", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001928", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001929", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001930", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001931", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001932", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001933", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001934", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001935", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001936", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001937", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001938", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001939", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001940", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001941", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001942", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001943", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001944", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001945", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001946", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001947", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001948", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001949", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001950", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001951", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001952", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001953", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001954", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001955", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001956", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001957", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001958", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001959", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001960", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001961", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001962", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001963", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001964", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001965", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001966", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001967", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001968", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001969", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001970", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001971", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001972", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001973", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001974", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001975", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001976", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001977", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001978", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001979", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001980", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001981", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001982", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001983", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001984", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001985", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001986", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001987", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001988", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001989", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001990", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001991", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001992", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_001993", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_001994", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_001995", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001996", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_001997", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001998", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_001999", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002000", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002001", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002002", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002003", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002004", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002005", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002006", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002007", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002008", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002009", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002010", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002011", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002012", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002013", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002014", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002015", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002016", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002017", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002018", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002019", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002020", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002021", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002022", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002023", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002024", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002025", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002026", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002027", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002028", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002029", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002030", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002031", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002032", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002033", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002034", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002035", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002036", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002037", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002038", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002039", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002040", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002041", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002042", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002043", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002044", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002045", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002046", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002047", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002048", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002049", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002050", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002051", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002052", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002053", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002054", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002055", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002056", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002057", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002058", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002059", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002060", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002061", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002062", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002063", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002064", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002065", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002066", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002067", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002068", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002069", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002070", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002071", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002072", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002073", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002074", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002075", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002076", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002077", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002078", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002079", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002080", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002081", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002082", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002083", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002084", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002085", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002086", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002087", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002088", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002089", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002090", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002091", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002092", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002093", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002094", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002095", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002096", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002097", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002098", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002099", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002100", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002101", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002102", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002103", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002104", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002105", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002106", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002107", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002108", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002109", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002110", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002111", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002112", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002113", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002114", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002115", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002116", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002117", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002118", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002119", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002120", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002121", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002122", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002123", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002124", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002125", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002126", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002127", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002128", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002129", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002130", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002131", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002132", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002133", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002134", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002135", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002136", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002137", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002138", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002139", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002140", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002141", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002142", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002143", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002144", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002145", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002146", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002147", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002148", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002149", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002150", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002151", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002152", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002153", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002154", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002155", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002156", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002157", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002158", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002159", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002160", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002161", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002162", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002163", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002164", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002165", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002166", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002167", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002168", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002169", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002170", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002171", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002172", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002173", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002174", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002175", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002176", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002177", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002178", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002179", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002180", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002181", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002182", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002183", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002184", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002185", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002186", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002187", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002188", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002189", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002190", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002191", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002192", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002193", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002194", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002195", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002196", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002197", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002198", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002199", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002200", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002201", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002202", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002203", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002204", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002205", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002206", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002207", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002208", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002209", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002210", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002211", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002212", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002213", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002214", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002215", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002216", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002217", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002218", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002219", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002220", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002221", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002222", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002223", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002224", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002225", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002226", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002227", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002228", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002229", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002230", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002231", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002232", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002233", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002234", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002235", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002236", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002237", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002238", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002239", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002240", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002241", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002242", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002243", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002244", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002245", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002246", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002247", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002248", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002249", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002250", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002251", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002252", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002253", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002254", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002255", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002256", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002257", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002258", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002259", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002260", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002261", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002262", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002263", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002264", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002265", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002266", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002267", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002268", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002269", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002270", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002271", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002272", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002273", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002274", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002275", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002276", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002277", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002278", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002279", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002280", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002281", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002282", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002283", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002284", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002285", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002286", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002287", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002288", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002289", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002290", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002291", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002292", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002293", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002294", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002295", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002296", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002297", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002298", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002299", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002300", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002301", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002302", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002303", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002304", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002305", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002306", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002307", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002308", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002309", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002310", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002311", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002312", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002313", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002314", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002315", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002316", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002317", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002318", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002319", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002320", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002321", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002322", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002323", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002324", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002325", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002326", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002327", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002328", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002329", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002330", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002331", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002332", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002333", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002334", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002335", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002336", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002337", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002338", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002339", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002340", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002341", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002342", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002343", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002344", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002345", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002346", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002347", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002348", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002349", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002350", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002351", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002352", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002353", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002354", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002355", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002356", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002357", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002358", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002359", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002360", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002361", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002362", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002363", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002364", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002365", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002366", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002367", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002368", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002369", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002370", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002371", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002372", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002373", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002374", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002375", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002376", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002377", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002378", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002379", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002380", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002381", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002382", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002383", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002384", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002385", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002386", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002387", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002388", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002389", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002390", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002391", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002392", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002393", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002394", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002395", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002396", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002397", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002398", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002399", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002400", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002401", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002402", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002403", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002404", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002405", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002406", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002407", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002408", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002409", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002410", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002411", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002412", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002413", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002414", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002415", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002416", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002417", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002418", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002419", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002420", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002421", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002422", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002423", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002424", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002425", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002426", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002427", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002428", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002429", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002430", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002431", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002432", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002433", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002434", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002435", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002436", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002437", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002438", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002439", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002440", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002441", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002442", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002443", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002444", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002445", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002446", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002447", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002448", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002449", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002450", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002451", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002452", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002453", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002454", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002455", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002456", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002457", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002458", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002459", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002460", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002461", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002462", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002463", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002464", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002465", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002466", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002467", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002468", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002469", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002470", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002471", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002472", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002473", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002474", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002475", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002476", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002477", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002478", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002479", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002480", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002481", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002482", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002483", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002484", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002485", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002486", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002487", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002488", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002489", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002490", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002491", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002492", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002493", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002494", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002495", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002496", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002497", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002498", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002499", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002500", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002501", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002502", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002503", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002504", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002505", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002506", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002507", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002508", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002509", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002510", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002511", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002512", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002513", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002514", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002515", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002516", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002517", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002518", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002519", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002520", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002521", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002522", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002523", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002524", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002525", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002526", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002527", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002528", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002529", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002530", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002531", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002532", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002533", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002534", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002535", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002536", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002537", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002538", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002539", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002540", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002541", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002542", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002543", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002544", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002545", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002546", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002547", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002548", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002549", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002550", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002551", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002552", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002553", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002554", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002555", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002556", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002557", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002558", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002559", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002560", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002561", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002562", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002563", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002564", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002565", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002566", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002567", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002568", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002569", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002570", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002571", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002572", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002573", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002574", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002575", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002576", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002577", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002578", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002579", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002580", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002581", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002582", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002583", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002584", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002585", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002586", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002587", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002588", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002589", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002590", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002591", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002592", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002593", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002594", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002595", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002596", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002597", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002598", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002599", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002600", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002601", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002602", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002603", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002604", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002605", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002606", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002607", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002608", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002609", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002610", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002611", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002612", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002613", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002614", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002615", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002616", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002617", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002618", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002619", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002620", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002621", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002622", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002623", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002624", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002625", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002626", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002627", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002628", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002629", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002630", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002631", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002632", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002633", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002634", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002635", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002636", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002637", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002638", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002639", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002640", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002641", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002642", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002643", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002644", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002645", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002646", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002647", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002648", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002649", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002650", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002651", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002652", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002653", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002654", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002655", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002656", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002657", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002658", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002659", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002660", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002661", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002662", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002663", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002664", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002665", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002666", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002667", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002668", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002669", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002670", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002671", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002672", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002673", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002674", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002675", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002676", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002677", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002678", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002679", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002680", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002681", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002682", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002683", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002684", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002685", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002686", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002687", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002688", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002689", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002690", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002691", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002692", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002693", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002694", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002695", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002696", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002697", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002698", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002699", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002700", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002701", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002702", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002703", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002704", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002705", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002706", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002707", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002708", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002709", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002710", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002711", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002712", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002713", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002714", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002715", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002716", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002717", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002718", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002719", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002720", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002721", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002722", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002723", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002724", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002725", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002726", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002727", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002728", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002729", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002730", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002731", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002732", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002733", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002734", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002735", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002736", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002737", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002738", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002739", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002740", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002741", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002742", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002743", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002744", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002745", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002746", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002747", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002748", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002749", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002750", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002751", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002752", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002753", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002754", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002755", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002756", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002757", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002758", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002759", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002760", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002761", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002762", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002763", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002764", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002765", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002766", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002767", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002768", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002769", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002770", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002771", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002772", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002773", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002774", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002775", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002776", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002777", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002778", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002779", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002780", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002781", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002782", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002783", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002784", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002785", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002786", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002787", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002788", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002789", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002790", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002791", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002792", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002793", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002794", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002795", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002796", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002797", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002798", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002799", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002800", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002801", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002802", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002803", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002804", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002805", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002806", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002807", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002808", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002809", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002810", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002811", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002812", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002813", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002814", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002815", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002816", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002817", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002818", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002819", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002820", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002821", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002822", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002823", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002824", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002825", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002826", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002827", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002828", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002829", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002830", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002831", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002832", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002833", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002834", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002835", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002836", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002837", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002838", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002839", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002840", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002841", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002842", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002843", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002844", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002845", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002846", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002847", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002848", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002849", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002850", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002851", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002852", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002853", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002854", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002855", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002856", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002857", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002858", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002859", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002860", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002861", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002862", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002863", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002864", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002865", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002866", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002867", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002868", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002869", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002870", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002871", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002872", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002873", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002874", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002875", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002876", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002877", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002878", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002879", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002880", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002881", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002882", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002883", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002884", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002885", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002886", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002887", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002888", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002889", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002890", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002891", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002892", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002893", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002894", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002895", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002896", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002897", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002898", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002899", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002900", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002901", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002902", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002903", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002904", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002905", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002906", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002907", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002908", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002909", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002910", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002911", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002912", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002913", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002914", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002915", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002916", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002917", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002918", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002919", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002920", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002921", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002922", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002923", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002924", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002925", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002926", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002927", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002928", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002929", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002930", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002931", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002932", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002933", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002934", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002935", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002936", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002937", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002938", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002939", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002940", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002941", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002942", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002943", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002944", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002945", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002946", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002947", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002948", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002949", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002950", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002951", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002952", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002953", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002954", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002955", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002956", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002957", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002958", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002959", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002960", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002961", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002962", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002963", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002964", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002965", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002966", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002967", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002968", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002969", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002970", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002971", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002972", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002973", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002974", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002975", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002976", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002977", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002978", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002979", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002980", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002981", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002982", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002983", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002984", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002985", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002986", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002987", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002988", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_002989", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_002990", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002991", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002992", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_002993", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002994", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002995", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002996", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_002997", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002998", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_002999", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003000", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003001", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003002", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003003", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003004", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003005", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003006", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003007", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003008", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003009", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003010", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003011", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003012", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003013", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003014", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003015", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003016", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003017", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003018", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003019", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003020", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003021", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003022", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003023", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003024", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003025", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003026", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003027", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003028", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003029", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003030", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003031", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003032", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003033", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003034", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003035", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003036", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003037", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003038", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003039", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003040", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003041", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003042", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003043", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003044", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003045", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003046", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003047", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003048", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003049", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003050", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003051", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003052", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003053", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003054", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003055", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003056", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003057", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003058", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003059", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003060", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003061", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003062", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003063", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003064", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003065", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003066", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003067", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003068", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003069", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003070", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003071", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003072", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003073", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003074", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003075", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003076", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003077", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003078", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003079", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003080", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003081", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003082", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003083", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003084", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003085", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003086", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003087", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003088", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003089", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003090", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003091", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003092", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003093", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003094", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003095", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003096", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003097", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003098", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003099", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003100", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003101", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003102", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003103", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003104", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003105", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003106", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003107", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003108", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003109", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003110", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003111", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003112", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003113", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003114", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003115", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003116", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003117", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003118", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003119", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003120", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003121", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003122", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003123", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003124", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003125", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003126", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003127", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003128", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003129", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003130", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003131", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003132", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003133", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003134", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003135", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003136", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003137", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003138", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003139", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003140", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003141", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003142", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003143", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003144", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003145", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003146", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003147", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003148", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003149", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003150", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003151", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003152", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003153", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003154", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003155", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003156", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003157", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003158", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003159", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003160", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003161", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003162", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003163", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003164", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003165", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003166", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003167", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003168", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003169", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003170", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003171", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003172", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003173", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003174", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003175", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003176", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003177", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003178", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003179", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003180", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003181", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003182", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003183", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003184", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003185", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003186", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003187", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003188", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003189", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003190", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003191", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003192", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003193", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003194", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003195", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003196", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003197", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003198", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003199", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003200", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003201", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003202", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003203", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003204", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003205", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003206", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003207", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003208", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003209", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003210", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003211", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003212", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003213", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003214", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003215", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003216", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003217", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003218", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003219", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003220", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003221", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003222", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003223", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003224", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003225", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003226", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003227", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003228", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003229", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003230", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003231", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003232", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003233", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003234", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003235", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003236", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003237", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003238", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003239", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003240", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003241", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003242", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003243", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003244", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003245", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003246", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003247", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003248", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003249", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003250", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003251", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003252", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003253", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003254", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003255", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003256", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003257", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003258", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003259", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003260", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003261", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003262", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003263", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003264", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003265", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003266", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003267", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003268", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003269", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003270", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003271", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003272", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003273", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003274", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003275", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003276", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003277", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003278", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003279", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003280", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003281", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003282", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003283", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003284", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003285", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003286", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003287", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003288", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003289", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003290", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003291", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003292", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003293", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003294", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003295", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003296", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003297", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003298", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003299", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003300", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003301", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003302", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003303", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003304", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003305", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003306", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003307", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003308", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003309", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003310", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003311", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003312", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003313", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003314", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003315", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003316", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003317", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003318", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003319", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003320", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003321", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003322", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003323", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003324", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003325", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003326", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003327", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003328", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003329", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003330", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003331", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003332", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003333", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003334", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003335", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003336", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003337", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003338", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003339", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003340", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003341", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003342", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003343", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003344", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003345", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003346", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003347", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003348", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003349", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003350", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003351", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003352", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003353", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003354", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003355", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003356", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003357", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003358", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003359", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003360", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003361", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003362", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003363", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003364", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003365", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003366", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003367", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003368", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003369", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003370", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003371", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003372", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003373", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003374", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003375", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003376", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003377", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003378", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003379", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003380", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003381", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003382", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003383", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003384", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003385", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003386", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003387", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003388", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003389", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003390", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003391", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003392", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003393", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003394", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003395", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003396", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003397", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003398", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003399", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003400", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003401", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003402", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003403", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003404", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003405", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003406", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003407", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003408", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003409", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003410", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003411", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003412", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003413", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003414", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003415", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003416", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003417", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003418", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003419", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003420", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003421", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003422", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003423", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003424", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003425", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003426", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003427", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003428", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003429", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003430", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003431", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003432", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003433", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003434", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003435", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003436", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003437", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003438", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003439", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003440", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003441", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003442", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003443", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003444", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003445", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003446", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003447", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003448", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003449", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003450", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003451", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003452", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003453", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003454", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003455", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003456", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003457", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003458", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003459", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003460", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003461", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003462", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003463", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003464", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003465", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003466", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003467", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003468", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003469", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003470", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003471", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003472", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003473", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003474", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003475", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003476", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003477", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003478", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003479", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003480", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003481", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003482", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003483", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003484", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003485", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003486", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003487", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003488", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003489", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003490", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003491", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003492", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003493", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003494", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003495", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003496", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003497", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003498", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003499", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003500", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003501", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003502", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003503", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003504", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003505", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003506", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003507", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003508", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003509", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003510", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003511", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003512", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003513", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003514", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003515", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003516", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003517", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003518", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003519", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003520", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003521", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003522", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003523", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003524", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003525", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003526", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003527", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003528", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003529", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003530", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003531", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003532", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003533", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003534", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003535", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003536", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003537", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003538", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003539", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003540", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003541", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003542", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003543", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003544", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003545", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003546", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003547", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003548", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003549", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003550", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003551", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003552", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003553", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003554", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003555", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003556", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003557", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003558", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003559", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003560", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003561", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003562", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003563", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003564", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003565", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003566", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003567", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003568", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003569", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003570", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003571", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003572", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003573", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003574", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003575", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003576", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003577", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003578", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003579", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003580", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003581", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003582", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003583", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003584", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003585", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003586", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003587", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003588", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003589", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003590", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003591", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003592", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003593", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003594", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003595", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003596", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003597", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003598", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003599", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003600", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003601", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003602", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003603", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003604", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003605", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003606", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003607", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003608", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003609", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003610", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003611", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003612", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003613", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003614", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003615", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003616", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003617", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003618", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003619", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003620", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003621", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003622", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003623", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003624", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003625", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003626", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003627", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003628", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003629", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003630", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003631", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003632", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003633", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003634", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003635", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003636", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003637", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003638", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003639", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003640", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003641", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003642", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003643", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003644", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003645", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003646", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003647", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003648", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003649", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003650", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003651", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003652", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003653", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003654", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003655", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003656", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003657", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003658", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003659", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003660", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003661", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003662", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003663", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003664", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003665", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003666", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003667", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003668", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003669", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003670", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003671", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003672", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003673", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003674", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003675", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003676", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003677", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003678", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003679", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003680", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003681", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003682", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003683", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003684", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003685", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003686", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003687", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003688", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003689", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003690", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003691", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003692", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003693", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003694", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003695", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003696", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003697", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003698", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003699", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003700", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003701", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003702", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003703", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003704", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003705", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003706", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003707", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003708", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003709", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003710", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003711", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003712", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003713", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003714", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003715", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003716", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003717", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003718", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003719", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003720", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003721", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003722", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003723", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003724", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003725", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003726", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003727", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003728", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003729", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003730", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003731", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003732", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003733", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003734", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003735", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003736", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003737", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003738", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003739", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003740", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003741", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003742", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003743", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003744", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003745", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003746", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003747", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003748", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003749", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003750", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003751", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003752", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003753", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003754", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003755", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003756", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003757", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003758", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003759", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003760", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003761", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003762", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003763", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003764", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003765", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003766", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003767", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003768", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003769", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003770", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003771", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003772", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003773", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003774", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003775", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003776", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003777", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003778", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003779", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003780", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003781", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003782", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003783", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003784", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003785", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003786", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003787", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003788", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003789", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003790", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003791", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003792", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003793", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003794", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003795", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003796", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003797", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003798", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003799", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003800", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003801", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003802", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003803", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003804", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003805", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003806", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003807", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003808", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003809", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003810", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003811", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003812", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003813", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003814", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003815", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003816", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003817", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003818", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003819", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003820", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003821", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003822", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003823", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003824", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003825", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003826", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003827", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003828", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003829", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003830", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003831", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003832", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003833", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003834", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003835", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003836", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003837", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003838", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003839", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003840", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003841", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003842", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003843", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003844", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003845", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003846", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003847", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003848", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003849", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003850", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003851", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003852", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003853", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003854", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003855", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003856", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003857", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003858", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003859", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003860", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003861", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003862", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003863", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003864", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003865", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003866", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003867", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003868", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003869", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003870", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003871", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003872", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003873", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003874", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003875", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003876", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003877", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003878", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003879", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003880", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003881", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003882", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003883", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003884", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003885", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003886", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003887", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003888", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003889", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003890", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003891", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003892", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003893", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003894", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003895", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003896", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003897", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003898", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003899", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003900", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003901", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003902", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003903", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003904", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003905", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003906", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003907", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003908", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003909", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003910", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003911", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003912", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003913", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003914", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003915", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003916", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003917", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003918", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003919", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003920", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003921", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003922", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003923", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003924", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003925", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003926", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003927", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003928", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003929", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003930", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003931", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003932", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003933", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003934", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003935", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003936", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003937", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003938", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003939", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003940", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003941", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003942", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003943", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003944", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003945", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003946", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003947", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003948", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003949", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003950", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003951", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003952", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003953", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003954", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003955", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003956", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003957", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003958", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003959", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003960", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003961", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003962", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003963", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003964", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003965", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003966", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003967", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003968", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003969", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003970", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003971", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003972", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003973", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003974", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003975", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003976", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003977", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003978", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003979", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003980", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003981", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003982", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003983", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003984", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003985", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003986", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003987", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003988", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003989", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003990", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003991", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003992", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003993", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_003994", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003995", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_003996", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_003997", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_003998", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_003999", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004000", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004001", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004002", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004003", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004004", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004005", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004006", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004007", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004008", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004009", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004010", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004011", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004012", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004013", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004014", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004015", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004016", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004017", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004018", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004019", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004020", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004021", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004022", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004023", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004024", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004025", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004026", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004027", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004028", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004029", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004030", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004031", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004032", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004033", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004034", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004035", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004036", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004037", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004038", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004039", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004040", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004041", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004042", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004043", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004044", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004045", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004046", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004047", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004048", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004049", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004050", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004051", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004052", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004053", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004054", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004055", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004056", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004057", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004058", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004059", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004060", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004061", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004062", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004063", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004064", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004065", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004066", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004067", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004068", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004069", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004070", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004071", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004072", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004073", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004074", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004075", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004076", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004077", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004078", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004079", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004080", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004081", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004082", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004083", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004084", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004085", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004086", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004087", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004088", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004089", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004090", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004091", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004092", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004093", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004094", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004095", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004096", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004097", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004098", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004099", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004100", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004101", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004102", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004103", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004104", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004105", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004106", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004107", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004108", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004109", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004110", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004111", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004112", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004113", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004114", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004115", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004116", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004117", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004118", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004119", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004120", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004121", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004122", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004123", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004124", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004125", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004126", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004127", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004128", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004129", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004130", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004131", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004132", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004133", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004134", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004135", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004136", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004137", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004138", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004139", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004140", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004141", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004142", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004143", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004144", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004145", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004146", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004147", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004148", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004149", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004150", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004151", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004152", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004153", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004154", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004155", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004156", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004157", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004158", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004159", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004160", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004161", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004162", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004163", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004164", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004165", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004166", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004167", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004168", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004169", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004170", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004171", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004172", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004173", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004174", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004175", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004176", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004177", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004178", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004179", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004180", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004181", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004182", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004183", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004184", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004185", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004186", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004187", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004188", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004189", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004190", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004191", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004192", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004193", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004194", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004195", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004196", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004197", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004198", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004199", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004200", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004201", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004202", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004203", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004204", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004205", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004206", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004207", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004208", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004209", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004210", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004211", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004212", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004213", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004214", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004215", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004216", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004217", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004218", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004219", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004220", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004221", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004222", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004223", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004224", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004225", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004226", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004227", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004228", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004229", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004230", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004231", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004232", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004233", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004234", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004235", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004236", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004237", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004238", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004239", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004240", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004241", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004242", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004243", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004244", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004245", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004246", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004247", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004248", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004249", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004250", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004251", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004252", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004253", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004254", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004255", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004256", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004257", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004258", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004259", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004260", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004261", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004262", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004263", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004264", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004265", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004266", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004267", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004268", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004269", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004270", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004271", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004272", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004273", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004274", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004275", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004276", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004277", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004278", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004279", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004280", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004281", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004282", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004283", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004284", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004285", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004286", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004287", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004288", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004289", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004290", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004291", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004292", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004293", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004294", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004295", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004296", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004297", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004298", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004299", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004300", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004301", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004302", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004303", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004304", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004305", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004306", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004307", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004308", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004309", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004310", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004311", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004312", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004313", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004314", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004315", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004316", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004317", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004318", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004319", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004320", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004321", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004322", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004323", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004324", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004325", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004326", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004327", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004328", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004329", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004330", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004331", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004332", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004333", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004334", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004335", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004336", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004337", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004338", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004339", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004340", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004341", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004342", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004343", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004344", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004345", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004346", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004347", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004348", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004349", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004350", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004351", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004352", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004353", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004354", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004355", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004356", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004357", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004358", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004359", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004360", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004361", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004362", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004363", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004364", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004365", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004366", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004367", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004368", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004369", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004370", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004371", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004372", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004373", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004374", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004375", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004376", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004377", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004378", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004379", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004380", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004381", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004382", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004383", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004384", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004385", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004386", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004387", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004388", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004389", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004390", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004391", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004392", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004393", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004394", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004395", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004396", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004397", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004398", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004399", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004400", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004401", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004402", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004403", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004404", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004405", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004406", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004407", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004408", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004409", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004410", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004411", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004412", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004413", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004414", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004415", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004416", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004417", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004418", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004419", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004420", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004421", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004422", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004423", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004424", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004425", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004426", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004427", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004428", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004429", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004430", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004431", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004432", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004433", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004434", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004435", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004436", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004437", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004438", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004439", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004440", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004441", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004442", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004443", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004444", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004445", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004446", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004447", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004448", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004449", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004450", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004451", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004452", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004453", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004454", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004455", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004456", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004457", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004458", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004459", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004460", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004461", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004462", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004463", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004464", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004465", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004466", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004467", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004468", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004469", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004470", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004471", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004472", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004473", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004474", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004475", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004476", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004477", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004478", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004479", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004480", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004481", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004482", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004483", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004484", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004485", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004486", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004487", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004488", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004489", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004490", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004491", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004492", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004493", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004494", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004495", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004496", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004497", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004498", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004499", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004500", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004501", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004502", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004503", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004504", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004505", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004506", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004507", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004508", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004509", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004510", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004511", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004512", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004513", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004514", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004515", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004516", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004517", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004518", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004519", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004520", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004521", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004522", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004523", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004524", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004525", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004526", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004527", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004528", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004529", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004530", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004531", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004532", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004533", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004534", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004535", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004536", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004537", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004538", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004539", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004540", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004541", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004542", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004543", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004544", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004545", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004546", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004547", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004548", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004549", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004550", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004551", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004552", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004553", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004554", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004555", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004556", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004557", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004558", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004559", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004560", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004561", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004562", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004563", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004564", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004565", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004566", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004567", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004568", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004569", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004570", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004571", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004572", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004573", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004574", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004575", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004576", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004577", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004578", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004579", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004580", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004581", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004582", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004583", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004584", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004585", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004586", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004587", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004588", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004589", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004590", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004591", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004592", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004593", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004594", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004595", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004596", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004597", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004598", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004599", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004600", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004601", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004602", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004603", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004604", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004605", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004606", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004607", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004608", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004609", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004610", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004611", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004612", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004613", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004614", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004615", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004616", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004617", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004618", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004619", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004620", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004621", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004622", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004623", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004624", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004625", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004626", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004627", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004628", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004629", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004630", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004631", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004632", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004633", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004634", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004635", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004636", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004637", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004638", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004639", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004640", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004641", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004642", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004643", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004644", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004645", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004646", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004647", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004648", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004649", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004650", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004651", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004652", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004653", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004654", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004655", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004656", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004657", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004658", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004659", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004660", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004661", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004662", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004663", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004664", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004665", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004666", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004667", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004668", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004669", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004670", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004671", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004672", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004673", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004674", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004675", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004676", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004677", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004678", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004679", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004680", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004681", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004682", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004683", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004684", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004685", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004686", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004687", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004688", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004689", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004690", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004691", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004692", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004693", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004694", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004695", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004696", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004697", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004698", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004699", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004700", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004701", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004702", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004703", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004704", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004705", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004706", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004707", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004708", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004709", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004710", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004711", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004712", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004713", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004714", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004715", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004716", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004717", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004718", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004719", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004720", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004721", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004722", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004723", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004724", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004725", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004726", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004727", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004728", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004729", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004730", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004731", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004732", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004733", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004734", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004735", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004736", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004737", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004738", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004739", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004740", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004741", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004742", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004743", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004744", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004745", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004746", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004747", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004748", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004749", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004750", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004751", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004752", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004753", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004754", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004755", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004756", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004757", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004758", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004759", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004760", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004761", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004762", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004763", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004764", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004765", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004766", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004767", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004768", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004769", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004770", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004771", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004772", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004773", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004774", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004775", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004776", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004777", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004778", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004779", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004780", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004781", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004782", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004783", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004784", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004785", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004786", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004787", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004788", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004789", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004790", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004791", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004792", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004793", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004794", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004795", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004796", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004797", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004798", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004799", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004800", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004801", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004802", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004803", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004804", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004805", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004806", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004807", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004808", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004809", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004810", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004811", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004812", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004813", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004814", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004815", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004816", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004817", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004818", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004819", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004820", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004821", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004822", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004823", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004824", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004825", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004826", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004827", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004828", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004829", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004830", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004831", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004832", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004833", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004834", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004835", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004836", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004837", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004838", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004839", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004840", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004841", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004842", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004843", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004844", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004845", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004846", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004847", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004848", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004849", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004850", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004851", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004852", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004853", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004854", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004855", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004856", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004857", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004858", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004859", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004860", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004861", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004862", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004863", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004864", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004865", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004866", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004867", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004868", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004869", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004870", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004871", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004872", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004873", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004874", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004875", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004876", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004877", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004878", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004879", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004880", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004881", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004882", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004883", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004884", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004885", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004886", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004887", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004888", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004889", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004890", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004891", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004892", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004893", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004894", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004895", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004896", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004897", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004898", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004899", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004900", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004901", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004902", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004903", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004904", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004905", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004906", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004907", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004908", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004909", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004910", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004911", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004912", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004913", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004914", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004915", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004916", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004917", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004918", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004919", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004920", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004921", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004922", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004923", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004924", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004925", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004926", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004927", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004928", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004929", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004930", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004931", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004932", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004933", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004934", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004935", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004936", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004937", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004938", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004939", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004940", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004941", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004942", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004943", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004944", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004945", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004946", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004947", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004948", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004949", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004950", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004951", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004952", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004953", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004954", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004955", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004956", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004957", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004958", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004959", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004960", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004961", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004962", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004963", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004964", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004965", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004966", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004967", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004968", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004969", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004970", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004971", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004972", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004973", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004974", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004975", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004976", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004977", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004978", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004979", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004980", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004981", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004982", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004983", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004984", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004985", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004986", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004987", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004988", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004989", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_004990", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004991", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004992", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"config.py": "def get_port(cfg):\n return int(cfg['PORT'])\n"}}, "task": "Fix: null_default. Provide unified diff."}, "response": "--- a/config.py\n+++ b/config.py\n@@ -1,2 +1,3 @@\n-def get_port(cfg):\n- return int(cfg['PORT'])\n+def get_port(cfg):\n+ v=cfg.get('PORT')\n+ return int(v) if v is not None else 8080\n", "meta": {"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}, "artifacts": {"patch": {"file": "config.py", "before_sha": "526cebd99736", "after_sha": "02d8c9b49180", "tests": "assert get_port({})==8080"}}} {"id": "PATCH_004993", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"calc.py": "def total(xs):\n s=0\n for x in xs:\n s=s+x\n return s\n"}}, "task": "Fix: perf_clarity. Provide unified diff."}, "response": "--- a/calc.py\n+++ b/calc.py\n@@ -1,5 +1,2 @@\n-def total(xs):\n- s=0\n- for x in xs:\n- s=s+x\n- return s\n+def total(xs):\n+ return sum(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "calc.py", "before_sha": "3a978e6a77db", "after_sha": "512a5d2f31c9", "tests": "assert total([1,2,3])==6"}}} {"id": "PATCH_004994", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004995", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004996", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004997", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"stats.py": "def mean(xs):\n return sum(xs)/len(xs)-1\n"}}, "task": "Fix: off_by_one. Provide unified diff."}, "response": "--- a/stats.py\n+++ b/stats.py\n@@ -1,2 +1,2 @@\n-def mean(xs):\n- return sum(xs)/len(xs)-1\n+def mean(xs):\n+ return sum(xs)/len(xs)\n", "meta": {"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}, "artifacts": {"patch": {"file": "stats.py", "before_sha": "a96bab645c3c", "after_sha": "0b212e2cd912", "tests": "assert mean([2,4])==3"}}} {"id": "PATCH_004998", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}} {"id": "PATCH_004999", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"test_math.py": "def test_add():\n assert add(2,2)==5\n"}}, "task": "Fix: test_fix. Provide unified diff."}, "response": "--- a/test_math.py\n+++ b/test_math.py\n@@ -1,2 +1,2 @@\n-def test_add():\n- assert add(2,2)==5\n+def test_add():\n+ assert add(2,2)==4\n", "meta": {"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}, "artifacts": {"patch": {"file": "test_math.py", "before_sha": "cb62ce66420c", "after_sha": "87ee370e5a55", "tests": "pytest -q"}}} {"id": "PATCH_005000", "type": "code_patch", "prompt": {"repo_snapshot": {"files": {"logger.py": "def log(msg):\n print('INFO: '+msg)\n"}}, "task": "Fix: log_sanitize. Provide unified diff."}, "response": "--- a/logger.py\n+++ b/logger.py\n@@ -1,2 +1,3 @@\n-def log(msg):\n- print('INFO: '+msg)\n+def log(msg):\n+ safe=msg.replace('\\n',' ').replace('\\r',' ')\n+ print('INFO: '+safe)\n", "meta": {"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}, "artifacts": {"patch": {"file": "logger.py", "before_sha": "9e0854185f87", "after_sha": "634891f0841a", "tests": "log('ok\\nEVIL') # single line"}}}